Re: Fog question

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian@sgi.com)
Thu, 04 Nov 1999 15:13:48 -0500


Mark,
Have you done any experimenting? Have you tried a GL_LINEAR GL_FOG_MODE?

Brian

Mark Davey wrote:
>
> Concerning the depth enhancement question. I had looked into fog but
> things were not clear!
>
> 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.

-- 
    ----oOOo----    ----oOOo----    ----oOOo----    ----oOOo----

Brian Furtaw (brian@sgi.com) Graphics Guru Office:(301)572-3293 Fax: (301)572-3280 12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision Silver Spring, Maryland 20904 Optimizer/React/PCI Device Drivers


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Nov 04 1999 - 14:30:30 PST