isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
10.89k stars 2.24k forks source link

Enable keyboard control in WebRTC #4564

Open mavramov opened 2 years ago

mavramov commented 2 years ago

Checklist

My Question

When trying to run all-widgets.py with enabled WEBRTC. It is not possible to edit values which are editable without WEBRTC. I have this problem with Python 3.9 on Debian 11 with open3d 0.14 Same behavior Windows 10 Python 3.8 open3d 0.13

Is there something wrong I am expecting?

def main():
    # We need to initalize the application, which finds the necessary shaders for
    # rendering and prepares the cross-platform window abstraction.
    _**o3d.visualization.webrtc_server.enable_webrtc()**_
    gui.Application.instance.initialize()

    w = ExampleWindow()

    # Run the event loop. This will not return until the last window is closed.
    gui.Application.instance.run()

if __name__ == "__main__":
    main()
yxlao commented 2 years ago

I think this require keyboard inputs, right? Currently it is not possible as the browser keybord event is not relayed to the GUI server yet. It is in our todo list.

I belive the mouse control shall work. If the mouse control does not work for you, let us know.

abdullamuhammad commented 1 month ago

Any updates on allowing keyboard events occurring in WebRTC yet? Mouse control works fine for me, but any key events are not recognized.