Original Post
Hi I finally got some time away from my studies , and I have been reading the tutorials and have found them quite interesting. I''m on the Tutorial 8 and I''m having problems using the blending option , what I doing was making one of the objects opague while the rest at the regular transparency. My question to you people is how do you have the opague object not be on the forground all the time. I''m I missing something?
Whats happening is the 1 opague side is not viewed through BUT when rotated to the other side it is not seen through the transparent objects it is just seen as it was originally
heres the code
// I took the left face out of the other glBegin to make it
//opague
...
glEnd();
glLoadIdentity();
glTranslatef(0.0f,0.0f,z);
glRotatef(xrot,1.0f,0.0f,0.0f);
glRotatef(yrot,0.0f,1.0f,0.0f);
glBindTexture(GL_TEXTURE_2D, texture[filter]);
glDisable(GL_BLEND);
glDisable(GL_DEPTH_TEST);
glBegin(GL_QUADS);
glColor4f(1.0f,1.0f,0.0f,1.0f);
//Left Face
glNormal3f(-1.0f, 0.0f, 0.0f);
glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.0f, -1.0f, -1.0f);
glTexCoord2f(1.0f, 0.0f); glVertex3f(-1.0f, -1.0f, 1.0f);
glTexCoord2f(1.0f, 1.0f); glVertex3f(-1.0f, 1.0f, 1.0f);
glTexCoord2f(0.0f, 1.0f); glVertex3f(-1.0f, 1.0f, -1.0f);
glEnd();
...
Thanks All
Alex Finlayson
alex35@home.com