I have created a sphere and textured image on sphere, var spheregeometry = new THREE.SphereGeometry(2.5,40,40,0,-2*Math.PI,0,Math.PI); These are the parameters used for spheregeometry. radius : 2.5. widthSegments: 40. heightSegments: 40. phiStart: 0. phiLength: (- Math.PI * 2). thetaStart: 0. thetaLength:Math.PI
If i use philength = (-2*Math.PI) the image is textured on sphere, but if i use philength = 2*Math.PI; the image is not textured on sphere, but i want to use philength = 2* Math.PI to texture image on sphere. I don't know how to solve this problem can someone please help me how to solve this problem. I have also uploaded the code.
var spheregeometry = new THREE.SphereGeometry(2.5,40,40,0,-2*Math.PI,0,Math.PI);
var texture = THREE.ImageUtils.loadTexture( path, function()
{
texture.minFilter = THREE.NearestFilter;
texture.needsUpdate = true;
});
var spherematerial = new THREE.MeshBasicMaterial({map: texture});
spherematerial.needsUpdate = true;
var sphere = new THREE.Mesh(spheregeometry, spherematerial);
scene.add(sphere);