open3d.visualization.rendering.OffscreenRenderer#
- class open3d.visualization.rendering.OffscreenRenderer#
Renderer instance that can be used for rendering to an image
- __init__(self: open3d.visualization.rendering.OffscreenRenderer, width: SupportsInt, height: SupportsInt, 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.visualization.rendering.OffscreenRenderer, z_in_view_space: bool = False) open3d.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.visualization.rendering.OffscreenRenderer) open3d.geometry.Image #
Renders scene to an image, blocking until the image is returned
- setup_camera(*args, **kwargs)#
Overloaded function.
setup_camera(self: open3d.visualization.rendering.OffscreenRenderer, vertical_field_of_view: typing.SupportsFloat, center: typing.Annotated[numpy.typing.ArrayLike, numpy.float32, “[3, 1]”], eye: typing.Annotated[numpy.typing.ArrayLike, numpy.float32, “[3, 1]”], up: typing.Annotated[numpy.typing.ArrayLike, numpy.float32, “[3, 1]”], near_clip: typing.SupportsFloat = -1.0, far_clip: typing.SupportsFloat = -1.0) -> None
Sets camera view using bounding box of current geometry if the near_clip and far_clip parameters are not set
setup_camera(self: open3d.visualization.rendering.OffscreenRenderer, intrinsics: open3d.camera.PinholeCameraIntrinsic, extrinsic_matrix: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, “[4, 4]”]) -> None
Sets the camera view using bounding box of current geometry
setup_camera(self: open3d.visualization.rendering.OffscreenRenderer, intrinsic_matrix: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, “[3, 3]”], extrinsic_matrix: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, “[4, 4]”], intrinsic_width_px: typing.SupportsInt, intrinsic_height_px: typing.SupportsInt) -> 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.