🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

texturing a sphere primitive

Started by
-1 comments, last by denjs 22 years, 6 months ago
I am trying to wrap a texture on a sphere primitive, but I get multiple instances of the texture wrapped all around. My code snippet is: glTexGeni tcS, tgTextureGenMode, tgmObjectLinear glTexGeni tcT, tgTextureGenMode, tgmObjectLinear glEnable glcTextureGenS glEnable glcTextureGenT ''Draw textured sphere glPushMatrix glBindTexture glTexture2D, gaTextures(0) glTranslated 0, 0, 0 glScaled 0.3, 0.3, 0.3 gluSphere QuadObj, 10#, 16, 20 glPopMatrix Also, I have a really nice earth texture I want to use, but it is a 2160x1080 resolution. How do I use a texture that is not square? Thanks for your help.

This topic is closed to new replies.

Advertisement