Sign in to follow this  
dnaxx

Texture seams issue

Recommended Posts

dnaxx    100
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
James Trotter    432
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

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