Tools / TumbleRig / Constraints & Drivers / Nodes

Apex Slide On Surface

Controls that slide over a surface as they move, instead of leaving it.

Access
Free
Node version
1.2
Package
TumbleRig
Houdini
22.0+

Overview

Slide on Surface keeps controls on a surface: drag a control, or anything constrained to it, and it slides over the surface instead of leaving it. Googly eyes roll round a head, a hand goes round a ball, mouth corners wrap around the teeth, eyelids glide over an eyeball.

The surface can be polygons, NURBS or Bezier patches, or a primitive sphere; patches and spheres are followed exactly, not through a polygon approximation. With Turn to Surface on, a sliding control also turns with the surface so it keeps facing out, and while you drag, a preview marks where each control will land.

Each row of Slide names controls and an Amount. A control's move is taken into its rest frame, slid over the surface at rest (it keeps its rest distance from it), and carried back by its parent. Everything that reads the control (joints, shapes, other controls) reads where it slid to. Wrap Full Length: a move into or out of the surface still travels its full length along it.

Slide By (per row): Closest, as above, or Ray: each control lands where a ray along one of its own axes (Ray Axis) meets the surface, so turning the control aims it over the surface. Keep Rest Gap on: whatever sat on the surface at rest along the ray stays on it -- a joint at the head's centre with a primitive out on its +Z moves the primitive over the head as you turn it. Off: the control itself lands on the surface, like a projector aimed at it. Ray Offset backs it off along the ray. Where the ray meets nothing, the control stays as you moved it.

Surface: the second input (a mesh, NURBS / Bezier patches or a primitive sphere, at rest), a Sphere about Center, or a convex shell around a group of the skin (e.g. the teeth).

Order

Put Slide on Surface before (above) the constraints that drive the same control. A constraint above it on that control bypasses the slide, and the control leaves the surface.

With APEX Mouth Corners: one row for the corner controls (mouth_corner_*, Amount = how much the corners slide) and one for the lips' shares (*_cvs_*_share, Amount = Lip Wrap).

In the Animate state, the Tool Panel shows the surface as a wire, and per row Use Selected sets the controls from the ones selected in the viewport.

Surface Follows: Each Control's Parent keeps the surface in its rest shape, carried by each sliding control's parent. Its Joints gives the surface the skin's capture weights and skins it with those joints, so it turns with the head on the neck and opens with the jaw, and the controls slide on it as it is now. Bone deform the skin before this node. Joints the sliding controls move themselves, and joints in another part of the rig (a spline body's joints, for example), leave the surface at rest there and the node says so. A lattice or squash after this node moves the controls' result with the skin anyway.

Inputs and outputs

Inputs

Character

The packed character stream.

Surface

Optional. The surface for Surface Input, at rest.

Outputs

Character

The stream with the slide in the rig.

Recipes

Version notes

  • Slide on Surface 1.2: the second run's rig is held in the node, so Animate no longer compiles it again on every update (Blu lattice drag 80 -> about 18 ms a frame, same result)
  • Slide on Surface 1.2: a control below an IK joint stays on the skin at rest
  • Slide on Surface 1.2: Roll = Stay Upright, one spot gives one orientation
  • Slide on Surface recipes: 3D controls, not 2D rings; Apex Skeleton 1.6 Joint Controls; 1.1 Surface menu label
  • Slide on Surface 1.2: slides on the character's animated skin, whatever deformed it
  • Slide on Surface 1.1: Surface = Group of the Skin, the exact faces of a Base.shp group
  • Slide on Surface 1.1: a character stream on the Surface input slides on its Base.shp
  • Display tap: switchif_viz reads has_viz_shp without an expression, in every asset
  • Slide on Surface 1.0 / 1.1: the Controls field's pick button takes every selected control (it used the one-control picker, so only the first was written)
  • Apex Slide on Surface 1.1: Slide By Ray per row (th::slideOnSurface::ray::1.0): a control lands where a ray along one of its axes meets the surface, Keep Rest Gap, Ray Offset
  • Apex Slide on Surface 1.1: Relative To per row, Show Surface recorded in the rig
  • Apex Slide on Surface 1.1: Smoothing (Faces / Smooth / Subdivision), curved PN measuring, coarse-surface hint, Show Surface