Using Cd Vertex Attribute with Instances

Forums: Using Cd Vertex Attribute with Instances
Houdini Integrated Plugin

Moderator: juanjgon

Using Cd Vertex Attribute with Instances

Postby stevepickup » Sat Oct 17, 2020 12:32 pm

stevepickup Sat Oct 17, 2020 12:32 pm
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
stevepickup
Licensed Customer
Licensed Customer
 
Posts: 29
Joined: Sun Jul 19, 2020 11:33 am

Re: Using Cd Vertex Attribute with Instances

Postby juanjgon » Sat Oct 17, 2020 5:22 pm

juanjgon Sat Oct 17, 2020 5:22 pm
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&hilit=instances+cd#p372155

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

Re: Using Cd Vertex Attribute with Instances

Postby stevepickup » Sat Oct 17, 2020 8:05 pm

stevepickup Sat Oct 17, 2020 8:05 pm
Awesome :D will have a play with tomorrow
stevepickup
Licensed Customer
Licensed Customer
 
Posts: 29
Joined: Sun Jul 19, 2020 11:33 am

Return to Houdini


Who is online

Users browsing this forum: No registered users and 4 guests

Wed May 01, 2024 9:58 pm [ UTC ]