AutoMovie API
    Preparing search index...

    Function applyMotionCaptureGhost

    • Turn a motion case's drawn figure into a ghost: every mesh under the root draws with a translucent flat colour, so an uninterrupted source motion, a seed fan or an earlier pose overlays the actual figure without hiding it.

      A ghost is content a case draws of itself, not a capability of the inspection instrument, so it lives with the motion cases that draw it. Each mesh's material is replaced by one shared transparent MeshBasicMaterial, which the returned function disposes; the previous materials stay with their owner, which keeps disposing them. Depth writing is off and the meshes draw after opaque surfaces, so a ghost never occludes the solid figure.

      It throws for an opacity outside (0, 1].

      Parameters

      • root: Object3D

        The figure's root object.

      • color: number

        sRGB hex colour.

      • opacity: number

        Opacity in (0, 1].

      Returns () => void

      Disposes the ghost material.