Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
fog_color and d3d_fogcolor vector #128458
05/07/07 13:12
05/07/07 13:12
Joined: Dec 2004
Posts: 237
H
Hani Offline OP
Member
Hani  Offline OP
Member
H

Joined: Dec 2004
Posts: 237
what is the difference between
fog_color and d3d_fogcolor vectors ?

i mean witch one control the fog color ?


The deference between madness and geniuses is success
Re: fog_color and d3d_fogcolor vector [Re: Hani] #128459
05/07/07 17:14
05/07/07 17:14
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
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..


"Yesterday was once today's tomorrow."
Re: fog_color and d3d_fogcolor vector [Re: Inestical] #128460
05/07/07 21:49
05/07/07 21:49
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
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...


xXxGuitar511
- Programmer
Re: fog_color and d3d_fogcolor vector [Re: xXxGuitar511] #128461
05/08/07 07:44
05/08/07 07:44
Joined: Dec 2004
Posts: 237
H
Hani Offline OP
Member
Hani  Offline OP
Member
H

Joined: Dec 2004
Posts: 237
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


The deference between madness and geniuses is success
Re: fog_color and d3d_fogcolor vector [Re: Hani] #128462
05/08/07 09:49
05/08/07 09:49
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
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

Last edited by tompo; 05/08/07 09:50.

Never say never.
Re: fog_color and d3d_fogcolor vector [Re: tompo] #128463
05/08/07 14:49
05/08/07 14:49
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
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...


xXxGuitar511
- Programmer

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1