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 = '') None#

Takes width, height and optionally a resource_path. If unspecified, resource_path will use the resource path from the installed Open3D library.

render_to_depth_image(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, z_in_view_space: bool = False) open3d.cpu.pybind.geometry.Image#

Renders scene depth buffer to a float image, blocking until the image is returned. Pixels range from 0 (near plane) to 1 (far plane). If z_in_view_space is set to True then pixels are pre-transformed into view space (i.e., distance from camera).

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

setup_camera(*args, **kwargs)#

Overloaded function.

  1. setup_camera(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, vertical_field_of_view: float, center: numpy.ndarray[numpy.float32[3, 1]], eye: numpy.ndarray[numpy.float32[3, 1]], up: numpy.ndarray[numpy.float32[3, 1]], near_clip: float = -1.0, far_clip: float = -1.0) -> None

Sets camera view using bounding box of current geometry if the near_clip and far_clip parameters are not set

  1. setup_camera(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, intrinsics: open3d.cpu.pybind.camera.PinholeCameraIntrinsic, extrinsic_matrix: numpy.ndarray[numpy.float64[4, 4]]) -> None

Sets the camera view using bounding box of current geometry

  1. setup_camera(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, intrinsic_matrix: numpy.ndarray[numpy.float64[3, 3]], extrinsic_matrix: numpy.ndarray[numpy.float64[4, 4]], intrinsic_width_px: int, intrinsic_height_px: int) -> None

Sets the camera view using bounding box of current geometry

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.