Texture on imported mesh mapped incorrectly

oh, I removed the file data, but forgot to remove the import. I aplogize for the confusion.

The working URL would be http://localhost:3000/api/Dude

and then, what you would have to is to

  • add some working remote url to the .babylon or .gltf(.gltf is currently not loadable… I am discussing this issue on here)

speaking of working example of babylon model, well, I could have used it from Babylon lol

  • comment out .loadModelFromBase64() (I tried different methods hoping that one would work…)

  • use Babylon.loadModel(rootURL, gltfModel) instead

so after these, it should look like

const rootURL = 'https://playground.babylonjs.com/scenes/Dude/'
// filename should be the 'Dude' from the url query 
const babylonModel = `${fileName}.babylon`
...
await Babylon.loadModel(rootURL, babylonModel)

and hit http://localhost:3000/api/Dude

I just fixed the code on github. git pull may do the job too