Bruno
01-25-2001, 11:37 AM
Hi
Well, i have implemented some volumetric fog effects in my engine, and i have some problems, that after some time thinking, i dont have a solution for it.., maybe you guys can help, give me some sugestions.
Essentialy, in the editor, a draw a cube and assign that cube as fog! Then when i'm building my data, i detect if that triangle is inside the fog volume, if it is a mark it as being inside a fog.
Then, at runtime, when i detect a face that is inside a fog volume, i use the glFogCoordEXT to assign the fog the the face.
This works fine, if the faces all have the same height, if i have a face with an Y value of 10, and another one with 2 , the fog won't look ok.., any way to assing a value to the glFogCoordEXT so that faces with diferent heights look ok ?
The other problem is with models.
Take a look at :
http://brunomtc.no.sapo.pt/shot1.jpg
With a model, i can't assing the fog this way.., so, how can i make the model look ok?
thanks for any help/suggestions
Bruno
Well, i have implemented some volumetric fog effects in my engine, and i have some problems, that after some time thinking, i dont have a solution for it.., maybe you guys can help, give me some sugestions.
Essentialy, in the editor, a draw a cube and assign that cube as fog! Then when i'm building my data, i detect if that triangle is inside the fog volume, if it is a mark it as being inside a fog.
Then, at runtime, when i detect a face that is inside a fog volume, i use the glFogCoordEXT to assign the fog the the face.
This works fine, if the faces all have the same height, if i have a face with an Y value of 10, and another one with 2 , the fog won't look ok.., any way to assing a value to the glFogCoordEXT so that faces with diferent heights look ok ?
The other problem is with models.
Take a look at :
http://brunomtc.no.sapo.pt/shot1.jpg
With a model, i can't assing the fog this way.., so, how can i make the model look ok?
thanks for any help/suggestions
Bruno