←ALL OPERATORS
> fields

Field Measure

fields/field-measure·v1.5.1
IN:1  OUT:1

Field Measure takes a grid that only carries an occupancy, such as a solver's density or a TOP to POP image grid, and completes it as a POPX field: Dist, the signed distance to the surface where Weight crosses Threshold, its unit Gradient, and Velocity measured from how that surface moved since the previous frame. Without a Weight Attribute, the average of the color's RGB is used as the occupancy.

Scale and Center place a grid built at another size in world units, and Resolution can average the input down first for speed at a coarser result. Neighborhood sets the region Velocity is solved over, and the output drives Field Falloff, Field Render and the solvers like a field from Field or Voxelize.

PAGEField Measure
ScaleScaleScales the input positions uniformly (the input keeps its proportions) before measuring, so Dist, Gradient and Velocity are in the scaled world units.
Measure Dist (SDF)MeasuresdfEnable writing Dist, the signed distance to the Weight surface, negative inside. Needed by Gradient and Velocity.
ThresholdThresholdWeight value of the surface. Cells above it are inside.
Measure GradientMeasuregradientWhether to output the Gradient attribute, the unit normal of Dist pointing outward.
Measure VelocityMeasurevelocityMeasure Velocity, in units per second, from how the shape moved since the previous frame. Needs Measure Dist.
Velocity ScaleVelocityscaleMultiplies the output Velocity.
NeighborhoodNeighborhoodSets the size of the neighborhood Velocity is solved over, in world units. Larger catches the full motion, smaller keeps detail between nearby shapes.
Reset VelocityResetvelocityClears the velocity history so the next frame outputs zero.
Display FieldDisplayfieldEnable drawing the occupied voxels as points.
Display BoundsDisplayboundsDisplay the field box.
Color AttributeColorattrSelects the input attribute carried as the field's Color.
Weight AttributeWeightattrSelects the input attribute measured as the occupancy and written as Weight. Without it, the average of the Color Attribute's RGB is used.
Output 3D TexturesOutput3dtexturesWhether to output one 3D texture per field attribute.
PAGECommon
BypassBypassPass through the first input to the output unchanged.
Free Extra GPU MemoryFreeextragpumemFree memory that has accumulated when output memory has grown and shrunk.
Input 0 POP - Field 1
Output 0 POP - Field