Page 1 of 1

Using Cd Vertex Attribute with Instances

Posted: Sat Oct 17, 2020 12:32 pm
by stevepickup
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

Re: Using Cd Vertex Attribute with Instances

Posted: Sat Oct 17, 2020 5:22 pm
by juanjgon
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

Re: Using Cd Vertex Attribute with Instances

Posted: Sat Oct 17, 2020 8:05 pm
by stevepickup
Awesome :D will have a play with tomorrow