Andrew Jameson
07-09-2005, 11:13 AM
Hi,
I'm trying to produce a transparent world ... land masses solid and seas semi-transparent. I want to be able to see the reverse land masses through the sphere so I disable GL_CULL_FACE.
http://www.softspotsoftware.com/Artifact.jpg
Now, it works ... but it generates transparent artifacts that are not related to lighting but are related to the view angle of the object.
I'm using the texture to control the alpha.
glDisable(GL_CULL_FACE);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glPushMatrix;
glColor4f(1.0, 0.0, 0.0, 1.0);
glBindTexture(GL_TEXTURE_2D, LogoWorld]);
glCallList(3DWorld]);
..
..
Any idea of what I'm doing wrong and why I'm getting these artifacts ? I've reproduced the same problem in Deep Exploration (Right Hemisphere).
Thanks Andrew
I'm trying to produce a transparent world ... land masses solid and seas semi-transparent. I want to be able to see the reverse land masses through the sphere so I disable GL_CULL_FACE.
http://www.softspotsoftware.com/Artifact.jpg
Now, it works ... but it generates transparent artifacts that are not related to lighting but are related to the view angle of the object.
I'm using the texture to control the alpha.
glDisable(GL_CULL_FACE);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glPushMatrix;
glColor4f(1.0, 0.0, 0.0, 1.0);
glBindTexture(GL_TEXTURE_2D, LogoWorld]);
glCallList(3DWorld]);
..
..
Any idea of what I'm doing wrong and why I'm getting these artifacts ? I've reproduced the same problem in Deep Exploration (Right Hemisphere).
Thanks Andrew