hi..
Can anyone explain how the PrimitiveSplit Sop works? I don't see any influence on the input geometry by this sop. Even after reading the document, I don't really get what this sop does.
Thanks in advance.
Wesley
About PrimitiveSplit Sop
6530 3 1- wes_sin
- Member
- 27 posts
- Joined: July 2005
- Offline
- Brask
- Member
- 7 posts
- Joined: July 2005
- Offline
In Houdini the shading of polygons is determined by the point connectivity. If the vertices of two polygons share a point, they will shade smoothly. This is also used elsewhere, for example in the Subdivision and in the Triangle Strip methods.
This can be demonstrated with:
Box
Primitive.
Got to Attributes, change it to Add Color, set the fields to
1 $PR==0 1
You know have a purple cube with one white face on primitive 0.
Add a tristrip. You now have totally different colours as Houdini merged some of the side polygons with the white one. To avoid this, we have to tell Houdini that the primitives should not be connected in the tristrip.
Do this by, after the primitive, adding PrimitiveSplit. Set the attribute to Cd. Note that you now have unique points along the edge where the colours change.
Add a tristrip to this - it will match your original.
You can also use this to split the points where materials change by using vm_surface as the attribute name.
- Brask
This can be demonstrated with:
Box
Primitive.
Got to Attributes, change it to Add Color, set the fields to
1 $PR==0 1
You know have a purple cube with one white face on primitive 0.
Add a tristrip. You now have totally different colours as Houdini merged some of the side polygons with the white one. To avoid this, we have to tell Houdini that the primitives should not be connected in the tristrip.
Do this by, after the primitive, adding PrimitiveSplit. Set the attribute to Cd. Note that you now have unique points along the edge where the colours change.
Add a tristrip to this - it will match your original.
You can also use this to split the points where materials change by using vm_surface as the attribute name.
- Brask
- wes_sin
- Member
- 27 posts
- Joined: July 2005
- Offline
- Brask
- Member
- 7 posts
- Joined: July 2005
- Offline
The vm_surface attribute is added by the shader SOP. It contains the black magic to describe the shader to apply to each primitive.
The primitive meta weight option allows you to change the weight of metaballs. Put down a metaball sop, append a primitive with this option on, and you will see that you can change the weight with it.
- Brask
The primitive meta weight option allows you to change the weight of metaballs. Put down a metaball sop, append a primitive with this option on, and you will see that you can change the weight with it.
- Brask
-
- Quick Links