Sharon Clay (src++at++rose.asd.sgi.com)
Mon, 30 Sep 1996 11:35:49 -0700
The density is to be the total fog that is accumulated when looking at an object at a
given distance and this must obviously be only increasing.
What you apparently are wanting to do is describe local pockets of fog in world
space and then have the hardware accumulate the fog for you. This we cannot do.
However, you can do the accumulation this yourself and put those values in your fog_density array.
Note however that the fog is in terms of distances so it will follow you around.
If you want to describe fog in world space you can put the values into a texture map
and use an object-space texgen to access the proper values.
->Also for every draw, I keep getting a message
->
-> "PF Warning: pfFog::setRamp() IrisGL-style ramp values: converting"
->
-> I believe that the density values for OpenGL and IRIS GL are 1's complement of each other.
->Does this conversion take place on the whole array before the array is used OR does the
->conversion take place as each value in the array is used ?
->
We convert the entire array one time before handing the entire thing to the GL.
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com (415) 933 - 1002 FAX: (415) 965 - 2658 MS 8U-590
http://www.sgi.com/Technology/Performer/
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:39 PDT