Pardon the noob question, I’m new to Babylon.js, how do I import a .glb or .gltf file from external sources? As the above screenshot, it’s not showing up in Playground. What did I do wrong, and how do I import .glb/.gltf files? Thanks
Try https://raw.githubusercontent.com/~~~
This will load the file correctly:
Babylon.js Playground - #QXWQ99#1
This uses Babylon.ImportMeshAsync instead of the deprecated SceneLoader. Hope it helps!
You have removed the light from the playground scene
var light = new BABYLON.HemisphericLight("light", new BABYLON.Vector3(0, 1, 0), scene);
light.intensity = 0.7;
Thanks, on second thought, I just left in the light code, as @fuyutami mentioned, and it works
Glad it helped! Welcome to the community ![]()





