isl-org / isl-org/Open3D

get_view_control() couldnt change the camera angle

Open
#6,045 4 comments 0 reactions 0 assignees View on GitHub
bug
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).

### Describe the issue

I have been trying to change the camera view and zoom in it while generating the video from sequence of .ply files.

I tried running the code multiple times and it doesn't give any error but it seems to not give the desired output.

### Steps to reproduce the bug

```python
#just save and load few ply in 4 different folders and load them as a list
import open3d as o3d

def visual(path):
vis = o3d.visualization.Visualizer()
vis.create_window()
front_list = ["front_1.ply","front_2.ply","front_3.ply","front_4.ply"]
left_list = ["left_1.ply","left_2.ply","left_3.ply","left_4.ply"]
back_list = ["back_1.ply","back_2.ply","back_3.ply","back_4.ply"]
right_list = ["right_1.ply","right_2.ply","right_3.ply","right_4.ply"]
for i in range(4):
combined_pc = o3d.io.read_point_cloud(front_list[i])+
o3d.io.read_point_cloud(left_list[i])+
o3d.io.read_point_cloud(right_list[i])+
o3d.io.read_point_cloud(back_list[i])

vis.add_geometry(combined_pc)
ctr = vis.get_view_control()
ctr.set_up([0,-1,0])
ctr.set_front([0, 0, -1])
ctr.set_lookat([1, 0, 0])
ctr.set_zoom(0.5)
vis.poll_events()
vis.update_renderer()
vis.remove_geometry()
vis.destroy_window()
```

### Error message

_No response_

### Expected behavior

_No response_

### Open3D, Python and System information

```markdown
- Operating system: Windows 10 64-bit
- Python version: Python 3.9
- Open3D version: output from python: 0.17.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
- Compiler version (if built from source): gcc 7.5
```

### Additional information

_No response_

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.