isl-org / isl-org/Open3D

Open3D Visualizer not updating the window size correctly or at the right moment in the code execution.

Open
#6,693 0 comments 0 reactions 0 assignees View on GitHub
question
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](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### My Question

![Open3D warning on terminal](https://github.com/isl-org/Open3D/assets/163227215/df938935-43a4-4cb6-85b7-e3d9f17aa89c)
I am facing this issue while my Open3D version is 0.18.0. Open3D visualization window's height and width don't match the saved camera parameters from the viewpoint.json file, even after setting the window size directly. Here is my code snippet:
# initialize visualizer
self._vis = open3d.visualization.Visualizer()
self._vis.create_window(width=1920, height=1080, window_name="Open3D Viewer")
self._vis.set_full_screen(True)
self._vis.get_render_option().background_color = np.asarray([0, 0, 0])

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.