Mark Davey (mkd@medphys.ucl.ac.uk)
Thu, 04 Nov 1999 14:07:25 -0800
I included the following code into the file voglSimpleVolume.cxx at the
beginning of the my_DrawVolume() function but without success. The
result was a thin band of lit volume, with everything else being in the
dark.........Help........!
void
my_DrawVolume(
voIndexedTetraSet * aTetraSet, voBrickSetCollection * aVolume)
{
int brickNo;
GLdouble modelMatrix[16], projMatrix[16];
// Extra code
glEnable(GL_FOG);
GLfloat fogColor[4] = {0.0,0.0,0.0,1.0};
glFogi(GL_FOG_MODE,GL_EXP);
glFogfv(GL_FOG_COLOR,fogColor);
glFogf(GL_FOG_DENSITY,0.35);
glFogf(GL_FOG_START,-modelSize[2]*2.5);
glFogf(GL_FOG_END,modelSize[2]*2.5);
//----------
Regards
Mark...
-- From: Mark Davey Dept. of Medical Physics, UCL.TEL: +44 (0)171 915 1673. FAX: +44 (0)171 837 9279.
Institute of Laryngology and Otology, 330 Gray's Inn Road, London. WC1X 8GE.
This archive was generated by hypermail 2.0b2 on Thu Nov 04 1999 - 08:03:17 PST