YETI TUTORIALS

Feathers

Yeti has an internal procedural feather formed by strands. Several attributes can be edited and their format can be customized. It is faster to render and produces better results than using planes with alpha textures. We use the Import node to import and connect it to the second input of an Instance node. The simplest and most common way to distribute them is by using a normal graph with Scatter and Grow nodes, then connecting it to the Instance node in the same way we do to instantiate objects. However, we can have better control over its distribution by using the Convert node with Guide Sets or Grooms.

Instancing Feathers with Guide Sets

In this example, a Guide Set is imported into the graph and converted to fibers using the Convert node in Strands to Fibers mode. Then, each feather is instantiated on top of each guide.

Example File: Feathers_GuideCurves.ma

Download at https://www.dropbox.com/s/usqw6senr4igymd/Feathers_GuideCurves.ma?dl=0

Instancing Feathers with Grooms

Following this same idea, it is also possible to use a Groom instead of the Guide Set, so a feather is instantiated on top of each Groom strand.

Example File: Feathers_Groom.ma

Download at https://www.dropbox.com/s/41rxc9yeljktl8j/Feathers_Groom.ma?dl=0

For each feather to have the same length as each strand has, you must use its length attribute in the Scale field of node Instance. This field receives a vector in the format [x, y, z] corresponding to the scale in width, length and thickness that the instance will have. We can use the length attribute for the length in y, and write its width in x either directly, by placing an explicit value or another Groom attribute, or by using mathematical expressions as length / 2 (the width will always be half the length).
In order for the feathers to follow the strand format, the Deform option must be enabled in the Instance node Objects tab.

We can create attributes in the Groom and paint a different value for each feather. In the previous example, we created an attribute called Roll to be used as the rotation of the feather in the Twist field. Because it is not possible to have attributes with negative values ​​inside the Groom, we can shift their values ​​and convert them to positive and negative values ​​within the graph. It is similar to using the fit () function.

Painting attributes directly on the Groom that will be converted is interesting for cases where few feathers will be used, such as Hero Feathers. However, with a greater amount of feathers it can be tough to paint the attributes on so many guides. To solve this, we can use an additional Groom with fewer guides just to define the hairstyle and attributes. We can even split a Groom only for hairstyles and another for Attributes, depending on the complexity of the system.
Note that this Convert system is heavier to process than instantiating using the Scatter and Grow nodes. But it allows for more precise control over the position of each feather, which may be necessary in some cases.

Example File: Feathers_Groom_Placement.ma

Download at https://www.dropbox.com/s/vrzk43vkogksci0/Feathers_Groom_Placement.ma?dl=0

Texturing Feathers

We can map textures or Ramps to the feather through their own coordinates U and V, which are already created automatically by the Yeti. There are two ways to do this: With a node of VRayUserScalar (VRay) or aiUserDataFloat (Arnold) using feather_u and feather_v attributes; Or with a place2dTexture node, changing the UV set name to feather_uvw in 2D Placement Options. To enable these options in VRay, go to the Attributes -> VRay -> 2D Placement Options tab.
To vary the textures or colors, we can use a conditional node as a mask, through the feather id or any other attribute passed to the render by the graph.

Example File: Feather_Shading.ma

Download at https://www.dropbox.com/s/rnlj4k4n5fj178f/Feather_Shading.ma?dl=0

Feather Shapes and Attributes

We can edit the parameters that Yeti’s internal feather has inside our graph. Any changes made to the graph overwrite the old values. In the Attribute node, we put the attribute corresponding to the global variable of each feather parameter. To see the list of variables available, right-click on the node and go to the Attributes tab.

Remember to use Detail Type as Constant.

Example File: Feathers_Attributes.ma

Download at https://www.dropbox.com/s/gkt8umwfqniy7tv/Feathers_Attributes.ma?dl=0

Using Groom attributes, we can create interpolations between these parameters. We can make a region start with the well-defined feather shape and gain deformations along the body of a character. Remember to inherit each of these Groom attributes or other global variables as needed. An interesting function to enhance interpolations is fit (). It converts one range of values ​​into another, keeping the same ratio.

Although the internal feather of the Yeti being very flexible and customizable, in the version that this manual has written it still presents some limitations that make difficult to get specific shapes.
One is in relation to the curvature of the feather, which may not be very intuitive to control. We can use combinations between curvatures and Normal attributes with both positive and negative values to obtain different formats. You can also edit control points (edit mode - F8) to raise the barbs or force the shape.

Example File: Feathers_Shapes.ma

Download at https://www.dropbox.com/s/5shebhx20as7azq/Feathers_Shapes.ma?dl=0

Up Vectors

Another important field of Instance node when it comes to feathers and wings is the Up Vector. It is responsible for ensuring that the orientation of the feathers will always be correct regardless of the rotation that the mesh or the curves have when animated. By definition, the Up Vector field is filled with the value [0,1,0], that is, pointing in the positive direction of Y. The Alignment field comes with the global variable N (Normal) filled in.

An alternative to correct this problem is to use the vector N itself as Up Vector or the tangent vector. The tangent vector is created in the Attribute node, in the Geometric-> Add Tangent tab. The twist field can be used to rotate the feather in relation to its vectors and make the final adjustment.

In the case of a wing that will suffer extreme deformations on its mesh during the animation, especially when the wing is closed, vectors relative to the mesh faces as N and tangent will not be enough to guarantee that the orientation remains correct. For this, we can use vectors created externally as Up Vector, being passed through Custom Global Variables or curve parameters.

In this example, the X, Y, Z translation values ​​of a locator are used to assemble a global custom vector that will be used as Up Vector. This locator can be connected to the Rig and animated, directly controlling the orientation of a group of feathers. It is a simple solution that can be applied in different situations. However, it can cause problems in more complex systems, since the same value of Up Vector is passed for all the feathers of a Guide Set, which can cause some feathers of the group to orient themselves in the wrong way.

Example File: Feathers_CustomUpVector.ma

Download at https://www.dropbox.com/s/7b3era33hhbiamc/Feathers_CustomUpVector.ma?dl=0