Open MagJ1 opened 2 years ago
What version of Open3D are you using?
If the texture does not change you should be able to load it and store it somewhere. The assignment self.mat.albedo_img =
is just a smart pointer copy so it is not expensive. Or you could store the material. You don't need to recreate it every loop if it's not changing. Also, with recent versions of Open3D (>=0.14.1) textures are cached so it is already on the GPU when you add the next geometry. It should be pretty fast.
Checklist
master
branch).My Question
Dear Developer-Team,
I am currently working on an animation for an IMU sensor. I have a while-loop with a delay(). After each altering of the geometry, I remove it from the scene and add it again to it. Between that, I have to to call
o3d.visualization.rendering.MaterialRecord()
. But with that call, I lose my texture. I could reload the texture as well, but that slows down the animation quite a lot. Is there a way to keep the texture on the mesh?Thanks in advance.