docs.unity3d.com

    Set up your field curves

    Field curves add a bend to the hairs on the fur set. With field curves, you can push the hair to follow the direction of the curves (that is, field curves change the angle at which the hairs emerge from the surface). This also overrides the default bend setting.

    Creating the field node and field curves is the first step in setting the hair direction with field nodes. Afterwards, you can set how the field curves affect the hair using the field node shape attributes.

    Note

    Fine-grained meshes give the smoothest flow forces. Coarse meshes have more granular flow forces.

    Create a field node

    To create a field node:

    1. Select either the polygon mesh or the Fur node.

    2. From the Wig menu, go to Strands and select Edit > Create a Field Solver. Wig adds a wmWigFieldNode and a fieldProxy node for the geometry.

    Create field curves

    To create field curves:

    1. Select the fieldProxy node.

    2. From the Modify menu in Maya, select Make Live.

    3. Draw the curves on the surface. These define the force direction on the surface. You can also use curves that you have already created.

    4. Select the curves and the wmWigFieldNode.

    5. From the Wig menu, go to Strands and select Edit > Create a Field Curve. Wig creates a wmWigFieldCurveNode for each input curve.

    6. Select the wmWigFieldNode.

    7. In the wmWigFieldNodeShape attributes, do one of the following:

      • Select Solve to apply the curve force to the hair.
      • Select Clear to remove the effects of the curve force.
      • Select Regenerate Curve if you've made any changes to the field curves.

    To see the effects of the field curves:

    1. In the Attribute Editor, select the wmWigFieldNodeShape
    2. Select Display Tangent to turn it on. Wig displays the tangent forces on the mesh surface.
    Tip

    Hide the fur set to get the best view.

    The following image illustrates tangent forces on a mesh surface.

    A grid representing the mesh surface shows curves with tangent lines.

    Use field maps to set data values

    Field maps allow you to paint data values onto the underlying mesh. The field node can take maps as input. You can paint maps for the hair attributes controllable by field curves and strand length.

    Note

    Hide the fur to paint the map values more easily.

    To use a map:

    1. Select the Fur node.
    2. From the Wig menu, go to Strands > Edit > Create a Field Solver. This creates a field node (wmWigFieldNode).
    3. Select the wmWigFieldNode.
    4. From the Wig menu, go to Strands > Edit > Add/Update Field Maps...
    5. From the Add/Update drop-down, select the type of map you want.
    6. Select Add/Update.
    7. Select the polySurfaceShape_fieldProxy.
    8. Open the Tool Settings for the Paint Attributes tool.
    9. In the Paint Attributes section, select the type of field map that you added. This creates a paintable attribute map.
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.