#Adding .GLTF makes whole scene white

10 messages · Page 1 of 1 (latest)

compact sparrow
#

Hi! I finally got a 3D scene working with a ground plane mesh and spotlight, setting the spotlight at 1000 intensity to be able to see the plane, the whole rest of the world is black. But when I got to import my gltf model, the whole scene goes white and I'm not really sure as to why.

#

actually- scratch that

#

the scene goes white the moment I import { GLTFLoader} from 'three/examples/jsm/addon.js

compact sparrow
#

Ok, I found out why the scene kept going white and that's been fixed

#

but it's still not loading in the model

#

I thought the problem was because I was using

const loader = new GLTFLoader().setPath('public/Apartment/Apt');

to load Apt.gltf but that's just to find the folder with the model, bin, and the textures

#

and I use

    const mesh = gltf.Apt;
    mesh.position.set(0, 1.05, -1)
    scene.add(mesh);
});```
#

yo load Apt.gltf

#

but that's still not loading in the model though

#

I DID IT