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 / Water effect and Horizon's Halo

Author
Message
Lucka
19
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 22nd Jun 2015 22:55
I saw i a old post ( http://forum.thegamecreators.com/?m=forum_view&t=210750&b=1 ) Green Gandalf's image of a water effect with a colored halo on the horizon..

Can i have that .fx or an explanation about HOW to obtain that kind of colored haze on the horizon?

Lucka - gawteam coder - www.gawgames.com
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Jun 2015 23:11
Quote: "Can i have that .fx or an explanation about HOW to obtain that kind of colored haze on the horizon?"


It's been a while since I looked at that demo of mine (it was part of a talk I gave about terrains). I'm fairly sure the "halo" effect was obtained by using suitably coloured fog.

And, yes, you can have the shader (or shaders, i.e. probably one for the sky, one for the terrain, and one for the water). But I'll have to dig them out first. The demo used several slightly different versions and that screenshot was just one combination. Might be a day or two since I'm just off for a short break.

If you want to wade through reams of inelegant non-optimised code you can have the whole demo (but without the associated talk/explanation ).



Powered by Free Banners
Lucka
19
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 22nd Jun 2015 23:13
i dont fear to dig trought inelegant non-optimised code

i call it "afternoon"

Lucka - gawteam coder - www.gawgames.com
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Jun 2015 02:07
Just had a look at the demo and the whole thing with media is rather larger than I thought. Might be better if I simply extracted the bits you want. Won't be till Friday though. Hope that's OK.



Powered by Free Banners
Lucka
19
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 23rd Jun 2015 11:26
I have several solutions for the water effect, what i need is the "haze" effect that "connect" the distan water color to the distant sky color.

if that halo is part of the water effect, i just need the .fx, if is part of the sky..

or maybe is a third .fx or another solution..

Lucka - gawteam coder - www.gawgames.com
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Jun 2015 13:35
Quote: "what i need is the "haze" effect that "connect" the distan water color to the distant sky color."


They were just fog in each case so they matched perfectly. For shadered objects in that scene the fog was applied using code in the shader, i.e. the three shaders used for sky, water and terrain (if I recall correctly ). I'll post those when I return on Thursday/Friday together with the extra code applying the fog from DBPro.



Powered by Free Banners
Lucka
19
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 23rd Jun 2015 17:35
you great GG

cuz usually water shader just IGNORE the fog

Lucka - gawteam coder - www.gawgames.com
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Jun 2015 23:41
Quote: "cuz usually water shader just IGNORE the fog"


All you have to do is add the relevant fog code to the water shader.

Anyway, I'm back now - but not in a fit state to fish out the required shaders. So I'll sort them out tomorrow.



Powered by Free Banners
Lucka
19
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 27th Jun 2015 15:03
yes, GG, add that code is the POINT ^^

thx for the help, man

Lucka - gawteam coder - www.gawgames.com
Lucka
19
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 28th Jun 2015 23:46
ok.. i did it!

Spronated by your suggestion i trid to modify fresnel water, adding the fog distance color.
I modified like this:

Original:



Modified:


was not so hard.. anyway w/o you suggestions i always SLEEP waiting for external help like a noob..

So thx GG

Lucka - gawteam coder - www.gawgames.com
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 1st Jul 2015 02:31
Quote: "ok.. i did it!"


Well done!

Quote: "was not so hard.. anyway w/o you suggestions i always SLEEP waiting for external help like a noob.."


I'm sure you've gained something by doing it yourself. My failure to deal with your request promptly probably helped you in the long run.

Quote: "So thx GG "


You're welcome.



Powered by Free Banners
Lucka
19
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 1st Jul 2015 15:06
btw, i will show you some videos of a couple of projects.
did ya never start a your own game, GG?

Lucka - gawteam coder - www.gawgames.com

Login to post a reply

Server time is: 2024-03-28 08:59:49
Your offset time is: 2024-03-28 08:59:49