Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Documentation for GUI

Open Zumbalamambo opened this issue 4 years ago • 6 comments

Please add the documentation for GUI. I have tried to follow along with vis_gui.py but it's hard to follow it. I would like to find a way to use set_look_at, set_front, set_zoom options but I'm not able to find a way to do that :(

Zumbalamambo avatar Oct 25 '20 23:10 Zumbalamambo

Yes.

It is very good to provide some documentation and tutorial for both rendering and gui. For me, I'm especially looking forward to the tutorials for rendering and gui in C++.

Now there are lots of new things in rendering, only studying the API and source code, like the one open3d\visualization\visualizer\GuiVisualizer.cpp, is a little bit difficult.

Is it possible to realize PBR rendering without imgui?

Thank you!

1939938853 avatar Oct 30 '20 07:10 1939938853

We are working on it.

germanros1987 avatar Nov 03 '20 01:11 germanros1987

@germanros1987 Do you know how to get the ViewControl in this new GUI to set the following? set_look_at, set_front, set_zoom

With non-gui visualizer, I can get it by vis.get_view_control(). I am looking for a method in the new GUI. Thanks!

hduonggithub avatar Nov 10 '20 16:11 hduonggithub

Documentation for the new filament based visualization: open3d.visualization.gui and open3d.visualization.rendering is available. We are still working on adding more functionality.

This may be useful: open3d.visualization.rendering.Camera.look_at()

ssheorey avatar Dec 31 '20 23:12 ssheorey

@ssheorey

I tried to set 3 values for look_at(), but I got this incompatible error? I am using open3d 0.13.0. Any idea? Thanks

rendering.Camera.look_at((-2.25072473, -0.40637109, 1.09599469), (0, 0, 1), (0, 1, 0)) Traceback (most recent call last): File "", line 1, in TypeError: look_at(): incompatible function arguments. The following argument types are supported: 1. (self: open3d.cpu.pybind.visualization.rendering.Camera, arg0: numpy.ndarray[float32[3, 1]], arg1: numpy.ndarray[float32[3, 1]], arg2: numpy.ndarray[float32[3, 1]]) -> None

Invoked with: (-2.25072473, -0.40637109, 1.09599469), (0, 0, 1), (0, 1, 0)

hduonggithub avatar Jun 21 '21 17:06 hduonggithub

You need to setup the camera for the specific 3D scene that you have created. See here for examples:

https://github.com/intel-isl/Open3D/blob/2674180540c1fb9437e726c487e69097371e53d9/examples/python/gui/online-processing.py#L420

ssheorey avatar Jun 29 '21 18:06 ssheorey