bundle.gs3d.temporal

4D Gaussian sequence generation via keyframed rigid motions.

A TemporalGenerator reads a static PLY, applies a per-frame rigid transform derived from a MotionConfig, and writes one output PLY per frame into output_dir.

Supported motions

rigid – no motion (identity); useful as a baseline / loop test oscillate – sinusoidal translation along one axis explode – positions scale outward from the origin over time orbit – rotation about a fixed axis (e.g. a 360° turntable)

The output contract is bundle.gs3d.data.GaussianSequence; the on-disk layout is <output_dir>/<frame_index:04d>.ply.

All transforms operate on positions only. Rotations (quaternions) and scales are copied unchanged — downstream stages (Blender, USD) that need animated orientations can extend MotionConfig with additional fields.

Attributes

log

Classes

MotionConfig

Parameters describing a single 4D motion.

TemporalGenerator

Apply a MotionConfig to a static PLY and emit a frame sequence.

Module Contents

bundle.gs3d.temporal.log
class bundle.gs3d.temporal.MotionConfig(/, **data: Any)[source]

Bases: bundle.core.entity.Entity

Parameters describing a single 4D motion.

motion_type

One of rigid, oscillate, explode, orbit.

amplitude

Scale of the motion (metres for translation, radians for orbit).

frequency

Cycles per second; combined with frame_count and fps to compute the per-frame angle/displacement.

axis

Primary axis letter (x, y, or z).

name: str = 'motion'
motion_type: Literal['rigid', 'oscillate', 'explode', 'orbit'] = 'orbit'
amplitude: float = 1.0
frequency: float = 1.0
axis: Literal['x', 'y', 'z'] = 'y'
property axis_index: int
class bundle.gs3d.temporal.TemporalGenerator(/, **data: Any)[source]

Bases: bundle.core.entity.Entity

Apply a MotionConfig to a static PLY and emit a frame sequence.

ply_path

Source static Gaussian cloud.

motion

Motion configuration.

frame_count

Number of output frames.

fps

Playback rate (written into GaussianSequence metadata).

output_dir

Directory to write per-frame PLY files.

name: str = 'temporal'
ply_path: pathlib.Path
motion: MotionConfig
frame_count: int = 30
fps: float = 30.0
output_dir: pathlib.Path
async generate() → bundle.gs3d.data.GaussianSequence[source]