Problem in transparent
my purpose is to create a big semi-transparent cube box, and inside of it contains a non-transparent sphere.
here is my simplified code:
object = gluNewQuadric();
drawCube(); //this function contains glVertex3fs to draw a cube.
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
gluSphere(object, 0.25, 25, 25);
the problem i encounter is, the sphere seems appear infront of the box (instead of inside of the box).