Hey Delta,
There is no texture associated with the mesh. Only several coloured materials applied to different faces. Tried loading a GLB, same issue. The console shows no errors either.
It is funny because it used to work. I removed the GLTF import for some time to implement collisions with basic shapes and now that I am reincluding the GLTF import, it misbehaves…
For clarity, I am using this version of the npm package: "@babylonjs/core": "^4.0.0-alpha.18"
hopefully this will be resolved in the release version.
The npm versions will be all good tomorrow when we release 4.0. Latest is required by npm and this package didn’t exist in v3.3 so latest just pointed to the first version we published.
okay run : npm i && npm start
this is gonna open chrome canary on port 3000 that uses a self-signed certificate. if this messes up on your machine, just open localhost:8080 (3000 is just a browser-sync proxy)
the file where I load the mesh is in src/Player/Player.js
sorry for that.
I added sourcemaps to a github-pages repo so that you can see my code using the
“Sources” tab of Chrome dev tools :https://wwwonka.github.io/blueMaterial/
This might not be the best of examples. Since I switched to rc3 the “kid.gltf” mesh is not animated nor positioned & scaled anymore which makes it harder to see in the viewport…
As for the original issue, it looks like the blue hue is coming from the fog which lerps between the final color and fog color. The spot light that’s in the scene is not strong enough to light the PBR material for model, so it’s all black if I turn off the fog.