Link Search Menu Expand Document

GPU point trail

Orange and magenta sphere-splat trail above the XYZ, Trail and SphereSplat process chain.

A moving point leaves a three-dimensional trail, with a bright head and a differently colored, tapering tail that shows where the point has just been.

A mathematical expression supplies XYZ positions. Trail appends them to a GPU buffer, and a sphere-splat renderer gives each sample a visible size and color. The history belongs to the geometry, so the camera can view the trail from another angle.

Try it

Start playback and lower maxParticles: the trail gets shorter. Make startSize larger than endSize so the head stands out from the tail, then toggle trailFade to switch between a fading and a uniform trail. Use Vec3f to change the camera position independently of the path.

The saved motion is procedural: no sensor or external file is required. As an adaptation, feed a recorded or live three-component position stream into Trail’s point3D input; you will need to configure that source yourself. The native rendering chain requires compute-shader support.

Try this on web

Download this example