isl-org / isl-org/Open3D

FoV bug for open3d.visualization.ViewControl.change_field_of_view()

Open
#6,554 1 comment 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 `main` branch).

### Describe the issue

As the field of view (FOV) increases, the visible proportion of point clouds should decrease. Conversely, as the FOV decreases, the visible proportion of point clouds should increase. However, when using the “open3d.visualization.ViewControl.change_field_of_view()” function, the opposite effect is observed. Alternatively, a mapping should be provided to relate the changed FOV values to the conventional FOV values.

### Steps to reproduce the bug

```python
import open3d as o3d

pcd = o3d.io.read_point_cloud("./test.ply")
# 创建可视化窗口并可视化点云
vis = o3d.visualization.Visualizer()
vis.create_window(width=1024, height=1024)
vis.add_geometry(pcd)
ctr = vis.get_view_control()
ctr.set_zoom(1)
ctr.set_front(camera_direction)
ctr.set_lookat(user_pos)
ctr.set_up(camera_up)
ctr.change_field_of_view(-5)
print(ctr.get_field_of_view()) # output Fov = 35, the visible proportion of point clouds decreases
# 更新视图
vis.poll_events()
vis.update_renderer()
vis.run()
```

### Error message

_No response_

### Expected behavior

a mapping should be provided to relate the changed FOV values to the conventional FOV values.

### Open3D, Python and System information

```markdown
- Operating system: Windows 10 64-bit
- Python version: Python 3.8
- Open3D version: 0.16.0
- System architecture: arm64
- Is this a remote workstation: no
- How did you install Open3D: pip
- Compiler version (if built from source):
```

### 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.