Samples the value of a volume primitive stored in a disk file.
Samples a specific volume primitive. Returns 0 if
primnum is out of
filename is invalid, or the given primitive is not a volume
|ParticleVolumeCollision||Load | Launch|
This example demonstrates how to set attributes on a particle based on the value of a volume at the particle’s position.
In the example, particles are colored differently based on whether they are “in” or “out” of the volume, where “in” is defined in the example as “the value in the volume is > 0 at the position of the particle”, but could easily be changed.
Examples that use this node
|Example for||Example name|
|Smoke Object||2dfluid||Load | Launch|
|popexample_advectbyvolume||Load | Launch|