I recently used Three.js
to create a stunning 3D globe
for my website. To display textures on this globe, I implemented the following code snippet:
var loader = new THREE.TextureLoader();
loader.load(imageString, function (texture) {
var sphere = new THREE.SphereGeometry( RADIUS, SEGMENTS, RINGS );
var material = new THREE.MeshBasicMaterial( {
map: texture,
overdraw: 0.5
});
globeMesh = new THREE.Mesh(sphere, material);
globe.add(globeMesh);
});
In this code, "imageString"
refers to the path of an image stored on the server. While this functionality works smoothly on most browsers, there seems to be an issue with IE11. When debugging, I noticed that the texture
object retrieved in the load()
function lacks the image
property in IE11, unlike other browsers where it retains the string value from "imageString"
.
Does anyone have insights into why this might be happening? Could this possibly be a known bug specific to IE11? I even tried including a Promise polyfill just to troubleshoot, but unfortunately, that didn't resolve the issue.