|On this page|
The Mantra Fur Procedural creates a set of curves to represent hairs growing out from surface polygons or a point cloud. CVEX shaders can be applied to manipulate attributes and the shape of the generated curves.
When surface polygons are provided, the number of generated curves is a result
of the density multiplied by the area of the skin polygons. The area of the
skin polygons is taken from the optional
area attribute or calculated from
the vertex positions described by the optional
rest attribute or point
The optional second input provides guide curves. The shape of the guide
curves are interpolated to determine the shape of the generated curves
(before CVEX shaders are applied) ignoring the Length and Vertices,
on the Mantra Fur Procedural. Specify a Float3 primitive attribute called
guideorigin on the guide curve geometry to use location-based interpolation.
guideorigin attribute is present, Guide Radius will indicate
the size of the area influenced by each guide curve.
The optional third input provides clump curves. The
clumpradius attributes on the clump curves are used to map each generated
curve to a clump.
The optional fourth input provides curves for parting lines.
The Mantra Fur Procedural uses the following attributes from the input geometries.
|area||Skin||Primitive||Float||This attribute describes the area of each polygon in the skin geometry. This affects the number of curves generated by the primitive. This attribute is optional, if missing the area of each primitive will be computed.|
|clumporigin||Clumps||Primitive||Float3||Describes where each clump originates on the rest skin.|
|clumpradius||Clumps||Primitive||Float||Maximum distance from the clump origin hairs may originate and still be a member of the clump.|
|furdensity||Skin||Any||Float||This attribute is used as a scalar multiplier to the Density parameter and affects the number of generated curves. If this value is reduced by a CVEX skin shader, some curves will be removed to reflect the lowered density value. This attribute is optional, if missing a value of 1 is used.|
|guideorigin||Guides||Primitive||Float3||Describes where each guide originates on the rest skin.|
|guideradius||Guides||Primitive||Float||Maximum distance from the guide origin hairs may originate and still be affected by the guide.|
|N||Skin||Point||Float3||If guide hairs are not used, this attribute describes the direction of generated curves.|
|rest||Skin||Point or Vertex||Float3||This attribute describes the rest position of each point in the skin geometry. This affects the calculation of each polygon’s area when determining the number of generated curves. This value is also used to map each generated curve to a clump. This attribute is optional, if missing the point’s position is used.|
The Mantra Fur Procedural makes the following special attributes available to the CVEX shaders.
|clumpP||Vertex||Float3||Describes the position of each vertex in the associated clump hair. This attribute is only available in the Guide Shader.|
|clumproot||Primitive||Float3||Describes the position on the skin from which each clump hair is grown.|
|hairid||Primitive||Integer||Contains a unique ID for each generated curve. This is a read-only attribute.|
|hairroot||Primitive||Float3||Describes the position on the skin from which each hair is grown.|
Describes each vertex’s parameterized distance along the curve in the
|P||Point||(point position)||Describes the position of each vertex in the generated hairs. This attribute is only available in the Guide Shader.|
Describes the x-axis direction of the
Describes the y-axis direction of the
Describes the z-axis direction of the
The Mantra Fur Procedural can be used to interpolate (and manipulate using CVEX shaders) any attribute. The following are some related attributes used by mantra.
|orient||Float3||Hint direction for orienting the ribbons used to represent curves.|
|width||Float||Width of the rendered curves.|
Path to an object containing skin geometry.
Path to an object containing guide hairs.
Path to an object containing clump center geometry.
Allows you to adjust the bounds of the bounding box to compensate for any fur that may have been moved outside of the original bounds by a shader.
Primitives in the skin geometry from which to grow hair.
Type of geometry to create.
Create a polyline.
Create a NURBS curve.
Number of segments in each generated curve (ignored if geometry is provided by the "Guides" input).
Specifies the length of the generated curves.
Seed value for the random number generator.
The number of generated curves is a result of the density
multiplied by the area of the skin polygons. The value of this
parameter acts as a scalar multiplier to the optional
attribute to determine the curve density.
Specifies a fraction of the curves to display.
Maximum distance a hair can be from a guide hair and still be influenced by the guide hair.
Maximum distance a hair can be from a clump and still be a member of the clump.
Use Closest Clump
Associates each hair with its closest clump.
Remove Unclumped Hairs
Removes all hairs not associated with a clump.
Remove Unguided Hairs
Removes all hairs not influenced by a guide hair.
Maximum distance a hair can be from a parting line and still be affected by the parting line.
The Skin Shader parameter specifies a CVEX SHOP to manipulate
attributes interpolated from the skin geometry. Each attribute
has a single value for each generated curve. A unique value for
each curve is available for reading in the
hairid value. In
the case of the
furdensity variable, reducing the value will
result in hairs being removed but increasing the value has no
Class for transferred attributes.
Specifies a list of attributes from the skin geometry that will be transferred to the generated curves. The resulting attribute values will contain any modifications made by CVEX shaders.
Set Hair ID
hairid attribute containing a unique value for each
The Guide Shader parameter specifies a CVEX SHOP to manipulate
attributes interpolated from the guide and clump geometries. Each
attribute has a separate value for each vertex in the generated
curves. The special
P variable may be used to manipulate the
Class for transferred attributes.
Specifies a list of attributes from the guide and clump curves that will be transferred to the generated curves. The resulting attribute values will contain any modifications made by CVEX shaders.
The bounding box controls let you specify a bounding box for the referenced geometry. Only when this bounding box is "on screen" will mantra load the referenced geometry. You can set Bounding Box to No bounding box required, in which case mantra will always load the references geometry regardless. You can also specify the bounding box by referencing the SOP’s bounding box in the SOP Bounds parameter.
The geometry whose bounding box you want to reference.
The minimum bounding box dimensions, when setting explicit bounds.
The maximum bounding box dimensions, when setting explicit bounds.