How do I use the view control?
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).
### My Question
Hi,
I am currently trying to position the camera of the Visualizer at a specific point, but every value I set up will be ignored and the visualizer always displays the same view of my mesh.
This is my code so far:
```python
vis = o3d.visualization.Visualizer()
vis.create_window()
vis.add_geometry(pcb_mesh)
option: o3d.visualization.RenderOption = vis.get_render_option()
option.show_coordinate_frame = True
option.mesh_show_back_face = True
option.light_on = False
view_control: o3d.visualization.ViewControl = vis.get_view_control()
view_control.set_front([ -0.16369650945088704, 0.0082033463888920785, -0.98647663829490639 ])
view_control.set_lookat([ -0.5126953125, 0.0146484375, 1.3552540928219587 ])
view_control.set_up([ -0.14927274718300235, 0.98824562139584249, 0.032988463746963764 ])
view_control.set_zoom(0.7)
vis.update_geometry(pcb_mesh)
vis.poll_events()
vis.update_renderer()
image = vis.capture_screen_float_buffer()
vis.destroy_window()
```
I also tried
```
cam = view_control.convert_to_pinhole_camera_parameters()
cam.extrinsic = ...
cam = view_control.convert_from_pinhole_camera_parameters(cam)
```
But this also has no effect.
I am using Open3D v0.17.0, but I also tried downgrading to 0.16 and 0.15.
Am I missing something here?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.