How are you drawing the sphere; are you generating the vertices and texture coordinates manually? What is the projection method of the world texture you're using? A projection like this is easy to map: (
http://arstechnica.com/reviews/4q00/...h-map-huge.jpg ), there are other projection types though.. Some of them are easy, some of them not so easy.
You say you're having some problems with some of the coords, that implies to me that you've got it working for the most part, what exactly are the problems though? Is it mostly textured correctly, but with one line of faces where the texture seems really dense ( possibly across the point where the texture joins between 0 and 1 where it 'should' horizontally wrap in texture space )...? I had that problem myself for a while, in OpenGL. Turns out it was because I was re-using point structures, where the vertex would be shared but the texcoord isn't always shared, and that was causing the texture to wrap between 1-dx and 0... which meant I got a whole 0 to ~1 texture segment, backwards, within one column of faces... Easy to solve; double up the last column of vertices so that 1-dx spans to 1; or treat every compound point as unique..
Anyway, be a bit more specific, and I can try and be more helpful.
Last edited by MattEvans; Sep 26th, 2007 at 6:46 am.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
Offline 1,091 posts
since Jul 2006