View Full Version : Texture is backwards
04-30-2004, 08:20 AM
I'm looking at the code for the "Textured Sphere" on http://www.codesampler.com/oglsrc.htm and can't figure out how to correct the backwards texture problem. Just look at the screen shot for that tutorial and you'll see what I mean. Thanks for your help!
04-30-2004, 09:33 AM
Remember that you can perform matrix operations on the texture matrix.
I was unable to see exactly what you meant from the link you posted but...
...if your texture is backwards, try doing a glScalef(-1.0,1.0,1.0) on the texture matrix stack.
likewise, if you find your texture is upside down, issue a glScalef(1.0,-1.0,1.0) on the texture stack.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.