View Full Version : Texture on gluQuadrics

08-11-2002, 11:07 AM
I try to use a texture (.jpg) in a gluQuadric (a sphere) but the texture is reversed. How can i fix that??

08-13-2002, 12:30 AM
Reversed? Are you sure you are loading it properly? How are you applying your texture?

08-13-2002, 11:28 AM
have you tryed to load any other texture types? if i rember right, jpgs need a special library. -PmanC

08-13-2002, 10:43 PM
Is the texture upside-down? I think that the OpenGL (& GLU) standard is to treat the first pixel in an image as the lower left corner, while in JPEG the first pixel is the upper left corner (if I remember it correctly).

One solution is to "mirror" the loaded JPEG image yourself, before uploading it to texture memory. Another solution is to modify the texture matrix.