open3d.visualization.rendering.OffscreenRenderer

class open3d.visualization.rendering.OffscreenRenderer

Renderer instance that can be used for rendering to an image

__init__(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, width: int, height: int, resource_path: str = '', headless: bool = False) → None

Takes width, height and optionally a resource_path and headless flag. If unspecified, resource_path will use the resource path from the installed Open3D library. By default a running windowing session is required. To enable headless rendering set headless to True

render_to_image(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer) → open3d.cpu.pybind.geometry.Image

Renders scene to an image, blocking until the image is returned

property scene

Returns the Open3DScene for this renderer. This scene is destroyed when the renderer is destroyed and should not be accessed after that point.