Tools / TumbleRig / Attributes / Nodes

Deform Mask

Makes a 0 to 1 mask from wired-in geometry, a painted attribute, or both.

Access
Free
Node version
1.0
Package
TumbleRig
Houdini
22.0+

Overview

The mask every TumbleRig deformer and the Joint Capture use. Wire a box, a sphere or any mesh into the second input and the points inside it (or near its surface) get 1, fading to 0 over the Falloff Radius. The result is written as a float point attribute, so the deformer reads it the same way it reads a painted mask.

Parameters

Mask

Off: the geometry passes through untouched.

Mask From

Mask Input: Distance from Geometry against the second input. Nothing wired = no mask. Attribute: the float point attribute named in Mask Attribute. Both: the two multiplied; either one alone when the other is missing.

Mask Attribute

The painted float point attribute read in Attribute and Both modes.

Mask Region

Inside Geometry: points inside a closed mask get 1. Near Surface: points close to the mask's surface get 1; use this for open geometry.

Falloff Radius

Distance over which the mask fades from 1 to 0 outside the Mask Geometry.

Invert

1 - mask: everything except the region.

Blur

Blur passes over the finished mask. 0 = none.

Blur By

Surface: along mesh edges. Distance: points within Blur Radius in 3D.

Output Attribute

The float point attribute the mask is written to.

Recipes

Version notes

  • Node cache before every Output of 96 assets: a reopened scene reads a node's result without cooking what is above
  • Deform Mask 1.0: Switch-If tests and the mesh cooked first; a masked capture stack is no longer time dependent
  • Deform Mask 1.0: ok_switch reads a VEX flag (ok_flag) instead of Hscript attribute functions
  • Joint Capture chain, round 2: rings without a Blast, Capture Blur replays, dicts hash by content, a shorter mask path
  • Deform Mask 1.0: combine the mask over points in parallel (35 ms -> under 1 ms per masked node on a 233k skin, same mask)
  • Mask from Mask Geometry on the GPU: deform_mask's Distance from Geometry is th::cuda_distance_from_geometry, and Joint Capture / Capture Blur measure only their Group
  • Mask Primitives: th::mask_stack verb, th::apex_mask_primitives::1.0, Mask Geometry reads it point for point
  • Masks: mask on with no mask to read = full effect, on every masked node
  • Deformer masks: wire a Primitives node into Mask Geometry and its primitives are the mask (soft by Falloff Radius)
  • Lay out 80 nodes again with netlayout: boxes span rows, loops are boxes
  • Lay out the inside of the newest version of 80 nodes with netlayout
  • Mask Geometry inputs draw the mask red on every TumbleRig HDA (11 nodes, both the Type Properties colours and the inner subnet inputs); sphere_inversion's stream input back to the TumbleRig purple; thumbnails regenerated