A fluid splash or a cloth falling onto a rigid object does not need a trained robot policy to be worth inspecting. EvoX Physics’s December 3 main-branch work adds SceneRecorder, an MP4 recording interface for an already-built simulation scene. It separates capturing physical behavior from replaying a policy, opening the same recording path to rigid bodies, particle fluids, cloth and mixed scenes. Recorder implementation

A camera records a small physical scene containing falling cloth and liquid

Concept illustration: observing a physical scene independently of policy training.

Record the scene you control

The existing Renderer reconstructs a render scene from a task and replays policy actions. SceneRecorder instead receives the scene that the caller controls; it needs neither a Task, a Policy nor a scene_spec(). It delegates camera registration, encoding and tiled composition to the existing FrameViewer, rather than introducing another simulation loop. The recorder itself never builds, advances or destroys the scene. Public contract

The sequence is explicit: build the scene, advance it with scene.step(), and call capture() once after every step. The first capture arms the recorder. Construction only validates options, so a recorder can be created before the scene is built, but recording cannot start until that build is complete. Closing finalizes the MP4 files and unregisters the camera; a context manager ensures that cleanup on exit.

Choose the observation, not just the output file

Camera position, look-at target, up vector and field of view determine what a clip can reveal. Resolution and encoded frame rate control the output, while steps_per_frame specifies the number of simulated steps between encoded frames. It changes sampling cadence, not the physics timestep. For parallel scenes, rendered_envs selects environments in tile order; grid composition and optional individual videos support comparisons. Recording options

Consider inspecting cloth contact with a rigid object. First choose a camera that shows the contact region, then record a short run while retaining the scene parameters and seed. A visually plausible clip helps locate a problem, but does not establish solver accuracy. Checking finite state values and comparing the relevant numerical behavior remains necessary before drawing a physical conclusion.

Runnable examples provide both pictures and checks

The accompanying offline examples cover fluid, cloth, deformable and coupled scenes. Their shared command line accepts backend, seed and step count, plus --record and camera options. --smoke reduces the budget and scene size while still exercising the real solver. Each run prints a structured JSON summary containing the selected backend, solvers, counts, finite-state checks and timing; recorded runs add actual frame counts and video paths. Example contracts

The upstream record reports finite-state smoke checks for fourteen scripts on an AMD Instinct MI300X VF, and frame-count checks using ffprobe and PyAV for selected recordings. These are project-reported checks under the stated setup. They support reproducible inspection, not a claim that every scene or accelerator has equivalent coverage. The recorder’s torch-free path also does not make all engine preview interfaces interchangeable.

Start with a short, inspectable recording

Use a source checkout containing the linked implementation and the EvoX Physics installation instructions. Choose the offline example closest to the interaction you want to inspect, begin with its smoke mode, and add a recording destination. After it finishes, check the reported backend and finite-state results, then confirm that the output decodes and contains the reported frames. Increase scene size or duration only after that small run is understood. This complements the policy-training workflow with a direct way to inspect physical scenes before a learned controller enters the experiment.

← Back to UpdatesBack to top ↑