instance color from attribute

Forums: instance color from attribute
Houdini Integrated Plugin

Moderator: juanjgon

instance color from attribute

Postby Ebo » Tue Jul 30, 2019 11:25 pm

Ebo Tue Jul 30, 2019 11:25 pm
Hi, I just wanted to ask if there is any possibility to color instance objects from an attribute on points. I would like to plug it into albedo or emission or use it as a scattering or absorption color with a medium node. Thank you.
Ebo
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Sat Mar 11, 2017 9:36 am

Re: instance color from attribute

Postby juanjgon » Wed Jul 31, 2019 10:14 am

juanjgon Wed Jul 31, 2019 10:14 am
Hi,

Yes, it is possible. If you have the "Cd" attribute in the points, you only need to use a conventional texture node configured to use the "rgb4k_map.ppm" texture file available in the plugin/tex folder, as you can see in the attached image.

Thanks,
-Juanjo
Attachments
2019-07-31 12_12_07-M__F-Octane_Houdini_development_HoudiniOctane_3.0_unit_tests_008-instancingCdCol.jpg
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 6848
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: instance color from attribute

Postby Ebo » Wed Jul 31, 2019 12:35 pm

Ebo Wed Jul 31, 2019 12:35 pm
Ou, did notice there is a special node for instances, thank you. How would you go about using Cd as an absorbtion or scattering color in NT_MED_SCATTERING node ?
Ebo
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Sat Mar 11, 2017 9:36 am

Re: instance color from attribute

Postby juanjgon » Wed Jul 31, 2019 1:48 pm

juanjgon Wed Jul 31, 2019 1:48 pm
it is not a special node for instancing, it is the conventional texture image rgb node. I'm not sure, but I suppose that you should be able to use the same workflow to set the absorption or scattering in the instances.

Thanks,
-Juanjo
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 6848
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: instance color from attribute

Postby rohandalvi » Thu Aug 01, 2019 4:40 am

rohandalvi Thu Aug 01, 2019 4:40 am
Ebo wrote:Ou, did notice there is a special node for instances, thank you. How would you go about using Cd as an absorbtion or scattering color in NT_MED_SCATTERING node ?


Hi,

Octane currently does not support textures in absorption or scattering. Only solid colors. 2019.2 just added that feature.

Regards
Rohan
rohandalvi
Licensed Customer
Licensed Customer
 
Posts: 104
Joined: Tue Apr 20, 2010 7:39 am

Re: instance color from attribute

Postby juanjgon » Thu Aug 01, 2019 8:31 am

juanjgon Thu Aug 01, 2019 8:31 am
Thanks, Rohan, yes, I've seen this new feature in Octane 2019.2. It is really cool! But in any case, I think that in this case the user wants a solid color from a Cd attribute, a constant value for all the object medium nodes, so perhaps the .ppm texture workaround could work.

Thanks,
-Juanjo
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 6848
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: instance color from attribute

Postby Ebo » Tue Aug 06, 2019 7:19 am

Ebo Tue Aug 06, 2019 7:19 am
Hi, It did not work. Thanks for working on it. :)
Ebo
Licensed Customer
Licensed Customer
 
Posts: 14
Joined: Sat Mar 11, 2017 9:36 am

Re: instance color from attribute

Postby juanjgon » Tue Aug 06, 2019 8:26 am

juanjgon Tue Aug 06, 2019 8:26 am
Ok. Sorry about that. In this case, wait for Octane 2019.2 is the only solution, I'm afraid.

Thanks,
-Juanjo
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 6848
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Return to Houdini


Who is online

Users browsing this forum: No registered users and 1 guest

Wed Aug 21, 2019 3:53 pm [ UTC ]