Jump to content
  • Advertisement
Sign in to follow this  
hannes100

texture mapping

This topic is 4770 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i am a newbie in opengl programming. So here is sth. i really don't understand out of all the tutorials and books i ve read about it. I once found sth on the net, which solved my problem but i don't find it anymore. How the f*** do i map a ckeck board texture onto a sphere ? Can smbd tell me a link, text or what ever where this is described ? thnx a lot

Share this post


Link to post
Share on other sites
Advertisement
thnx, but i was looking for sth else.
that's what i figured out:

quadratic = gluNewQuadric();
gluQuadricNormals(quadratic, GLU_SMOOTH);
gluQuadricTexture(quadratic, GL_TRUE);

glBindTexture(GL_TEXTURE_2D, texture[0]);
gluSphere(quadratic, 0.5f, 32, 32);

this maps texture[0] onto the sphere :-)
cya

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!