fog_color and d3d_fogcolor vector

Posted By: Hani

fog_color and d3d_fogcolor vector - 05/07/07 13:12

what is the difference between
fog_color and d3d_fogcolor vectors ?

i mean witch one control the fog color ?
Posted By: Inestical

Re: fog_color and d3d_fogcolor vector - 05/07/07 17:14

fog_color controls the visible fog color

I'm not sure about the direct 3D fog, I think it works when d3d_<???> is enabled.. or something..
Posted By: xXxGuitar511

Re: fog_color and d3d_fogcolor vector - 05/07/07 21:49

d3d_fogcolor stores the values for the [4] fog colors.

ex: to dynamically adjust fog_color 1

fog_color = 1;
d3d_fogcolor.red = 255;
d3d_fogcolor.green = 0;
d3d_fogcolor.blue = 255;

PURPLE! I hate purple... lol.
Hope that explains...
Posted By: Hani

Re: fog_color and d3d_fogcolor vector - 05/08/07 07:44

thanks,
i was confused with the manual description,

1 - distance fog (white)
2 - under water fog (blue)
3 - lava / hurt flash fog (red)
4 - user defined fog (free)
5 - darkness / blackout fog (black)

thanks anyway
Posted By: tompo

Re: fog_color and d3d_fogcolor vector - 05/08/07 09:49

Those are 4 predefined fogs colors and 1 to free use.
Example:
d3d_fogcolor4.red = 255;
d3d_fogcolor4.green = 0;
d3d_fogcolor4.blue = 255;
fog_color = 4;
Purple fog Like Purple Rain... but Deep Purple souds much better YEAH!

fog_color = 1 - fog will be a white distance fog
fog_color = 2 - blue fog.... etc
Posted By: xXxGuitar511

Re: fog_color and d3d_fogcolor vector - 05/08/07 14:49

You can change any of them, it really doesn't matter. The description in the manual is for using the templates.

I used all four in a day/night script. Fading between skycubes, fog color's, and camera ambient [for shadows]...

Now that I think about it I could have only used one, but o well, project was abandoned...
© 2023 lite-C Forums