PDA

View Full Version : Mapping texture to an sphere



thorsan
02-23-2004, 07:50 AM
I want to map a texture to a sphere. i have made the sphere using the gluQuadric functions. But how do i map the texture? someone who has some code on this?

M/\dm/\n
02-23-2004, 10:29 AM
Take a look at nehe.gamedev.net quadrics tut, there is one command to generate tex coords for quadrics.

nexusone
02-23-2004, 12:10 PM
I have an example on my site. www.angelfire.com/linux/nexusone/ (http://www.angelfire.com/linux/nexusone/)