View Full Version : Hiding textured QUADS of a cube...

09-22-2005, 05:48 AM
Is it possible to hide all the 6 Textured QUADS of a cube and just render volumetric fog ?

For example, if the camera is looking down -ve Z-Axis, we would setup up the left wall of the cube somewhat like this : ( similar FOG coords, TexCoords & Vertex info being applied to all the other cube corners )

// left wall

glFogCoordfEXT( 0.0f);
glTexCoord2f(0.0f, 1.0f );
glVertex3f(BottomLeft_Up.x,BottomLeft_Up.y,BottomL eft_Up.z);

glFogCoordfEXT( 1.0f);
glTexCoord2f(0.0f, 0.0f ); glVertex3f(BottomLeft_Down.x,BottomLeft_Down.y,Bot tomLeft_Down.z);

glFogCoordfEXT( 1.0f);
glTexCoord2f(1.0f, 0.0f );
glVertex3f(TopLeft_Down.x,TopLeft_Down.y,TopLeft_D own.z);

glFogCoordfEXT( 0.0f);
glTexCoord2f(1.0f, 1.0f );
glVertex3f(TopLeft_Up.x,TopLeft_Up.y,TopLeft_Up.z) ;


Please let me know as to how I can setup a cube with volumetric fog and still be able to see whats behind this cube by disabling the textures.