Hi all, I’m really new to Babylon (and 3D in general) and am attempting to import an animated character model from Mixamo into my scene. Running into a whole bunch of issues along the way and would appreciate any help, here’s my flow:
- Miaxmo only offers .fbx so I’m importing into Blender and exporting as .glb (also tried .obj)
- attempting to load via
BABYLON.SceneLoader.ImportMeshAsync('', '/assets/player/', 'walk.glb', this.scene)
results in this issue:
Uncaught (in promise) SyntaxError: Unexpected token g in JSON at position 0
at JSON.parse (<anonymous>)
at Object.importMesh (babylon.js:16)
at babylon.js:16
at f (babylon.js:16)
at e (babylon.js:16)
at XMLHttpRequest.g (babylon.js:16)
- so I’m using the sandbox to convert from the .glb file into .babylon and attempting to load via
BABYLON.SceneLoader.ImportMeshAsync('', '/assets/player/', 'walk.babylon', this.scene)
results in the static model loading into my world, but the animations aren’t there even though they’re clearly present in the .babylon file in the Sandbox, appearing under “Animation groups” in the Scene Explorer
- I came across this thread assetsManager & loadedAnimationGroups empty which suggests using
LoadAssetContainer
for animation info, which I’m now doing:BABYLON.SceneLoader.LoadAssetContainerAsync('/assets/player/', 'walk.babylon', this.scene)
but that throws the following weird error and it doesn’t load into my world at all:
GET http://localhost:8080/assets/player/https://assets.babylonjs.com/environments/environmentSpecular.env 404 (Not Found)
I’m pretty lost. What am I doing wrong?