Example o3d.visualization.gui.Application with dynamic point cloud #5953
Unanswered
alanoursland
asked this question in
Q&A
Replies: 1 comment
-
I ended up with this. If you have any other suggestions for improvements, I'd like to hear them. I'm not crazy about removing and adding the geometry to update.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write a simple visualization gui Application with a dynamic point cloud using a custom material. I actually need two clouds with different materials. I couldn't figure out how to get different materials using o3d.visualization.Visualizer so I fell back to o3d.visualization.gui.Application and SceneWidget.
I can't figure out how to make the display update after I've changed the point cloud. My code is below with several attempts commented out.
The closest I've gotten is "widget.scene.scene.update_geometry("Geometry", geom_pcd, o3d.visualization.rendering.Scene.UPDATE_POINTS_FLAG)" but that requires a tensor point cloud instead of a o3d.geometry.PointCloud.
Also, am I right that I need to write my own run loop if I want custom behavior? Visualizer has callbacks, but I don't think the application does.
This is the code for the example:
Beta Was this translation helpful? Give feedback.
All reactions