Jump to content
  • Advertisement
Sign in to follow this  

Mirror Texture

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

What is the best/good way to deal with mirrored textures?

 

Most questions I've found about it suggest to either invert the texture pixels before uploading to the card, or invert the UV coordinates of it.

 

The problem with inverting the UV coordinates (the way I'm tempted to do) is that I would need to create the VBO for UVs x 4 for all textures I'm going to use to be able to adjust for: normal, vertical mirrored, horizontal mirrored, vertical and horizontal mirrored. (I can use the same VBO but it's still UVs count x 4)

 

At first I thought I could just invert the order I draw the vertices of my quad but it didn't work, is there an elegant way to deal with this?

Share this post


Link to post
Share on other sites
Advertisement

In most cases it's best to invert the texture pixels when loading. That way everything else stays consistent.

 

Or save your textures the way you want them in the first place...

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!