Using Cd Vertex Attribute with Instances

Houdini Integrated Plugin

Moderator: juanjgon

Post Reply
stevepickup
Licensed Customer
Posts: 35
Joined: Sun Jul 19, 2020 11:33 am

Hello,
Is there any way to use the Cd vertex attribute when using

Code: Select all

s@instance="/obj/object";
meathod to copy a sphere to alot of points, all with their own colour attribute?

I can get it to work fine if i do a simple copy-to-point and the usual Cd in the 'Point Vector Attrs' with a material that has a 'Cd' 'NT_TEX_COLOUR_VERTEXATTRIBUTE' wired into the diffuse. But this meathod takes much longer to load and render, so would be nice to be able to use @instance to copy the sphere to the points instead.

thank you
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Octane supports user attributes in the mesh, curves, and particles, but it doesn't support user attributes in the instances yet. In any case, the Houdini plugin has a trick to packing the Cd attribute inside an Id that later can be used to get the Cd color using an encoded texture map available in the plugin folder.

You have more details here:
viewtopic.php?f=101&t=73105&p=372155&hi ... cd#p372155

Thanks,
-Juanjo
stevepickup
Licensed Customer
Posts: 35
Joined: Sun Jul 19, 2020 11:33 am

Awesome :D will have a play with tomorrow
Post Reply

Return to “Houdini”