If you are trying to map a plain 2d texture map onto a sphere, you will get trouble with distortion and singularities (points where the texture map squeezes together by an infinite amount along at least one texture axis, causing various rendering artifacts; it's a bit like trying to find the north pole on a world map). You will probably get better results by using a cube map, if you can make one - place the origin of the sphere's coordinate system at the center of the sphere, then set texture coordinates = vertex coordinates for every vertex on the sphere.