Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Fog fading in and out

Author
Message
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 9th Sep 2011 01:50
I would like to make a very dynamic weather system for my game, which practically works this way: a player interpolates from one variable to an other in an array, as time goes by, creating a smooth transition between different levels of rain, snow, lightning, or just a clear sunny setting. As the player reaches different values, the weather conditions get better or worse.

I'm practically done with the "inner workings", and I'm gathering energy for the visual experimentation. My biggest concern is with the built in fog. It is a critical topic for the very heavy volumes of either snow or rain.

My biggest interest would be that am i able to finetune the factory fog effect from truely 0 percent to max, or is it affecting the scenery a bit as soon as it is activated, regardless its distance value or any other value? (a slight light pop in the colors/brightness when the fog is activated is already unacceptable)

And there are various possible problems that may arise: is the fog going well with alphablended polygons? and what about the built in shadow shading?

Any help and share of experience is highly appreciated!

-In.Dev.X: A unique heavy story based shoot'em ~35%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 9th Sep 2011 01:58
To avoid the 'slight pop' as you've mentioned, could you bring the fogs distance back from very far to closer over time so the 'pop' doesn't happen?

Warning! May contain Nuts!
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 9th Sep 2011 18:36
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 9th Sep 2011 18:53
That snippet shows exactly the same problem.
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 9th Sep 2011 19:14
Sorry, didn't notice the pop the first time..

If you increase the MinFog# value to 12000 there is much less pop to it. So a slightly higher value may give the desired result.

Login to post a reply

Server time is: 2026-07-11 11:26:06
Your offset time is: 2026-07-11 11:26:06