(SOLVED) Texture not loading

I’m trying to get the cube background to work but I can’t, is there anything I could of missed?
K so the problem was that textures can’t be loaded locally, this can be solved here: https://threejs.org/docs/#manual/introduction/How-to-run-things-locally

works, red background
scene.background = new THREE.Color( 0xff0000 );

doesn’t work, black background
scene.background = new THREE.CubeTextureLoader().load( [
‘…/images/skybox/front.png’,
‘…/images/skybox/right.png’,
‘…/images/skybox/back.png’,
‘…/images/skybox/left.png’,
‘…/images/skybox/up.png’,
‘…/images/skybox/down.png’
] );

also does file navigation start at the the html that is running the js or the js location?

Any warnings or error messages in the browser console?

1 Like

HTML. You should first ensure, that your textures are actually loaded. Use the Network Tab of your Browsers Dev tools. Manual for Chrome:

1 Like

No, noting but the default log

K so the problem was that textures can’t be loaded locally, this can be solved here: https://threejs.org/docs/#manual/introduction/How-to-run-things-locally