Jump to content

Volume displacement is not real displacement?


Fran

Recommended Posts

I wanted to create a volume with an animated displacement and I noticed some density appeared from nowhere. I searched further and here's what I've found. The volume displacement is not really displacing the volume but instead it's displacing the space at which the density is sample.

In this scene I demonstrate what I mean. If you render one frame of the Mantra node "const_disp" you will see a displaced volume -0.5 in X even though I've told the shader to displace 0.5 in X.

If you render the sequence "noise_disp" (or look at the attached video), you will see how the displacement evolves overtime while the noise amplitude is increasing. It's not displacing.

Is it normal?

François

volume_disp_v001.hip

volume_disp_noise_v001.mov

Link to comment
Share on other sites

Yes, this is the conclusion I came to as well, you are warping the space around the volume, thus all the values you would intuitively use to displace a surface need to be negated. If you need to displace along the surface normal you can build an SDF from the fog volume and save it out as a bgeo file and use a Volume Gradient on it to get the approx normal. If you displace heavily from within your volume you'll leave holes inside which can be an issue if your volume is rendered with low density.

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...