Skip to main content

Your First Graph

This walkthrough builds the simplest fur there is: straight fibres growing from a mesh. Every fur graph starts with the same three nodes:

  1. Import brings the mesh into the graph.
  2. Scatter scatters points over the mesh, one for each hair.
  3. Grow grows a fibre from each point.

Before You Start​

Create a polygon sphere (or any mesh), select it, and click CRM on the Yeti shelf. This creates a Yeti node with the sphere as its input. Then, with the Yeti node selected, click GE on the Yeti shelf to open the Graph Editor. The graph is empty to start with.

1. Import the Mesh​

Create an Import node: click its button at the left of the Graph Editor's toolbar, or press Tab over the graph and choose Import.

The Import node brings data from the Maya scene into the graph, so the graph knows what to work with. This can be the mesh the fur grows from, a groom, guide curves, a feather, a braid or an XGen Interactive Groom.

Double-click the node to open the Inspector, where you set its parameters. For an Import node, these are:

  • Type, the kind of data to import. Leave it set to Geometry to import a mesh.
  • Selection, the name of the object to import. The default, *, imports every input object of the chosen type, which is fine for this example.
The Inspector
tip

The Import node finds objects by name. If you rename an object in Maya, update the name in the Import node too, or use wildcards so that it still matches. For example, *Head* matches both heroHeadShape and heroHeadShapeDeformed.

2. Scatter Points​

Create a Scatter node, then connect the two nodes: drag from the Import node's output (the circle on its right edge) to the Scatter node's first input (the top circle on its left edge).

A graph with nodes

The Scatter node places points randomly over the surface of the mesh. Each point becomes the root of one hair, so the number of points sets how full the fur looks. Its Density Multiplier sets how many points it scatters for the size of the surface: a bigger mesh gets more points.

The Yeti node also scales the density, so you can work with fewer hairs in the viewport and render many more. By default, a render has ten times as many hairs as the viewport shows. You set these with the Yeti node's Viewport Density and Render Density.

Sometimes a Scatter node's points need to stay the same whatever the density, for example when they're used as the centres of clumps. In that case, turn on Lock Density.

3. Grow Fibres​

Create a Grow node and connect the Scatter node's output to its first input. If the Scatter node is selected when you create the Grow node, Yeti connects them for you.

Connecting nodes in a graph

The Grow node grows a fibre from each point. By default, each fibre points straight out from the surface. Set how long the fibres are with Minimum Length and Maximum Length (each fibre gets a random length between the two), and how smooth they are with Segment Count: more segments let the fibres bend more smoothly, but use more memory.

4. Set the Root​

The Root is the node whose result the Yeti node displays and renders, usually the last node in the graph. Until a node is set as the Root, the Yeti node shows nothing. Make the Grow node the Root by clicking the small toggle at the left of its bottom edge, which turns green.

Setting the Root node

You can move the Root to an earlier node at any time to see what the graph looks like at that step. For example, make the Scatter node the Root to see only the points.

Your sphere is now covered in straight fur in the viewport.

The result in the Maya viewport

5. Render It​

A Yeti node renders like any other shape in Maya. Select the Yeti node and assign it a material, ideally your renderer's hair shader (for example, aiStandardHair in Arnold), then render. Your renderer needs Yeti's extension set up first: see Renderer Extension Configuration.

To control how thick the fibres are, add a Width node after the Grow node and make it the Root.

Next Steps​

Straight fur is only the start. From here, you'll usually: