I am posting this on behalf of John Wojnaroski who can read this list,
but is having trouble with sourceforge bouncing his posts for some reason:
John writes:
Researching how to map a texture to a sphere to build an ADI..
Think I have most of it worked out except the final step
glEnable(GL_TEXTURE_GEN_S); // Enable Texture
Coord Generation For S ( NEW )
glEnable(GL_TEXTURE_GEN_T); // Enable Texture
Coord Generation For T ( NEW ) glTexEnvf(GL_TEXTURE_ENV,
GL_TEXTURE_ENV_MODE, GL_DECAL);
glBindTexture(GL_TEXTURE_2D, num_adi);
glTexGenf(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glTexGenf(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
sets up the texture and generates the coordinates,
then you use gluSphere to build the sphere. and then I'm stuck
trying to understand how to map the texture onto the vertices of the
sphere. Or does that happen by "magic"
ATM all I'm seeing is a wire frame... something is missing or
misconfigured or mis -something
Any references, hints, examples would be appreciated...
Thanks
JW
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel