Skip to main content

Module render

Module render 

Source
Available on crate feature render and non-target_family=wasm only.
Expand description

Things for render to video

Modulesยง

audio ๐Ÿ”’
Audio muxing for rendered outputs.
file_writer ๐Ÿ”’

Structsยง

RanimRenderApp
MARK: RanimRenderApp Application wrapper that drives frame-by-frame scene rendering, video output, and capture screenshots.
RenderJob
A single rendering job: one Output plus whether capture marks should be processed after the main pass.
RenderThreadHandle
Handle to the background render thread, used to submit frame data from the main thread.
RenderWorker
Background rendering worker that owns the wgpu context, renderer, output textures, and video/image writers.

Constantsยง

DEFAULT_LOGIC_FPS ๐Ÿ”’
Default logic grid resolution (Hz), per the time model design.
FFMPEG_RELEASE_URL ๐Ÿ”’

Functionsยง

download_ffmpeg
Download latest release of ffmpeg from https://github.com/eugeneware/ffmpeg-static/releases/latest to <target_dir>/ffmpeg
exe_dir ๐Ÿ”’
Returns the directory of the current executable.
render_output_basename ๐Ÿ”’
Render the output basename template by replacing placeholders.
render_scene
Render a scene with all its outputs
render_scene_job
Build the scene and run a RenderJob.
render_scene_once
Render a single ad-hoc output for a scene.
render_scene_output
Render a scene output
render_scene_output_with_progress
Render one output with optional progress callback.