Skip to content

Is there a way to get the zoom property from another Visualizer in open3d #3889

Answered by errissa
MeyerBuaharon asked this question in Q&A
Discussion options

You must be logged in to vote

With the new visualizer we don't have a concept of a "zoom" level like the old visualizer. However, you can retrieve the current FOV from the camera class then save it off and use it later to setup a new camera:

cam1 = o3dscene.camera
fov = cam1.get_field_of_view() # Save this somewhere

# In other visualizer - get the camera and set its FOV
cam2 = o3dscene.camera
cam2.set_projection(fov, aspect_ratio, far_plane, Camera.Projection.Perspective)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by errissa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants