So 2 days ago I was losing my mind on how to import a mesh that has multiple Mixamo animations from Blender to Babylon. After 5 hours of pulling my hair, I finally got it.
I exported the mesh from Blender as GLB, tested it on the Babylon sandbox and it worked perfectly fine (it still does!).
But now I’ve encountered a new problem that has been demotivating and heavy on me and I have no clue how to fix it.
Basically these are the steps I need to do:
Import the mesh via SceneLoader.ImportMesh
Save the imported mesh to an object Player via constructor
Use update(pos) function in the object to update its position
Simple yet something is not working correctly at step 3.
If you take a look at the playground examples I’ve created you’ll see that it compiles fine and if you open the console you’ll also see that Players mesh.position is actually getting updated but the mesh that is on the screen does not move and it always remains on the same place. Even if Players mesh.position shows values changing.
Will switching to .babylon instead of .glb file make things better/easier? It probably will hence suffix “.babylon”.
But is there anyway to export glb to .babylon apart from Blender and Bablyon Sandbox? Trying to export via Blender throws me a long stack of errors and using the sandbox to export gives me a model without animations, just a T-pose of my model with textures.