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
volume visualization
5777 4 0- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- Offline
- koen
- 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
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
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- Offline
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- Offline
-
- Quick Links