volume visualization

   5777   4   0
User Avatar
Member
2624 posts
Joined: 8月 2006
Offline
Hi ,
For some reason I am finding it hard to to display the gradient from a volume analysis SOP via a volume visualization.

Where am I going wrong ? On a side note what are some possible uses for the gradient values ?

Rob

Attachments:
rse_volumevis_01.hip (488.5 KB)

Gone fishing
User Avatar
Member
789 posts
Joined: 4月 2020
Offline
Vector fields are still tricky to display in sop's. One solution would be to bring the volume into dops and use the vector field visualization node. Another one Which I added to your example (attached) is to use use the attribute from volume sop and display that attribute as a vector.

The gradient can be thought of as the normal of a volume. In a sdf volume the gradient together with the value give you a very easy closest point transform. within the volume, if you move along the gradient by the amount in the sdf (the distance) you end up on the surface.

One great use of this is the “target drive smoke” force Jeff added to Houdini 11. It drives the smoke towards a goal by applying a force in the direction of the gradient. Another great use is particle collisions, you can do super fast collision tests on an sdf, and if the particle penetrates because it moves to fast, you can easily fix it .

Hope that helps,

cheers,

Koen

Attachments:
gradient.hipnc (489.7 KB)

User Avatar
Member
2624 posts
Joined: 8月 2006
Offline
Thanks koen,
For the break down and pointers > added to my notebook.

if you move along the gradient by the amount in the sdf (the distance) you end up on the surface.

How would you do this ?

rob
Gone fishing
User Avatar
Member
1390 posts
Joined: 7月 2005
Offline
circusmonkey
How would you do this ?
rob

Since gradient is a direction in which sdf field changes, and a sdf value itself is a distance to sdf surface, probing particle position for these two gives you an exact transformation to the place on a surface, where a particle should be.
User Avatar
Member
2624 posts
Joined: 8月 2006
Offline
Volume sample > awesomeness

Rob
Gone fishing
  • Quick Links