Value of set_zoom
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
I use the following code the view at specific point. I did not use the `convertpinholeparameters` because it is too buggy with arbitrary camera parameters.
```
import open3d as o3d
import numpy as np
meta_data = [
0.98760735988616943,
-0.055881854146718979,
0.14665962755680084,
-0.14624243974685669,
0.032813724130392075,
0.98733228445053101,
0.15523615479469299,
-0.10324323922395706,
-0.15347671508789062,
-0.14849992096424103,
0.97693026065826416,
1.0253617763519287,
0,
0,
0,
0.99999994039535522
]
meta_data = np.array(meta_data).reshape(4, 4)
translate = [meta_data[0][3], meta_data[1][3], meta_data[2][3]]
forward = [meta_data[0][2], meta_data[1][2], meta_data[2][2]]
up = [meta_data[0][1], meta_data[1][1], meta_data[2][1]]
right = [meta_data[0][0], meta_data[1][0], meta_data[2][0]]
pcd = o3d.io.read_point_cloud("assets/point_cloud.pcd")
vis = o3d.visualization.Visualizer()
vis.create_window(width=1920, height=1440 ,visible=True)
vis.add_geometry(pcd)
view_ctl = vis.get_view_control()
view_ctl.set_up(up)
view_ctl.set_front(forward)
view_ctl.set_lookat(translate)
vis.poll_events()
vis.update_renderer()
vis.run()
vis.destroy_window()
```
Unfortunately, the loaded pointcloud is not in a proper view. what is wrong with the view?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.