Skip to main content

Module simulation_export

Module simulation_export 

Source
Expand description

A motion study as a video file: GIF (the image crate’s encoder, every frame its own palette, looping) or MP4 (H.264 through the pure-Rust rusty_h264 encoder, muxed by mp4e), at a chosen size and fps.

The study is baked first if need be, then every baked frame is shown the way playback shows it (poses, clips, camera) and drawn at the export size through the viewport’s own render core under the user’s display settings (crate::viewport::Viewport::render_rgb); the playhead goes back where it stood. Native only: the web app plays studies but writes no video.

Structs§

ExportReport
What an export came to.
ExportSpec
What to export.

Functions§

export
Export the study: bake it, draw every frame, encode, write path if given.