pub fn render_to_files(
object_dir: &Path,
camera_transform: &Transform,
object_rotation: &ObjectRotation,
config: &RenderConfig,
rgba_path: &Path,
depth_path: &Path,
) -> Result<(), RenderError>Expand description
Render directly to files (for subprocess mode).
This function is designed for subprocess rendering where the process will exit after rendering. It saves RGBA and depth data directly to the specified files before the process terminates.
§Arguments
object_dir- Path to YCB object directorycamera_transform- Camera position and orientationobject_rotation- Rotation to apply to the objectconfig- Render configurationrgba_path- Output path for RGBA PNGdepth_path- Output path for depth data (raw f32 bytes)
§Note
This function may call std::process::exit(0) and not return.