concepts.simulator.blender.simple_render.render_scene_simple#
- render_scene_simple(spec, scene_blend, output_image='render.png', output_blendfile=None, camera_pos=None, camera_angle=None, use_eevee=False, use_gpu=False, render_timeout=None)[source]#
Render a scene with the given specification.
- Parameters:
spec (List[Dict[str, Any]]) – the specification of the scene. Each element is a dictionary with the following keys: - filename: the path to the .obj file. - scale: the scale of the object. - transform: the 4x4 transformation matrix of the object.
scene_blend (str) – the path to the scene blend file.
camera_pos (List[float] | None) – the position of the camera. If None, the default camera position will be used. Format: (x, y, z).
camera_angle (List[float] | None) – the angle of the camera. If None, the default camera angle will be used. Format: rotation_euler (x, y, z).
output_image (str) – the path to the output image.
output_blendfile (str | None) – the path to the output blend file.
use_eevee (bool) – whether to use eevee as the rendering engine. It is faster but less accurate.
use_gpu (bool) – whether to use GPU as the rendering device. This is only valid when use_eevee is False.
render_timeout (float | None) – the timeout for rendering (in seconds). This is only valid when use_eevee is False.