←ALL OPERATORS
> fields

Combine Field

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

Combine Field merges two POPX fields into one. The Fixed Layer input's grid becomes the output and the other field is resampled onto it by world position, so the two can differ in resolution, size and center. The operation runs on Dist, and Weight, Color, Gradient and Velocity follow the same selection.

Union, Intersection and Difference come in hard and smooth versions, with Smoothness rounding the seam in world units, and Swap Operation Order keeps a difference's direction whichever input is fixed. Attribute pickers map each input onto the field attributes, a field without Dist takes part through a distance derived from its Weight, and chained Combine Fields build complex shapes from Field, Voxelize or solver output.

PAGECombine Field
Swap Operation OrderSwaporderSwaps the order of the operands. A operation B is changed to B operation A.
SmoothnessSmoothnessBlend distance of the smooth operations, in world units. Needs a signed distance on both fields; a field without one blends over at most 2 voxels.
Display FieldDisplayfieldEnable drawing the occupied voxels as points.
Display BoundsDisplayboundsDisplay the field box.
Color AttributeColorattr1Selects the input 1 attribute read as Color, premultiplied. Without it the color is white, premultiplied by the Weight.
Weight AttributeWeightattr1Selects the input 1 attribute read as Weight, the occupancy. Without it the Weight is 0.
Dist Attribute (SDF)Distattr1Selects the input 1 attribute read as Dist, the signed distance that drives the combine. Without it a proxy distance is built from the Weight.
Gradient AttributeGradientattr1Selects the input 1 attribute read as Gradient.
Velocity AttributeVelocityattr1Selects the input 1 attribute read as Velocity.
Color AttributeColorattr2Selects the input 2 attribute read as Color, premultiplied. Without it the color is white, premultiplied by the Weight.
Weight AttributeWeightattr2Selects the input 2 attribute read as Weight, the occupancy. Without it the Weight is 0.
Dist Attribute (SDF)Distattr2Selects the input 2 attribute read as Dist, the signed distance that drives the combine. Without it a proxy distance is built from the Weight.
Gradient AttributeGradientattr2Selects the input 2 attribute read as Gradient.
Velocity AttributeVelocityattr2Selects the input 2 attribute read as Velocity.
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
Input 1 POP - Field 2
Output 0 POP - Field