Vertex Attributes

From Derivative
Jump to: navigation, search

You can use the Vertex SOP or the SOP to DAT, DAT to SOP pairs to add or modify vertex attributes.

A Polygon is made of a set of Vertices, and each Vertex points to a Point.

Some Vertex Attributes[edit]

Name Type Size Description
N vector 3 Surface normal
uv float 3 Texture coordinates
Cd float 4 Surface color and alpha specified by RGBA. Values range from 0 to 1. The alpha component Cd(3) controls the transparency of a given element, where 1 is fully opaque, and 0 is fully transparent.
creaseweight float 1 Crease weights, use in sub-division surfaces. See Subdivide SOP.
pCapt float 2 Capture data containing index and weight for a transform. See Deforming Geometry (Skinning)

Each SOP has a list of Points. Each point has an XYZ 3D position value plus other optional attributes. Each polygon Primitive is defined by a vertex list, which is list of point numbers.

Information associated with SOP geometry. Points and primitives (polygons, NURBS, etc.) can have any number of attributes - position (P) is standard, and optional are normals (N), texture coordinates (uv), color (Cd), etc.