Jump to content

Clouds: What is going with density, position and volumesamplefile?


Recommended Posts

Here are two simple volume noise set ups:
1. One uses position, but needs a volumesamplefile
2. The other uses both position and density and doesn't need a volumesamplefile
Both give results, different results.

if I however start messing with combinations using the volumesamplefile I get this:
3. position_without_volumesamplefile
4. position_and_density_with_volumesamplefile

Any idea what the real role of the volumesamplefile and its relation with the position and density?

4.position_and_density_with_volumesamplefile.JPG

3.position_without_volumesamplefile.JPG

2.position_and_density_without_volumesamplefile.JPG

1.position_only_with_volumesamplefile.JPG

Link to comment
Share on other sites

The volumeamplefile is mainly used to retrieve values from another stream,
such as you want to make a boolean opreation between two vdb, or use the vdbanalysis node.
It just get any kind of value (Cd, gradient, density etc..) at a given position

In your example the volumesamplefile node is not necessary.
Just subtract aanoise (3D input, 1D noise) result to density (wich is a simple float value). Don't forget a fit node with aanoise.
No reason to add or multiply density with position (vector), unless you want an attenuation according to the distance to the center.

Another reason to use volumesamplefile in place of input P is when your volume vop is in a solver.
Don't really know why, I'm also curious to know.
 

Edited by flcc
Link to comment
Share on other sites

volumesamplefile() allows you to get density at another position than the psition of the current voxel

so if you add vector to position, you can reach voxel value from that offset/displaced location, so essentially adding vector noise to P and sampling volume density at that location will displace the input volume

 if you just bind the @density directly, that will give you density value of a current voxel (same as volumesample at current P), if you multiply it by noise value you will just mask the density

 

  • Thanks 1
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...