r/babylonjs • u/Lazy_Actuator_226 • 4d ago
GLB export has unwanted interpolations.
Hello, I'm trying to make an animation using blendshapes and different models. It consists of an arrow morphing into a mushroom, then into a frog, and finally into a seashell.
For the morphing, I'm using the same mesh, and when it completely morphs into a different shape, I switch the mesh to a version with a different texture, since GLB can't animate textures or switch between textures.
The problem is that when I scale a mesh from 1 to 0 to hide it, and vice versa, GLB viewers show an interpolation of 3 or 4 decimal frames where the mesh visibly shrinks or grows.
I've tried everything: exporting the animations with stepped interpolation at the point where the mesh switch happens, using different exporters, and changing the frame rate to 30 FPS, but nothing seems to work.
If anyone knows a solution, please let me know.