Tools / TumbleRig / Deformation / Nodes

Apex Lattice

Adds a lattice cage with controls that bend part of a mesh.

Access
Free
Node version
1.8
Package
TumbleRig
Houdini
22.0+
What you can make with it

Overview

Builds a lattice of Divisions cells around the Group of the Target Shape, with a control on every cage corner. Posing the corners bends the mesh inside the cage; Parent Control carries the whole lattice. The label next to Group shows what it matches.

Box Axes decides which way the box lines up in Bounding Box mode: with the world (as before), with the Parent Control's axes, or Fit to Object, the tightest box around the Bounding Object at any angle, named after the Parent Control's axes so Divisions and Layers Along keep their meaning. Turn Box turns it further by hand. The lattice points and row controls sit on the turned box and move along its axes.

With Cage From set to Spline, the lattice is built on a spline that is already in the rig instead: one row of lattice points on each of its joints (Row Step thins them), Radius X and Radius Z across, lined up with the spline even where it is bent. The spline's bends, twist and stretch carry the rows, and the lattice points you move ride on top. Turn on Mesh Already Follows The Spline when an earlier node skins the mesh to that spline, so the lattice adds only its own shaping.

Point Controls puts a control on every lattice point (on by default). Turn it off to animate with the row controls only: the points then ride their rows, or the spline in Spline mode. Shape, Color and Size set the look of both kinds of control.

With Layer Controls on in Bounding Box mode, Stretch and Squash widens the rows when they get closer together and thins them when they pull apart, keeping the volume (the same settings as apex_spline). Distribution moves the bulge toward the middle rows or the end rows, and Pin Start / Pin End keep an end row at its own size.

Interpolation: Linear follows each cell's corners; Bezier and Nurbs bend the mesh smoothly across the rows.

Joints From in the Chain folder picks where the rows come from: a Spline in the rig (as above), or a Joint Chain, every joint from Start Joint down to End

its rows widen where the joints come closer together and thin where they pull apart; bending at a joint does not count.

Modes

The Mode line at the top says what the node does where it sits. It reads the network only, so it updates when you select the node again after rewiring.

Deform Space

Automatic (the default) picks for you. After a bone deform it is World: the posed mesh is taken into the Parent Control's frame, deformed, and put back, so the lattice follows the Parent Control (Main when it is empty). Before a bone deform it is Parent-Local: the mesh is used as it comes, and the bone deform then carries the result. With no bone deform at all (a prop, or a character deformed only by lattices) it is Parent-Local too, and the lattice carries the whole mesh with the Parent Control, so the mesh stays inside the cage when the rig moves. That needs a mesh without capture weights: a captured mesh is left for the bone deform you add below. Parent-Local and World are in the Advanced folder for rigs that need one on purpose.

Keep Pose

Only after a bone deform. 0: the lattice deforms the posed mesh, so a raised brow squashes with the head. 1: the pose stays exactly as animated and only moves with the lattice. Between blends them.

Falloff (Edge folder)

Fades the lattice out where its box ends, on the faces the mesh leaves through (Open Faces), so no step shows. Falloff Inside is how far inside the box it reaches full strength. Fade Into decides who takes the fade past the box: Group Only (the default) never moves a point outside Group, Surrounding Mesh lets the fade run on into the neighbouring mesh by Falloff Outside, for the smoothest join. Border Smoothing adds a delta mush over the fade.

Where to put it

After the bone deform (recommended for faces and anything posed)

The pose stays clean: the joints never touch the lattice's move. Keep Pose works. Follow Controls placed after it rides the squash. The lattice follows its Parent Control in World space by itself. * Costs a little more per update than before it (the mesh is taken into the control's frame and back).

Before the bone deform

The lattice shapes the mesh at rest, and the skin then carries it: cheap and simple for a shape that should stay put on the bind pose. Once the face is posed, the joints turn and stretch the lattice's move: a raised spline brow pinches and stretches. The panel says so and Move Below Bone Deform fixes it in one click. * Keep Pose does nothing here.

Why it matters: a bone deform moves every point by its joints. A move added before it is turned and scaled along with the point; a move added after it is not.

Inputs and outputs

Inputs

Character Stream

The packed character stream; the lattice deforms its Target Shape.

Bounding Object

Optional. Geometry whose bounds size the lattice. Not used when Cage From is Spline.

Skeleton

Optional. A cage skeleton to use instead of the generated one.

Animation

Optional.

Outputs

Character Stream

The stream with the lattice built into the rig.

Recipes

Version notes

  • Lattice 1.8: several lattices from one node, or one per connected piece or attribute value
  • Lattice 1.7: Draw Cage switch, Keep Pose starts at 1
  • Lattice 1.6: the Lattice tool draws the cage as lines, both sides with Mirror, with Viz
  • Lattice 1.5 / 1.6: World with no bone deform above acts as Automatic, so moving the Parent Control no longer breaks the lattice
  • Lattice 1.6: Mirror names the lattices L_<name> / R_<name>, so Rig Defaults' mirror pairs their controls
  • Level 2 families: the empty settings helpers of their compiled builders no longer cook (89 builders in 54 assets)
  • Compiled-only rollout, level 2 (batch C): 28 assets run their compiled graphs
  • Lattice 1.6: Cage From is Second Input, Chain or Group, with the cage settings in one block
  • Lattice 1.5 / 1.6: Guess from Group works in the falloff and the box fit; a missing Target Shape warns; the lattice recipes move to 1.6
  • Lattice 1.6: Mirror Center, and two Mirror recipes (eyes, the Noodle's head)
  • Lattice 1.6: Mirror, a lattice on each side of the mirror plane from one node
  • Lattice 1.5: point controls default to pale cyan, apart from the yellow row controls