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_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.
setup_camera(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, arg0: float, arg1: numpy.ndarray[numpy.float32[3, 1]], arg2: numpy.ndarray[numpy.float32[3, 1]], arg3: numpy.ndarray[numpy.float32[3, 1]]) -> None
setup_camera(vertical_field_of_view, center, eye, up): sets camera view using bounding box of current geometry
setup_camera(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, arg0: open3d.cpu.pybind.camera.PinholeCameraIntrinsic, arg1: numpy.ndarray[numpy.float64[4, 4]]) -> None
setup_camera(intrinsics, extrinsic_matrix): sets the camera view using bounding box of current geometry
setup_camera(self: open3d.cpu.pybind.visualization.rendering.OffscreenRenderer, arg0: numpy.ndarray[numpy.float64[3, 3]], arg1: numpy.ndarray[numpy.float64[4, 4]], arg2: int, arg3: int) -> None
setup_camera(intrinsic_matrix, extrinsic_matrix, intrinsic_width_px, intrinsic_height_px): 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.
-