Skip to content

Multiple viewports per window #999

@sammo2828

Description

@sammo2828

A common use case is comparing multiple point clouds side-by-side. In PCL, this could be done by creating multiple viewports in the same window. However, Open3D Visualizer only provides a single window with a single viewport and a single ViewControl.

Feature request to extend the API to be able to attach multiple viewports to a window.

With the current API, a workaround is to create multiple windows with multiple Visualizer instances:

vis = o3d.Visualizer()
vis.create_window(window_name='TopLeft', width=960, height=540, left=0, top=0)
vis.add_geometry(pcd)

vis2 = o3d.Visualizer()
vis2.create_window(window_name='TopRight', width=960, height=540, left=960, top=0)
vis2.add_geometry(pcd)

while True:
    vis.update_geometry()
    if not vis.poll_events():
        break
    vis.update_renderer()

    vis2.update_geometry()
    if not vis2.poll_events():
        break
    vis2.update_renderer()

vis.destroy_window()
vis2.destroy_window()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions