-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viewer and camera height and width issue #1164
Comments
Could you check these lines? You may need to replace
as
|
@errissa we will take care of this after the 0.11 release... |
@germanros1987 So there is still no solution to this problem? Adding -0.5 as suggested above did not work for me. I am trying to run the example script customized_visualization.py Edit: After lots of gruesome pain I was able to get it to work. The key is to look at the code in ViewControl.cpp located at Open3D/cpp/visualization/visualizer/ViewControl.cpp. All conditions need to be fulfilled in order to make it work. |
@germanros1987 so curious... Stuck with this issue for a week |
@tfy14esa thank you for your effort! Adding -0.5 as suggested above did not solve the problem for me either. Turns out the window size also has to match with the intrinsic parameters and resolution. As follows:
|
|
I got the final solution: |
Should have been supported in #2564. |
in current version, you should set the parameter allow_arbitrary=True, i.e., |
This works! Saves my day :) |
Thank you, this is the best solution! |
Describe the bug
[ViewControl] ConvertFromPinholeCameraParameters() failed because window height and width do not match.
Setting the view to a specified camera fails even when the window height and width of the viewer and the camera match.
To Reproduce
https://gist.github.com/arunmallya/41374d7eed6a52923b6ca2eb864b420a
Data file: https://uofi.box.com/s/spqlqx6c6tggpedv6ehs6muz0deyogy0
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: