open3d.visualization.rendering.Renderer

class open3d.visualization.rendering.Renderer

Renderer class that manages 3D resources. Get from gui.Window.

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

add_texture(self: open3d.cpu.pybind.visualization.rendering.Renderer, image: open3d.cpu.pybind.geometry.Image, is_sRGB: bool = False) → open3d::visualization::rendering::REHandle<(open3d::visualization::rendering::EntityType)10>

Adds a texture: add_texture(geometry.Image, bool). The first parameter is the image, the second parameter is optional and is True if the image is in the sRGB colorspace and False otherwise

remove_texture(self: open3d.cpu.pybind.visualization.rendering.Renderer, arg0: open3d::visualization::rendering::REHandle<(open3d::visualization::rendering::EntityType)10>) → None

Deletes the texture. This does not remove the texture from any existing materials or GUI widgets, and must be done prior to this call.

set_clear_color(self: open3d.cpu.pybind.visualization.rendering.Renderer, arg0: numpy.ndarray[numpy.float32[4, 1]]) → None

Sets the background color for the renderer, [r, g, b, a]. Applies to everything being rendered, so it essentially acts as the background color of the window

update_texture(self: open3d.cpu.pybind.visualization.rendering.Renderer, texture: open3d::visualization::rendering::REHandle<(open3d::visualization::rendering::EntityType)10>, image: open3d.cpu.pybind.geometry.Image, is_sRGB: bool = False) → bool

Updates the contents of the texture to be the new image, or returns False and does nothing if the image is a different size. It is more efficient to call update_texture() rather than removing and adding a new texture, especially when changes happen frequently, such as when implementing video. add_texture(geometry.Image, bool). The first parameter is the image, the second parameter is optional and is True if the image is in the sRGB colorspace and False otherwise