The rgb4k_map.ppm and alpha4k_map.ppm

Forums: The rgb4k_map.ppm and alpha4k_map.ppm
Houdini Integrated Plugin

Moderator: juanjgon

The rgb4k_map.ppm and alpha4k_map.ppm

Postby hubble » Thu Nov 07, 2019 8:00 am

hubble Thu Nov 07, 2019 8:00 am
Hello , can you tell me , how to use the two file "rgb4k_map.ppm"and"alpha4k_map.ppm", i render the particle which has Cd attribute ,but i can`t get the correctly result.
thanks
hubble
Licensed Customer
Licensed Customer
 
Posts: 10
Joined: Wed Jul 24, 2019 1:38 pm

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby juanjgon » Sat Nov 09, 2019 5:41 pm

juanjgon Sat Nov 09, 2019 5:41 pm
Hi,

Attached you have a couple of test scenes including particles and instances colored from the Cd attribute using these .ppm textures. Octane doesn't support custom attributes in the instances or particles yet, so the Octane plugin is using a trick to support at least a Cd type texture packing the attribute inside the UV map, information that is decoded texturing the particles or instances with the .ppm files.

Hope it helps,
-Juanjo
Attachments
2019-11-09 18_38_43-M__F-Octane_Houdini_development_HoudiniOctane_3.0_unit_tests_008-instancingCdCol.jpg
2019-11-09 18_38_29-M__F-Octane_Houdini_development_HoudiniOctane_3.0_unit_tests_008-particlesCdColo.jpg
2019-11-09 18_37_53-M__F-Octane_Houdini_development_HoudiniOctane_3.0_unit_tests_008-particlesCdColo.jpg
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8059
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby juanjgon » Sat Nov 09, 2019 5:42 pm

juanjgon Sat Nov 09, 2019 5:42 pm
The scenes ...

Thanks,
-Juanjo
Attachments
Desktop.zip
(76.04 KiB) Downloaded 118 times
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8059
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby hubble » Sun Nov 10, 2019 2:54 am

hubble Sun Nov 10, 2019 2:54 am
Thank you very much!
hubble
Licensed Customer
Licensed Customer
 
Posts: 10
Joined: Wed Jul 24, 2019 1:38 pm

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby Fantasy » Sun Jan 17, 2021 7:52 pm

Fantasy Sun Jan 17, 2021 7:52 pm
Hi, I've been trying to get this this to work with no luck. I can read the Cd attribute when I render as particles but not with instanced geometry. I tried your files @juanjgon but your instance example doesn't work either, it just renders the instances black. Any suggestions on how I can get this to work would be appreciated.
Fantasy
Licensed Customer
Licensed Customer
 
Posts: 5
Joined: Sat Oct 15, 2016 12:19 am

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby juanjgon » Mon Jan 18, 2021 7:44 am

juanjgon Mon Jan 18, 2021 7:44 am
The instances still need this workaround to render the Cd attribute. The scenes should work, but please, check the texture path set in the texture node, probably your .ppm textures aren't located in this same path.

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

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby Fantasy » Mon Jan 18, 2021 10:14 am

Fantasy Mon Jan 18, 2021 10:14 am
Hi Juanjo, the .ppm texture is the right path, it works fine when I render as particles. But when I try to use instances (via an instance attribute) it doesn't work. Has anything changed with the build that would effect the instancing workflow!?
Fantasy
Licensed Customer
Licensed Customer
 
Posts: 5
Joined: Sat Oct 15, 2016 12:19 am

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby juanjgon » Mon Jan 18, 2021 11:13 am

juanjgon Mon Jan 18, 2021 11:13 am
Weird! Here the scene attached previously in this topic works fine once you set the right path for the .ppm file. Are you sure that you are using the right texture from the plugin "tex" directory?

Thanks,
-Juanjo
Attachments
2021-01-18 12_12_13.jpg
Computer Graphics Software Developer
Octane plugin development and support: LightWave and Houdini
User avatar
juanjgon
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 8059
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: The rgb4k_map.ppm and alpha4k_map.ppm

Postby Fantasy » Mon Jan 18, 2021 2:18 pm

Fantasy Mon Jan 18, 2021 2:18 pm
Thanks for your reply Juanjo. I worked out what it was, I was using the wrong texture node in the shader.
Fantasy
Licensed Customer
Licensed Customer
 
Posts: 5
Joined: Sat Oct 15, 2016 12:19 am

Return to Houdini


Who is online

Users browsing this forum: No registered users and 2 guests

Fri Mar 05, 2021 8:45 pm [ UTC ]