Hello everyone ! I’m having trouble importing my mesh.
I’ve tried to import different types of 3D models such as .obj, .gltf and .babylon unsuccessfully.
Here is how I imported the packages (both installed with npm):
import * as BABYLON from “@babylonjs/core”
import “@babylonjs/loaders”
And here is how I import the mesh:
this.localPlayer.mesh = BABYLON.SceneLoader.Append("…/truc/3D_models/chipgltf/", “chips.gltf”, this.scene, function() {
console.log(“mesh loaded”)
})
And I’m having this error:
I have been googling my problem for a while but I can’t find a solution.
Do you have any idea what might cause that ?