Sign in to follow this  

Texture seams issue

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

Hello, I am trying to use GL_CLAMP/GL_CLAMP_TO_EDGE instead of GL_REPEAT to remove the seams between textures. Here is the result with GL_REPEAT: http://members.kabsi.at/devp/img2.jpg and with GL_CLAMP_TO_EDGE: http://members.kabsi.at/devp/img1.jpg Why does the "clamped"-one look so strange, and how can I fix this? thanks,

Share this post


Link to post
Share on other sites
GL_CLAMP and GL_CLAMP_TO_EDGE will clamp your texture coordinates to the [0.0, 1.0] range. Thus you cannot repeat a texture by supplying a texture coordinates with values greater than 1.0. It seems that this is just what you're trying to do. Take a look at your texture coordinates, and make sure that they're in the [0.0, 1.0] range.

The OpenGL programming guide has an excellent part about repeating and clamping textures. Look at Chapter 9: Texture Mapping

Share this post


Link to post
Share on other sites

This topic is 4530 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this