isl-org / isl-org/Open3D

How to save/restore camera view on open3d::visualization::gui::SceneWidget

Open
#3,627 8 comments 0 reactions 1 assignee Claimed by @errissa View on GitHub
viewcontrol visualization
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

I'm attempting to reproduce the behavior of `Visualizer`'s copy/paste for camera views, but I can't seem to find the right combination of camera parameters to save and restore to accomplish it for `SceneWidget`.

I'm able to capture current camera information using the `SceneWidget::SetOnCameraChanged` callback, but I can't seem to find the right combination of details and where they need to be specified to later restore the SceneWidget's view based on those values (through calls to `SetupCamera`, `LookAt`, `SetCenterOfRotation`, or something else).

Any help would be most appreciated.

version: 0.13.0
api: c++

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.