kubo
April 18, 2022, 2:34pm
1
logger.js:33 BJS - [19:59:31]: Unable to find a plugin to load .glb files. Trying to use .babylon default plugin. To load from a specific filetype (eg. gltf) see:
Loading Any File Type | Babylon.js Documentation .
async function CreateModel():Promise{
await SceneLoader.ImportMeshAsync("","./models/","scene.glb");
}
I have installed babylonjs / loaders as well
kubo
April 18, 2022, 2:46pm
2
logger.js:43 BJS - [20:13:46]: Unable to import meshes from https://cdn.jsdelivr.net/gh/BabylonJS/MeshesLibrary@fa494961cbe0b8d44854b3cf8aa8268ba211741a/PBR_Spheres.glb: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse
I am also getting this error as well
SceneLoader.ImportMesh("",“https://cdn.jsdelivr.net/gh/BabylonJS/MeshesLibrary@fa494961cbe0b8d44854b3cf8aa8268ba211741a/ ”,
“PBR_Spheres.glb” , scene, function(newMeshes){
let candy = newMeshes[0];
candy.scaling = new Vector3(30,30,30);
let candyColor = new StandardMaterial(“candyCol”, scene);
candyColor.diffuseColor = new Color3(0, 1, 0);
candy.material = candyColor;
});
labris
April 19, 2022, 8:39am
3
Did you check if your file is really there?
Or, in other words, make sure that model URL opens with no problems.