Replies: 3 comments
|
@lambertwx I was able to reproduce this error and will look into it. |
|
I'm searching too for a solution to switch Would be cool to find documentation or sample python code that actually shows how this can be achieved! |
|
I had decent luck in v0.19 just setting FOV to a low value (I think 5 is the minimum) in 'setup_camera()'. It isn't perfect ortho, but it's visually good enough (YMMV). Something along the lines of: |
Uh oh!
There was an error while loading. Please reload this page.
I am trying to configure the Camera (in the Open3DScene inside a SceneWidget) to use orthographic projection. According to the docs this should be possible using Camera.set_projection, but I get an error when I call it.
Here's my code:
Running open3d 0.16.1 on MacOS Big Sur 11.7.4, I get the runtime error
in void filament::FCamera::setProjection(Camera::Projection, double, double, double, double, double, double):100 reason: Camera preconditions not met. Using default projection.and the projection remains perspective.I tried removing the call to
widget.setup_camera()but I still get the same result.There is a ticket opened last year with this question #4862, but no activity, so I'm asking here.
All reactions