Page 1 of 2
The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Thu Nov 07, 2019 8:00 am
by hubble
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
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Sat Nov 09, 2019 5:41 pm
by juanjgon
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
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Sat Nov 09, 2019 5:42 pm
by juanjgon
The scenes ...
Thanks,
-Juanjo
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Sun Nov 10, 2019 2:54 am
by hubble
Thank you very much!
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Sun Jan 17, 2021 7:52 pm
by Fantasy
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.
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Mon Jan 18, 2021 7:44 am
by juanjgon
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
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Mon Jan 18, 2021 10:14 am
by Fantasy
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!?
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Mon Jan 18, 2021 11:13 am
by juanjgon
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
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Mon Jan 18, 2021 2:18 pm
by Fantasy
Thanks for your reply Juanjo. I worked out what it was, I was using the wrong texture node in the shader.
Re: The rgb4k_map.ppm and alpha4k_map.ppm
Posted: Tue May 24, 2022 10:16 am
by chocbot
Hi Juanjo,
is there also a workaround available for using point attributes from the packed geo itself? For example I have a color attribute on a tree's leaves and that tree is instanced then. With that texture workaround it's only possible to get the color attribute per instance but not per point attribute of that instance, right?
Cheers