I am VERY new to ThreeJS so please be patient
I purchased this model from Sketchfab, but when I load the GLTF in a viewer or with ThreeJS, the textures on the walls etc are not applied. What am I missing?
I am VERY new to ThreeJS so please be patient
I purchased this model from Sketchfab, but when I load the GLTF in a viewer or with ThreeJS, the textures on the walls etc are not applied. What am I missing?
It looks like there are textures on the wall? Those light reflections… you might just need to add an AmbientLight to your scene?
scene.add( new THREE.AmbientLight(‘white’, 1) ) // second param is strength… try adjusting that
They might have built it that way so that you can adjust it…
Hi Manthrax,
Yes - there are some textures on the wall but even with ambient light, the ceiling is solid grey and everything else is black. When I load the model into a glTF viewer, I get 3 errors. Could this be affecting the model?
Material is incompatible with mesh primitive: Texture binding ‘/materials/0/occlusionTexture’ needs ‘TEXCOORD_0’ attribute.
yeah that could be an issue… hard to say without looking at the model… dm me if you want another set of eyes on it. The way I usually approach this is to load the model up into blender and look at how its constructed…