How to transfer Cd Attrib from Point Cloud to Volume (help)

   1243   2   3
User Avatar
Member
2 posts
Joined: March 2018
Offline
Hi everyone,

I’m trying to transfer the color attribute Cd from a point cloud (representing an image) to a volume, but I’m running into issues. The main problem is that the color information is desaturated when I attempt the transfer—it appears grayscale instead of maintaining the original RGB values.

I’ve tried a few different setups, but I can’t seem to get the color to transfer correctly into the volume without losing the saturation. Does anyone have any tips or know the correct approach for this?

Thanks for the help!
User Avatar
Member
404 posts
Joined: April 2017
Offline
What are you using to get the color into a volume? Is the volume a vector-type VDB fog volume?

To get a color volume to display correctly in the viewport you'll want to use a Volume Visualization SOP with the color volume you created (typically Cd) set as the Diffuse Field. You'll also need a density scalar volume for the overall opacity.

Attachments:
color_volume.hip (349.9 KB)

MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
2 posts
Joined: March 2018
Offline
Hello Toadstorm,

Thank you for the help.

I didn't share all my intention and didn't want to go too deep into the setup but I aimed to export an image through COPs and Compositing viewport. I created a setup to create Normal maps based on photometric stereo scanning technique. All the setup worked fine, I just need to convert and export a point cloud to a 2D texture map (using volume and COPS). This is where I had issues keeping the RGB value. But someone found a solution on Reddit, here it is if anyone finds it interesting:

Inside the cop2net1 node, I had to define the custom Planes parameter to extract the Cd info. And this piece of code worked "Cd{x,y,z}:f32"

Thank you for your elp and taking the time to answer!

Attachments:
Cd_info.jpg (576.1 KB)

  • Quick Links