Basic Concepts 

 

Summary 

In this guide, we will go through the basic concepts of Ornatrix to get you started creating grooms. When you finish this guide you will have a good understanding of the Ornatrix hair stack, operators, hair interpolation, hair distribution and a good understand of common hair workflow in production. After going through the basic concepts, we will create our first groom, animate it, render it and then go over some good practices and suggestions to smooth out your hair creation experience in production.

Note: In this guide, the term "Modifier" and "Operator" will be used interchangeably.

 

The Hair Stack 

Ornatrix hair is often composed of one or more operators, represented as C4D deformers, applying changes one after another to create procedural effects. This stack can be found inside the C4D's Objects tab:

HairStack

Each operator under the Hair Object item is connected to each other to create the final groom. An operator generates some data, pass this data to the next operator and so on until the data flow reaches the final output. You can add, delete and reorganize the operators in the stack at any point. Changing any parameter will propagate the new data across the hair stack, going trough each operator from the point of modification to the top. New operators can be added using the Ornatrix menu on the main Cinema 4D window.

 

Guides From Mesh 

Guides From Mesh is the first operator inside the hair object stack. This operator is responsible for generating root data a using one of the available root distribution methods, creating guides and scatter them on a mesh. You can Then this data (the generated guides) is passed to the next operator to perform further deformations.

GuidesFromMeshAtt

Besides Distribution Methods, several parameters are available to allow the user to tweak final result. For example, the Guide Length parameter determines the length of the hair guide, or you can connect a texture map to the Distribution Map slot to determine the distribution area, where black values equal to 0 guides.

 

Edit Guides 

This is the grooming operator for guides. It allows you to tweak the guides generated by Guides From Mesh by brushing them, creating and deleting guides, grouping, painting and perform other operations which are done by hand instead of parametrically.

EditGuidesAtt

[Edit Guides Video]

Edit Guides provides three different editing modes that allows you to interact with the guides in different ways:

Root mode
Allows you to select and manipulate the guides based on their roots.

[Root Mode]

Strand mode
Allows you to select and manipulate the guides as a whole based on the guide vertices.

[Strand Mode]

Brushing mode
Brushing mode is where you perform all the brushing. This method provides a set of brushes that allow you edit the hair in different ways using brushes and other tools like Strand Groups and Strand Channels. The available brushes are:

[Brush Types]

  • Selection Brush
    Use it for strand selection.
  • Move Brush
    Use it comb the hair.
  • Rotate Brush
    A rotation is applied to the strand in the opposite direction of the brush stroke and using the first vertex point that is inside the brush radius as pivot, creating a curve effect.
  • Scale Brush
    The guides inside the brush radius are attracted to or expelled from each other.
  • Cut Brush
    Cut the guides inside the brush radius.
  • Length Brush
    Enlarge or shorter the guides while respecting the limits established in the Brush Min Limiter and Brush Max Limiter parameters.
  • Paint Brush
    Use this brush to paint Per-Root or Per-Vertex Strand Channels that can then be used for shading or to drive all kind of Ornatrix operator effects.
  • Grab Brush
    Similar to the Move brush but only the strands that are initially inside the brush radius will be grabbed and dragged with the brush locator.
  • Revert
    Sets the strands vertices to its initial state before the current Edit Guides operator. In essence, this brush is like an eraser, reverting any changes made to the strands by other brushes.
  • Pull Brush
    Pull the strand vertices away from the distribution mesh eventually straightening them.
  • User Defined Brush
    Allows you to load your own custom brushes defined using Ornatrix's Python API. There are two custom brushes available: Clump brush and Move brush, both of which you can find the Python scripts in the scripts/brushes directory of your Ornatrix installation. For more information on user defined brushes see Writing Plugin Brushes.

Ornatrix brushes can be used with different shapes, like a Circle, a Square or a Line. The line is specially useful with the Cut brush to make straight cuts to the hair.

[Brush Shapes]

All Ornatrix brushes share the same tool context, thus most brushes share the same settings.

[Bruh settings]

In general, brush settings names are descriptive enough to understand what they do immediately. In the settings section you will find the classic controls to change the brush size and strength, and check boxes to activate different features. The ones that you will be using the most are:

  • Use Brush Surface
    When this options is ON, the brush strokes are projected onto the distribution surface. This mode can be used to constrain the brushing changes to make hair or fur flow along the character's mesh surface. Otherwise the brush strokes will modify the hair strands in the screen direction.
  • Affect Selected Only
    Ensures that only the selected strands are affected by the brush actions.
  • Optimize Strand Geometry
    When on, a special algorithm is used for comb, grab, and smooth brushes which affects the whole strand alone its length by calculating the best fit to current stroke while minimizing changes to the strand shapes.
  • Brush Mirror Axis
    Select the axis to mirror the brush actions. Changes made in one side of the hair will be reflected in the opposite side in real-time. This feature works the same with all the brush types. This is very useful when you need a symmetrical hair or fur.
  • Brush Attenuation
    This section includes two ramp curves that allow you to tweak the brush strength attenuation and the strand strength attenuation along the strand, from root to tip.

[Brush Attenuation]

See the Edit Guides documentation for a more in depth description of all the brush settings.

Strand Groups

In the Strand Groups tab you can quickly create and assign groups to the hair guides. Strand groups allow you to sort your strands into distinct regions which can then be used to selectively apply operators down the evaluation pipeline.

When you turn On Use Strand Groups the controls to create strand groups will be unlocked. This section also provides options to select strand groups by its integer number and select the whole group using the Selection Brush or the selection options available in Root and Strand editing modes. To create a strand group, select some guides and click the Assign Unique button. For more information see Working with Strand Groups

Strand Channels

Channels allow users to add extra data to guides that can be used later on. There are two types of guide channels used by Ornatrix: Root and Vertex channels.

Root channels hold a single data value per every root (strand). This is a compact way of defining information that is uniform for every strand. It can be very effective for controlling properties that usually don't vary along strand length (such as hair density and dynamics properties).

Vertex channels hold Per-Vertex data. Every knot that defines the shape of every strand will have a value attached to it. This is more memory consuming than root channels and it allows you to control anything at any point on the hair model. Vertex channels can be useful to control clustering, frizz, and hair shading. See Working with Strand Channels for more details.

To create a strand channel manually:

  1. In enter Brush mode and go to the Channels tab.
  2. In the Strand Channels box select --Per-Strand Channels-- to create a Root channel or --Per-Vertex Channels-- to create a Vertex channel and click the Add button, enter a name for your channel and click OK. The best strategy is to name channels according to their purpose, and organize so you know clearly which channel performs which operation.
  3. Switch to the Paint brush, use the Current Channel Value slider to choose a gray scale value between 0 and 1.
  4. Select the newly created channel and use the brush to paint them.

Painting a Per-Vertex Channel
  1. Alternatively you can select some strands in Root editing mode, or using the selection brush in Brush editing mode,
  2. Use the Current Channel Value slider to choose a gray scale value between 0 and 1.
  3. And click the Assign Value to Channel button.

You can also add Edit Guides on top of Hair From Guides to create channels directly on the final hair strands, however this method is more memory consuming. Guide channels can also be procedurally generated, visit the Generate Strand Data operator documentation page to find out how.

 

Hair From Guides 

This operator is used for hair root distribution and hair interpolation. See the Root Distribution and Hair Interpolation section to learn more. Hair From Guides is responsible for generating dense hair based on the guide data passed by Guides From Mesh. The hair interpolation is performed using one of the several hair interpolation algorithms available in Ornatrix.

HairFromGuidesAtt

As you can see, Hair From Guides UI is very similar to Guides From Mesh, but the first includes extra parameters for hair interpolation, parting and other parameters exclusives to hair generation.

Distribution Settings

The Object tab includes all the settings related to hair distribution, ( see Root Distribution and Hair Parting for other settings ). The following is a list of the distribution settings that you are most likely to use in your first grooms. The rest can be found in the Hair From Guides documentation page.

  • Render Count
    Specifies the total number of roots to generate during rendering.
  • Count Fraction
    Specifies the percentage of roots to generate inside viewports based on the Render Count.
  • Use Render Count
    When ON, the total amount of hairs specified in Render Count will be displaced in the viewport.
  • Distribution Multiplier
    An optional multiplier map for hair density on the surface. A texture map with black and white values, the hair will only be generated on areas painted in white.
  • Distribution Channel
    As explained in Working with Strand Channels and Strand Channel Selection List you can use channels in Hair From Guides as well. Paint a channel to allow hair interpolation only among a group of hair guides. Guides painted black will not produce hair while white values will produce hairs.
  • Displacement Offset
    An optional offset along surface normals of generated guides. Allows you to push away guides from the surface if needed. This is useful when your base model is using a displacement map that makes its surface drastically different from the viewport low poly version where you are creating your groom. Connect your displacement map in this slot to conform the hair strand roots to the displaced version of your base model.
  • Remember Root Positions
    this option will make the operator generate and cache the root positions of rendered hairs. This ensures that the generated hair will remain consistent among shots rendered on different computers since random generation algorithms can vary across hardware. It is a good practice to enable this option when rendering hair on a render farm. Disabling this option will clear the cache. The cache with the root positions will be stored inside the scene by default, but you have the options to store it in a file somewhere in your hard drive.
 

Change Width 

Determines the hair strand width at render time. It gives you direct access to the width values stored inside the hair object, this ensure consistency across all render engines and operators.

ChangeWidthAtt

 

Collapsing the Hair Stack 

Each Ornatrix operator comes with a "Bake" tab in the Attribute window. In this tab you can find the Collapse up to Here button. This function allows you to collapse the hair up to that point in the stack, combining all the operators below the selected operator into a Baked Guides or Baked Hair operator. If the stack is collapsed below Hair From Guides a Baked Guides operator will be created. If instead the stack is collapsed above Hair From Guides, a BakedHair operator containing the combined operators will be created.

When Baked Guides is generated, it will automatically re-attach the distribution mesh linked to this object, but it also allows you to select a new distribution mesh to transplant the hair object to another character. To replace the base mesh, go to the Ground tab and click & drag a mesh from the Object window to the Distribution Mesh field.

BakedHairAtt
Baked Hair operator

This operator also provides 5 empty slots to load alembic hair files from Ornatrix for Maya, 3ds Max or even other hir system capable of exporting alembic files.

BakedGuidesAtt
Baked Guides operator

In the Baked Guides operator the grounding is done in the Object tab.

 

Operator Types and Order of Operations 

 

Operator Types 

Ornatrix operators can be divided in the following categories:

 

Generators 

Operators that generate strand data from another dependency like a polygon mesh, spline curves or Ornatrix strands.
Between the generators we can find:

  • Hair From Mesh Strips
    Generates hair from polygon mesh strips.
  • Curves From Strands
    Generates splines curves from Ornatrix hair strands or guides.
  • Mesh From Strands
    Generates a polygon mesh from Ornatrix hair strands or guides.
  • Guides From Mesh
    Generates hair guides from mesh.
  • Guides From Curves
    Genersates hair guides from spline curves.
  • Guides From hair
    Generates Ornatrix hair guides from hair strands.
  • Hair From Guides
    Generates and interpolates hair from the given guides.
  • Scatter
    Designed to scatter feathers on strand roots.
  • Generate Strand Data
    Used to generate strand data like strand channels and strand groups based on parameter input or SeExpr.
 

Deformers 

Operators that deform the hair strands or guides. They take the data given by the previous operator in the stack, make some procedural or destructive deformation and pass this data to the next operator to perform the next deformation. Between the deformers we can find:

 
Note: Click the operator names to go to their respective page. 
  • Ground Strands
    Sets the dependency or distribution mesh for all the guide roots.
  • Frizz
    Adds Frizz and outlier hairs while preserving the strand length.
  • Curl
    Adds waviness and curliness to the hair strands.
  • Clump
    Adds clumping by guide roots, by strand groups and random clumps with tools for manual clump creation and editing.
  • Length
    Used to edit the strand length.
  • Detail
    Change the resolution of the hair strands by increasing or decreasing the amount of vertices per-strand.
  • Surface Comb
    Defines the shape of the fur along a surface using arrow manipulators or "Sinks".
  • Rotate
    Rotate strands operator defines the twist value of individual hairs.
  • Symmetry
    Adds symmetry to the hair object on the X, Y or Z axis and sets the guide dependency or distribution mesh for the mirrored side.
  • Normalize Strands
    De-tangle the hair strands, eliminating inter-penetrations in the hair.
  • Adopt External Guides
    Is used to animate the hair using a set of guides external to the current hair object.
  • Push Away From Surface
    Push the hair strands away from the distribution mesh and other external objects on a per-vertex basis.
  • Gravity
    Adds gravity effect to the hair.
  • Edit Guides
    Allows you to groom the strands generated by Guides From Mesh or Hair From Guides using an intuitive set of brushes and tools.
 

Animation 

Animation operators are also deformers oriented to animation. For example, Moov Physics takes the strand vertices and deforms them based on a PBD simulation.

  • Moov Physics
    This is our CPU based hair simulation engine. Allows the user to create realistic hair simulation using different simulation models like Cosserat a Distance based model or a combination of both. The user have the option to create his own hair simulation scripts using Python.
  • Resolve Collisions
    Deforms the hair vertices to create collisions with the distribution mesh or external objects without a full physics simulation.
  • Oscillator
    Uses an oscillation algorithm to create inertia movement without full physics hair simulation.
 

Hybrid 

Hybrid operators perform both tasks. They generate hair data and and also deform the hair strands.

  • Multiplier
    Multiplies the amount of guides by the specified amount. It also contains parameter to deform the generated hair strands for adding twisting, fluff, shift and spread.
  • Propagation
    Generates hairs or guides along the given strands. This operator is used to create feather objects and vegetation.
  • Animation Cache Modifier
    Record, load and play hair animations in .abc format. This operator uses our own Alembic exporter and can read hair objects imported from any other 3D software, like Maya, 3DS Max, Houdini, and any hair system capable of exporting Alembic animations. It includes parameters to offset the animation and read Strand Channel, Strand Groups and hair Width data.
 

Order of Operations 

In general, Ornatrix operators have descriptive names. As we saw in The Hair Stack section these operators depend on some input data that they can use to compute some calculations. For example, Guides From Mesh depends on a mesh and some of its properties like vertices, polygons and UVs. Operators like Hair From Guides or Frizz depend on strand data to perform their calculations.

After performing the calculations with the given input data, the operator puts the resulting strand data into its output for the next operator in the stack. This means that if the dependency data changes, the operator will be recomputed with the new data and pass the new output data to the next operator. In general, all of the operators that are designed to work on guides will also work on hair strands or the final hair, but it is still important to understand how they work and their purpose to know how to order them and get all the advantages that Ornatrix can offer you.

As an example, you should not place a deformer operator like Frizz, after a generator operator like Mesh From Strands. As a deformer, the Frizz operator accept hair data as input, but when adding Mesh From Strands the hair object has been converted to a polygon mesh, so this operator is not passing hair data to the Frizz operator, so in this case Frizz will not do anything because it is not receiving any input hair data.

Another examples are Guides From Mesh and Hair From Guides. The second will not work with the first because it needs hair input data. So, before adding Hair From Guides, you have to first generate guides using Guides From Mesh or Guides From Curves.

 

Operator UI 

Each operator UI is composed by several tabs. This way the parameters are organized in a logical way for a cleaner UI, but there are several components shared across all operators. In this section, we will understand the logic behind the operator UI and what see what all they have in common.

 

Operator Tabs 

There are two tabs that are shared across all Ornatrix operators: Object tab and Bake tab.

The Object tab contains the main settings of the operator. For example, Guides From Mesh includes all the root distribution settings on the Object tab, since root distribution is the main purpose of this operator.

The Bake tab includes includes a single button called "Collapse up to Here". As we saw in [Collapsing the Hair Stack] link text section, this function allows you to collapse the operator stack up to that point into a Baked Hair or Baked Guides operator.

Besides the Object tab and the Bake tab, some operators have extra tabs dedicated to unique settings. For example, Hair From Guides hair separate tabs for Root Distribution and Hair Interpolation.

 

Strand Group 

In the Strand Group field you can enter an integer value identifying a group of strands in the Edit Guides operator. Strands belonging to a specific group can be edited separately by various Ornatrix operators. Find more details about strand groups in the "Working with Strand Groups" page.

 

Ramp Curve Attributes 

The Ramp Curve attribute is includes in several operators, but only where it makes sense. For example, the Change Width operator sets the width of each hair strand and you can set the width using the "Width" slider, but you can control the width from root to tip using the Width Ramp attribute.

In this window, you can use a curve to control parameters of type amount on several operators, besides Change Width, you can find it in Frizz, Clump, Curl and others, where you can control the frizz amount, clump amount and curl amount respectively.

You are also allowed to create new spline points to tweak the final result and store curve presets for later use.

 

Strand Channel Selection List 

The strand channel selection list allows you to choose a strand channel created in the Edit Guides operator or using the Generate Strand Data operator. In a similar fashion to Strand Groups, Strand Channels allows you to isolate the effect of an operator to certain areas of the hair. See Working with Strand Channels for more details.

 

Multiplier Maps 

Multiplier maps are textures that you can used to control the Amount parameter on most Ornatrix operators. Black values will reduce the effect of the Amount parameter to 0, while White values will set the value to 1.

 

Root Distribution 

Root Distribution is performed by Guides From Mesh and Hair From Guides before guide generation and hair interpolation respectively. Root Distribution scatter root positions on a distribution mesh and then Hair Guides or Hair Strands are grown from them. The available distribution algorithms are:

Uniform
Roots are placed in a linear manner forming a 'grid' around the mesh.
Uniform

Random Area
The roots will be distributed evenly and randomly throughout the mesh but the amount of roots per face is calculated based on the total area of all faces on the mesh.
RandomArea

Random UVs
Similar to Random Area, but it uses the UV area instead. This allows user to control the distribution by maintaining UVW coordinates on the mesh. It is possible to unwrap a character, for example, and have dense placement of hair in some spots than the others by stretching out those areas in the UV editor.
RandomUV

Tuning UV Root Placement

  • Random Face
    Similar to Random Area but the same amount of roots is generated on every face. Larger faces will tend to have sparser root placement, while smaller ones will have roots more clustered in one spot. This distribution method is more appropriate for meshes with even topology.

RandomFace

  • Per Vertex
    This is a per-vertex distribution method. One root is generated at each vertex of the surface mesh.

Vertex

  • Face Center
    This is a per-face distribution method, thus one root is generated at the center of each polygon face. This distribution method is more appropriate for meshes with even topology to get evenly distributed guides.

FaceCenter

  • Even
    Roots are placed on the surface randomly but it tries to keep the same distance from one another. This method provides the most realistic root placement result for natural hair phenomena.

Even

The Random and "Even" distribution method have a Random Seed parameter to control the randomization. This parameter does not affect the Vertex and Face Center distribution methods.

 

Hair Interpolation 

Hair interpolation is the process of generating dense hair based on some input Hair Guides generated in Guides From Surface, Guides From Curves, Guides From Hair or planted using the Edit Guides operator.

[Interpolation examples]

The interpolation settings can be found in the Guide Interpolation tab. Ornatrix provides several interpolation algorithms for different use cases. Combining between different Guide Selection methods, Guide Interpolation and Guide Count you can find the right hair density generation for your needs.

 

Guide Selection 

The interpolation depends on how close the guide roots are to each other. Guide Selection tells the Guide Interpolation algorithm how close it should interpret the guide roots. You can choose between:

  • Circle
    Each guide have a spherical area of influence and for a given point all guides whose area of influence includes this point are used for interpolation.
  • N Closest Guides
    For a given point N closest guides are used during interpolation.
  • Barycentric
    This method utilizes information from your character mesh and its mesh topology to interpolate hairs between guides. This guide selection method provides better results and should be used by default.
 

Guide Interpolation 

  • Polar
    Use internal strand space, interpolate by rotating transforms.
    Strands are interpolated in their local space so you will see them rotating which might not always be ideal, especially for longer hair.
    If used properly, only a few guides on the whole surface could be required to form a hair volume. А downside to this method is that polar interpolation will have two poles (or sinks), where hair will not be well defined and will tend flip. If you only need a part of your surface covered, or if the surface is not fully round, this method is the best to use.
  • Affine
    Uses closest guides, interpolate in object space.
    Unlike the above method, this interpolation type does not take surface information into account. Instead it directly interpolates between strands. Lets say there are two guides - A and B - and we create a dense strand C and its right in the middle between these two guides. The tip of of strand C will lie in the middle of the line formed by tips of guides A and B.
  • Segment
    Using this method can produce better results if you have guides which greatly change shape and want the resulting hair to blend between these guides smoothly. It blends guides using their individual segments and tries to smoothly blend the overall length of each strand.
 

Guide Count 

  • Do Not Interpolate
    The hair will be generated around the guides without any interpolation.
  • Interpolate Between Two Guides
  • Interpolate Between Three Guides
 

Barycentric Interpolation Type 

The barycentric interpolation type can only be changed when Barycentric guide selection is used.

  • Distribution Mesh
    The interpolation uses the mesh topology to determine how guides affect the generated hairs.
  • Nearest Neighbor
    Guide roots are re-triangulated and the result is used to determine the interpolation. This method is slower but gives better results.
  • Manual Triangulation
    Same approach as above but additional steps are undergone to remove some artifacts. This method is slower but can give better results than Nearest Neighbor and should be used by default. It preserves better the shape of the hair in relation to the guides used for interpolation.

[Interpolation Type Examples]

 

Additional Settings 

 

Hair Parting 

 

Animation 

 

Rendering 

 

Pipeline 

 

Exporting, Import and Sharing grooms 

 

Groom Presets 

 

Transplanting Grooms 

 

Best Practices 

Missing Something? Let us know if this page needs more information about the topic.