I'm currently using Three JS to create a spherical projection of an image using maptoglobe.com. Here's what I aim to achieve:
Here's what I've managed to accomplish so far:
The code snippet I'm working with is as follows: this.scene = new THREE.Scene();
this.geometry = new THREE.SphereGeometry( 0.4, 100, 100 );
var texture = new THREE.TextureLoader().load('assets/Webp.png');
this.material = new THREE.MeshBasicMaterial({map : texture, overdraw: 0.1});
this.mesh = new THREE.Mesh( this.geometry, this.material );
this.scene.add( this.mesh );
The issue I'm facing is the appearance of red lines on the maptoglobe.com image, which are not present in my code-based implementation.
Any assistance or guidance on this matter would be highly appreciated.
Edit 1
View My Sphere on StackBlitz
Check out the Sphere on MapToGlobe