Skip to main content

Module render

Module render 

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

Things for render to video

Modulesยง

file_writer ๐Ÿ”’

Structsยง

RanimRenderApp
MARK: RanimRenderApp Application wrapper that drives frame-by-frame scene rendering, video output, and capture screenshots.
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_output
Render a scene output
render_scene_output_with_progress
Render a scene output with optional progress callback.