Hi, i’ve been experimenting on react framework with babylonjs. But I get an unexpected magic error when i tried to use to locate the glb file within the project folder.
I’ve tested the glb in the babylonjs sandbox and it is readable inside. I dont think it’s a problem of the file.
Does anyone know how to fix the code so that the glb file can show up?
Here is my code in codesandbox: https://codesandbox.io/s/babylonjs-react-vk9vdx?file=/src/App.js
The screenshot of the jean in the BabylonJS sandbox:
I’m no expert with this website or React. But I don’t see any reference to the .glb in the page. Has it been added as a resource? Can you find another example on this website that load an asset file to compare?
I’ve figured that out, i have a typo with sceneFilename
and it works after I fix it
3 Likes