Hello, I have this simple cube texture code.
var texture0 = new THREE.TextureLoader().setCrossOrigin('anonymous').load("{{url + id + "/images/" + image_ids[0]}}")
var texture1 = new THREE.TextureLoader().setCrossOrigin('anonymous').load("{{url + id + "/images/" + image_ids[1]}}")
var texture2 = new THREE.TextureLoader().setCrossOrigin('anonymous').load("{{url + id + "/images/" + image_ids[2]}}")
var texture3 = new THREE.TextureLoader().setCrossOrigin('anonymous').load("{{url + id + "/images/" + image_ids[3]}}")
var texture4 = new THREE.TextureLoader().setCrossOrigin('anonymous').load("{{url + id + "/images/" + image_ids[4]}}")
var texture5 = new THREE.TextureLoader().setCrossOrigin('anonymous').load("{{url + id + "/images/" + image_ids[5]}}")
var cubeMaterial = [
new THREE.MeshBasicMaterial({map: texture0}),
new THREE.MeshBasicMaterial({map: texture1}),
new THREE.MeshBasicMaterial({map: texture2}),
new THREE.MeshBasicMaterial({map: texture3}),
new THREE.MeshBasicMaterial({map: texture4}),
new THREE.MeshBasicMaterial({map: texture5}),
];
While it works seamlessly on most occasions, every now and then one texture (always texture0 for some reason) loads as a random image from my browser, URLs are correct, I checked.
Thanks for kind of any help