Point attributes

From Odwiki

Jump to: navigation, search

What are they?

geo format (which is the geometry definition stored internally) may have point attributes which are additional floating-point, integer or string values that are attached to each point. The same is true for primitives (per poly/patch) and detail (per object/geo definition).

A point attribute section of a .geo file format might look like this:

PointAttrib
Cd 3 float 1 1 1
Alpha 1 float 1
N 3 vector 0 0 0
  • PointAttrib starts the section
  • Each attribute is on it's own line, and contains four pieces of information:
    1. attribute name, e.g. 'Cd'
    2. attribute size, e.g. 3 floats
    3. attribute type, can be float, int, vector
    4. attribute defaults, which is as many values as the size, and tells Houdini what to set attributes if they're created as the result of a merge SOP

So in all, this tells us that there are going to be 3+1+3=7 floating point values for each point.

The point attributes are then listed out for each point

See Also

© 2009 od[force].net | advertise