Sign in to follow this  

texture mapping

This topic is 4558 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
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

This topic is 4558 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this