Subdivide
surface node
Subdivides polygons into smoother, higher-resolution polygons.
See also: Crease, Divide, Smooth, Tri Divide
This node takes an input polygon surface (which can be piped into one or both inputs), and divides each face to create a smoothed polygon surface using a Catmull-Clark subdivision algorithm. It is similar to the Paste op in that it divides up all or part of a surface allowing you to increase areas of local detail (especially useful for avoiding the angular appearance often associated with polygonal models) without adding lots of extra geometry to the entire object. While the topology of the input mesh can be arbitrary, for best results all polygons should be convex and relatively uniform in distribution.
All polygons in the left input which are specified by the “Group” field are used to determine the polygon mesh to subdivide. For polygon edges to be classified as the same edge, they must share the same points. Merely being physically close is not sufficient.
The elements of the right input specified by the “Creases” field are used as creases. Each edge in a crease polygon corresponds to the edge in the polygon mesh which has the same point numbers. Again, point position is irrelevant.
Vertex attributes are supported and preserved, however, instead of being properly subdivided they are merely linearly interpolated.
Using Subdivide
| To... | Do this |
|---|---|
|
Subdivide a polygonal surface |
|
|
Add local detail |
|
How to
| To... | Do this |
|---|---|
|
Add local detail |
|
|
Crease edges interactively |
|
|
Crease edges by number |
|
The RenderMan renderer will directly use the Crease attribute applied by the Crease Operation, but it will not be used by the Mantra renderer due to patent issues.
Creases
Creases control the strength of pull of the polygon faces on the subdivision surfaces, much like a magnet drawing the surface towards the reference polygon. They can be applied selectively using the Creases field to specify an input group to use.
Creases work by controlling the strength of the pull of the polygon faces on the subdivision surfaces, like a magnet drawing the surface towards the reference polygon. The figure below shows the result of setting the Crease Weight to 0, 1, 2 reading from left to right. As the weight increases so the pull effect strengthens and the shape approaches the reference polygon.
Crease Weights and Renderman
Crease weight attributes which are added, but not yet Subdivided are preserved when a rib file is generated. They are then used internally by RenderMan to implement subdivision surfaces during the rendering process.
In order to output the crease weights in the rib file, your geo object must have the Render page > Geometry > Polygons as Subdivision Surfaces parameter set.
The Crease Algorithm
If there is a second input:
-
If the Override button is enabled, each edge defined in the second input will have its edge crease weight set to the value of the override.
-
If the vertex attribute “creaseweight” exists on the second input, each matching edge in the input will have its crease weight set to the maximum of the vertex attributes for any shared edges.
-
If the primitive attribute “creaseweight” exists on the second input, each polygon in the second input will set matching edges to the appropriate weights.
If there is no second input:
-
If an override is specified, the value of the override is used for all edges in the sub-divided surface.
-
If the vertex attribute “creaseweight” exists, this attribute will be used to define the crease weights on the edges of the surface.
-
If the primitive attribute “creaseweight” exists, this attribute will be used to define the crease weights for the subdivision surface.
When defining crease weights on shared edges, the maximum of the weights of the shared edges is used. For example, if two polygons share an edge and the primitive attribute is used, the maximum of the crease weight will be used for the shared edge.
Closing Cracks
Cracks can be closed by either Pulling or Stitching, so only one of these two options can be chosen at a time from the Surrounding Faces parameter. Bias applies only to Pulling, and is disabled when Stitching is chosen.
A crack is formed by a single edge on the non-subdivided area and multiple edges on the subdivided area. The 'Surrounding Faces' menu determines what will will happen to the single edge on the non-subdivided area, and in more generally, to the polygon containing this edge.
If No Edge Division is chosen and cracks are pulled closed, all the points on the subdivided edges are pulled (i.e. moved) to the closest points on the non-subdivided edges. Bias is disabled, when No Edge Division is specified.
If cracks are pulled with the Divide Edges option, the non-subdivided edge is split into many sections, so that each each point on the non-subdivided edge now corresponds to a new point on the subdivided edge. Then, points on the newly divided edge are joined with the points on the subdivided boundary. A Bias of 1 will place these joined points along the subdivided boundary. A bias of 0 will place them along the non- subdivided boundary (and values between 0 and 1 will place them somewhere in between).
Pulling cracks with the Triangulate option will do exactly the same thing as Divide Edges, except it will also triangulate the non-subdivided polygon. This is desirable because pulling the non-subdivided boundary towards the curved subdivided boundary will likely generate a non-planar polygon, so Triangulate will divide this polygon into smaller (planar) ones. Pulling cracks with a Bias of 1 and triangulating usually produces the nicest results.
The Triangulate option is necessary because the Divide op is not designed to handle (very) non-planar polygons.
The Stitch Cracks Together option, on the other hand, inserts new polygons (triangles) to close up the cracks. When No Edge Division is chosen, Many triangles are created, each having one vertex on one point of the non-subdivided edge.
When Divide Boundary Edges is chosen, the non-subdivided edge is divided, so there are more points available to be used for triangles. The resulting triangles are more regularly shaped (not as long and skinny). The triangulate option will again triangulate the non-subdivided polygon, although this option is less likely to be used because this polygon should remain planar during stitching.
Parameters
|
Group |
Subset to use as a polygonal mesh and subdivide |
||||||
|
Creases |
Subset (of right input) to use as creases |
||||||
|
Depth |
How many iterations to subdivide, higher numbers give a smoother surface. |
||||||
|
Override Crease Weight Attribute |
Determine if the crease sharpness should be determined by the primitive or vertex “creaseweight” attribute or by overridden by this operation. |
||||||
|
Crease Weight |
If the crease weight is overridden, this is the weight used. |
||||||
|
Generate Resulting Creases |
If the creases are sharper than the depth, some will still be present in the final geometry. This option determines if they will be present in the resulting geometry. |
||||||
|
New Group |
Name of the group to place all generated creases into. |
||||||
|
Close Cracks |
|
||||||
|
Boundary |
|
||||||
|
Bias |
Determines which points are moved when pulling cracks closed.
|
||||||
|
Recompute Point Normals |
Re-evaluates point normals if they exist. If this is not set, the point normals will be interpolated in the same manner as the points. |
||||||
|
Smooth Vertex Attributes |
If on, vertex attributes will be smoothed in the same manner as the point attributes. However, vertex attributes at seams (places where points meet but the vertex attributes differ) will still be linearly interpolated. If off, the vertex attributes will be linearly interpolated. To match the Mantra subdivision rendering, this should be set to off. |
||||||
|
Enforce Consistent Topology |
If Pull Cracks Closed or Stitch Cracks Together is enabled, then different topology might be generated depending on boundary edges between the subdivided primitives and their non-subdivided neighbors. Turning on this option will ensure that this behavior will always produce consistent topology by disregarding collinear edges. |
||||||
|
Linear Creases |
If this option is turned on will switch from the standard (RenderMan) style creases to Mantra’s linear creases. |
||||||
|
Mantra-compatible Subdivision |
If this option is turned on, it enables a subdivision algorithm that is compatible with the subdivision algorithm used by mantra when the Polygons as Subdivision rendering parameter is enabled. The Polygons as Subdivision rendering parameter is on the Geometry sub-tab of the Render tab of an object. |
Usages in other examples
| Example name | Example for | |
|---|---|---|
| Down Hill Lava Flow |
Material shader |
|
| CreaseBasic |
Crease surface node |
|
| PeakEars |
Peak surface node |
|
| PolywireModel |
Poly Wire surface node |
|
| TankDrain |
Particle Fluid Sink dynamics node |
|
| DrainExample |
Particle Fluid Sink dynamics node |
|
| ReferenceFrameForce |
Reference Frame Force dynamics node |
|
| DrainExample |
Particle Fluid Emitter dynamics node |
|
| AutoFreezeRBD |
Active Value dynamics node |
|
| PaintedGrog |
Fluid Object dynamics node |