Set animation speed (FPS) for Open3D #121
Replies: 4 comments
-
Thanks. :)
I think Open3D doesn't directly support this, so this is something that would have to be done in pytransform3d. As a workaround, I would suggest to modify your animation callback to sleep for the correct amount of time. If you expect that your animation does almost need no time you can just call |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your quick reply! Alternatively I could try the whole thing with matplotlib where I can already set FPS with the interval argument, but I'm not sure how to transform a box in a matplotlib animation (I did manage in Open3D)? Unfortunately, this does not work (rather redraws many basis-frames and doesn't transform the box itself during the animation):
I've successfully animated a Frame by modifying your example, but I'm not sure how to add the box:
(Sorry, I know this doesn't exactly belong here, but maybe you're able to help :-) ) |
Beta Was this translation helpful? Give feedback.
-
Matplotlib is not the best tool for 3d animations. I'd recommend some real 3d visualization software for more complex cases. As you can see here, you need to modify the Matplotlib (artist?) objects in each frame. These will be created here. Unforunately, I don't have a good recommendation as an alternative to Matplotlib or Open3D in Python, but you could take a look at pybullet (which is mainly a physics engine, but can also be used for simple real-time rendering). Take a look at the functions
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, I'll check it out! |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for this awesome package, I'm using it to visualize smartphone IMU data and like it a lot! While I've found how to set the animation speed in matplotlib (interval argument, see here), I haven't found any way to set it for Open3D animate. Have I missed something? Otherwise it would be great if this could be integrated so that my animations frames per seconds are on par with the IMU sensor reading frequency!
Beta Was this translation helpful? Give feedback.
All reactions