Graph VectorField Generator
The Graph vector-field generator uses a PopcornFX nodegraph to compute the vector of each voxel from its UVW or integer coordinates.
Properties
Property name |
Default value |
Description |
All common properties, see VectorField Generators |
||
|
|
Random seed used to generate the vector-field |
Animation |
||
|
|
When generating an animated vector-field, time in seconds of the start of the animation (on the first frame) |
|
|
When generating an animated vector-field, time in seconds of the emd of the animation (on the last frame) |
Vector Graph
The vector graph is run once per voxel of the final vector-field, to compute the value of this voxel’s vector.
The base vector graph consists of an input template VectorFieldGeneratorArgs, which outputs various useful properties such as the UVW coordinates of the voxel, and an output template VectorFieldGeneratorOutputs, which expects as an input the vector to write into the voxel.

Current Limitations
-
You cannot make local templates
-
You cannot use custom attributes
-
The simulation will be one-shot, it cannot be iterated over multiple frames to make a simulation converge using previous voxel values
Available Inputs
The VectorFieldGeneratorArgs template outputs the following values:
Property |
Type |
Description |
|
|
Normalized |
|
|
Integer coordinates of the current voxel. |
|
|
Flat index of the current voxel into the vector-field vector array. |
|
|
Vector-field resolution. |
|
|
Cell size in world units. |
|
|
Animation time in seconds, between the |
|
|
Normalized animation cursor in the |
|
|
Integer frame number in an animated vector-field. For static vector-fields, this will always be |
|
|
Total number of frames in an animated vector-field. For static vector-fields, this will always be |
|
|
Min corner of the bbox, in world coordinates. Equal to the |
|
|
Max corner of the bbox, in world coordinates. Equal to the |
|
|
Center of the vectorfield bbox. |
|
|
Size of the vectorfield bbox. |