You can use the displacement feature out of the rendering process, right into the scene. This is done through the menu item:
Modify > Convert > Displacement To Polygons.
You will notice that there are no options available for this command; that's because every polygonal shape beholds these options natively. Do the following to find them:
- - Select the mesh in order to display it's properties in the Attribute Editor
- in the shape's tab open the Displacement Map rolling frame. That was easy, now go use the doc
- - Open Hypeshade window
- if the mesh is selected click onto the icon representing two green squares connected to a crossed blue disc.
This will graph the shader assigned to the selected shape(s).
- else what select the shader and click the box with two arrows to graph it's inputs and outputs.
The shading group belongs to the laters.
- on the left side of Hypershade is the Create Node pane; one single node lies under the Displacement rolling frame
- hold [Ctrl] and drag the icon onto the shading group.
Pressing the key told Maya to use a default connection, wich is not always what you want. Try the same with [Shift] and see what inputs and outputs these nodes have.
- alternatively you could have connected the displacement shader by dropping (keys off) it onto the shader and selecting displacement map in the list.
Nonetheless the new node connects to the shading group.
It takes a scalar value as input, that is: no color but a single channel. Generally that's the outAlpha from a texture node, so let's have a closer look at this.
Create any texture node from the Create Node pane and display AE (Attribute Editor); under the Color Balance frame you have amongst other attributes Alpha Gain and Alpha Offset. When plugged into a displacement shader, these values are read as Maya scene units !!!
Displacement will effectively occur within the range specified by the Alpha Gain value, from the cage surface if Alpha Offset is set to zero. Some examples:
Code: Select all
Alpha Gain = 1, Alpha Offset = 0
Code: Select all
Alpha Gain = 1, Alpha Offset = -0.5
One way to check that the displacement is well balanced around the original mesh is to tweak Alpha Offset while having an eye on the displacement shader's AE: when the value is 0 it's fine. To do this select the displacement shader and in AE click Copy Tab, then select the texture and tweak.
Also it is handy to plug a multiply/divide node between the texture and the displacement shader. More on this later !
You can ask your questions yet, thought, if any.