Advertisement

texturing a sphere primitive

Started by December 05, 2001 04:10 PM
-1 comments, last by denjs 22 years, 11 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