isl-org / Open3D

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

Idle playback in GUI #6811

Open richardrl opened 1 month ago

richardrl commented 1 month ago

Checklist

My Question

I want to be able to press spacebar and run a playback function that idly animates the main 3D scene.

I'm not sure how to do this; seems related to the idea of an animation playback: https://github.com/isl-org/Open3D/issues/2869

richardrl commented 1 month ago

Actually, we can do this if we can control when the renderer updates the scene.

How do I force the renderer in the GUI to re-render all meshes at a new pose, set by:

self._scene.scene.set_geometry_transform(id, transformation.transformation) If I use: self._scene.force_redraw()

nothing happens