   translucent cubes?
  hi, i''ve got a 3D voxel space with cubes as the voxels.  Some are solid and some I want to have volumes of gas in them, so you would be able to see through to the cubes behind unless the density gets too great.  I''ve looked over the fog tutorials but they seem to be mapping fog onto the textures of other objects, I want the fog to stand alone.  I suppose essentially I want to know how to draw a cube that is translucent to a varying degree...is there a nice command for that?something likeDrawTranslucentCube(x,y,z,translucence, colour);??VERY much appreciated!cheers,Kate 
  You have to use Blending.// Enable BlendingglEnable(GL_BLEND);// Here is the blending function.    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);    // We set the alpha value, 1 is opaque, 0 is transparent    glColor4f(1,1,1,TranslucentValue);    // Draw your cube here...............glDisable(GL_BLEND);Ok, but be carefull with the depth testing.When you are using blending, I suggest you turn of the writing to the depth field. glDepthMask(GL_FALSE);After drawn your cube, dont forget to enable it.glDepthMask(GL_TRUE);And draw your stuff that are using blending at the END.You draw your walls and other opaque stuff before, then you disable writing to z-buffer (dont disable the depth testing) and you draw all your stuff that are using blending. ;  wow thanks you''re a star! that totally works.cheers!Kate 