This is a pretty old problem that I encountered with the OpenGL application.
I have a rather complicated model, some polygons in it are not textured and painted using a simple color with glColor (), while others are textured. Some textures have the same color as non-textured polygons, and there should be no visible seam between them.
The problem is that when you turn on the external component of the light source, a seam appears between the two types of polygons.
see this image: http://www.shiny.co.il/shooshx/colorBug2.png
The left image is without ambient light, and the right image is with ambient light (0,2,0,2,0,2).
The RGB value for the color on the texture is identical to the RGB value of the color edges. Alpha textures are set everywhere 1.0.
To shade the texture, I use GL_MODULATE.
Can anyone think of a reason why this will happen and a possible solution?
source share