Jump to content

give color to volume and then remove a part of it


CatherineKan

Recommended Posts

Hello,

The visualization I want to achieve is to color my sphere volume shells by shells, which was successful by using a color node and using programming to modify its parameters; then, I want to cut a quater or a half of the sphere (it was achieved by Vexpression shown in screenshot 1) so that the shells of color contrast can be more obvious to be seen, like seeing a cross section.

However, what I noticed was that the color seems to be set again based on the new volume obtained after removing a part of the sphere by using volume wrangle node. This was noticed from the second screenshot attached, there should be half of the shells with bright color just like the color ramp gradient shows.

Could someone provide another way to achieve my visualization?

Thanks in advance!!

Screenshot (87).png

Screenshot (86).png

Link to comment
Share on other sites

6 hours ago, Andrea said:

Try to see if this is the kind of visualization you are looking for. With volumes is better to use the volume visualization SOP and the Cd field

sphere_volume_colors.hipnc

 

Which expression are you trying to use for the blue component in the color node? 

Thanks so much!

I tried with the help of your workflow settings, it works for my color. The expression I used for color attributes were set in python source panel, as I attached in screenshot.

There is only one defect I found, that the final sphere is covered by white color outside, I do not know which parameter I should adjust, I tried to move black color on diffuse ramp in volume visualization node, it becomes better. But I noticed your sphere's outer look is smooth, could you help to take a look?

Thank you~

Screenshot (88).png

Screenshot (89).png

aerosol water loss final version.hipnc

Link to comment
Share on other sites

On 2020-06-17 at 8:23 AM, Andrea said:

That's because of how volumes are generated using the "surface attribute" from VDB from polygons.

This method should be better aerosol water loss final version_fix.hipnc

Yes, it looks better, but there are still grids can be seen on the surface. I am wondering why there is no grids on your "sphere volume colors" file? Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...