motionTrackerHud
Draw motion-tracker gizmos that chase content across the child, leaving keyframe trails.
motionTrackerHud(slots: MotionTrackerHudSlots): (params: GpuFragmentParams) => ExprT
Import effects from shaders/std and use effects.overlay.motionTrackerHud.
A whole fragment for a gpu: definition. It only draws; the trackers themselves come from the tracker pursuit simulation, which the same definition must run as its compute: pass (trackerSim.createTrackerPursuitSim from the kit, as the KeyFrames shader does). Without that pass the child passes through untouched. Every slot is a prop ref; the field list on MotionTrackerHudSlots gives units.
Parameters
| Name | Type | Notes |
|---|---|---|
slots | MotionTrackerHudSlots |
Example
gpu: {fragment: motionTrackerHud({trackers: p('trackers'), trail: p('trail'), markerSize: p('markerSize'), lineWidth: p('lineWidth'), markerColor: p('markerColor'), keyframeColor: p('keyframeColor'), pathColor: p('pathColor')})}
Tip. Copy the KeyFrames shader as a whole; the compute pass and this fragment share the
trackersprop and the detection props.
See also
detectionOverlay— Draw computer-vision style detection boxes over whatever the child contains.