Jump to content
  • Advertisement
Sign in to follow this  
ScottNCSU

GL_TEXTURE_2D has no "back", trying to flip character image

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

When I rotate my GL_TEXTURE_2D on the y or x axis so far that you can see the "back" of the texture, it dissapears. All I want to do is rotate the image 180 degrees on the x axis to flip the character so he faces the opposite direction. I'm using a TGA with an alpha channel (no masking). How do I set up my GL_TEXTURE_2D to be able to be flipped 180 degrees so I don't have to flip all of my art in GIMP?

Share this post


Link to post
Share on other sites
Advertisement
This behavior is called back face culling. You find all sorts of info out there, so I won't go into more detail here.

To disable it, simply call glDisable( GL_CULL_FACE );.

[Edited by - Promit on August 7, 2005 12:50:29 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!