Jump to content
  • Advertisement
Sign in to follow this  
Sigvatr

OpenGL Textures not "stitching" together

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

Hi there, I have a large, single 2d texture that holds all of the 2d textures I need for my OpenGL window. Whenever I run the program at a large than 1x1 aspect ratio (ie, my window is 1680x1050 and the ortho is 640x480), all of the individual textures I draw in sync and next to one another are "blurry" on the edges were they should be stitching together. I'm ok with all of the insides of the individual textures being a bit blurry, but the way it looks right now is that there is a faint little black line (the glClear color) in between all of the individually drawn textures. Does anyone know how to stop this? At 1x1 aspect, everything is pixel perfect and there are no little black gaps. I've tried adding an additional "border" of image information around the boundaries of the glTexCoord2f for each individual piece of the texture, but this does away with the blurring of the edges even when they aren't stitching together, and is especially noticeable when the two images lining up next to one another don't really flow into one another. Anyone have an ideas? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I don't understand what you mean with the second part. Do you want to draw an image that is blurred at the edges to the background?
If that is the case, I think you have to make two images, one for blurring and one for not blurring, unless you use another type of blurring than the texture filtering.

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!