Advertisement Jump to content
Sign in to follow this  
Pirosan

OpenGL gui texturing (tearing between corners etc)

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

I am having troubles rendering my windows in opengl. I draw the corners, and stretch the sides, top and bottom, and the center color to fit the window constraints. here is an example of what i do: and i know the polygons are always right up against each other: but when i stretch it, sometimes it tears like this: how can i avoid this? is there a better way to do what i am doing? Thanks for your help.

Share this post


Link to post
Share on other sites
Advertisement
Hmmmm, don't know, maybe you should show us some code (but not too much, and don't forget to put it inside [ source ] tags)?

Share this post


Link to post
Share on other sites
when you create the texture set the textureenv border to GL_CLAMP (used to be GL_CLAMP_SGIS) this will prevent this artifact.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!