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.

Dark GDK / How to create fog?

Author
Message
Weapon
13
Years of Service
User Offline
Joined: 16th Oct 2010
Location:
Posted: 19th Oct 2010 03:12
Hi guys

Excuse me... My English is not good.

Does anyone know a way to do this fog:


Horrible image, but it was the best I found. I want to impair visibility.

Abraxas77
14
Years of Service
User Offline
Joined: 26th Aug 2010
Location:
Posted: 19th Oct 2010 17:41
I'm assuming dbFogOn(), dbFogColor(), and dbFogDistance() do not provide the type of fog effect you want.

If you haven't tried those functions, try them first. If you have tried them and they are not what you want, then stay tuned. I am working on the very same problem myself.

The other type of fog (the type I am working on) is volumetric fog and there are several techniques for making it. The one I am working on is best explained here: http://developer.download.nvidia.com/SDK/9.5/Samples/DEMOS/Direct3D9/src/FogPolygonVolumes3/docs/FogPolygonVolumes3.pdf
Weapon
13
Years of Service
User Offline
Joined: 16th Oct 2010
Location:
Posted: 20th Oct 2010 11:03
Tank Abraxas77

I'll study on the subject. Maybe find a solution. If I think I put here

Your signature has been erased by a mod - Please reduce its size to 600x120 maximum
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 20th Oct 2010 19:33
If your scene is 2D, you could simply use sprites to symulate fog. It would most likely give you what you want. 3D fog is more of a distance thing and what you are showing is like "patchy" fog.

The fastest code is the code never written.
Weapon
13
Years of Service
User Offline
Joined: 16th Oct 2010
Location:
Posted: 22nd Oct 2010 17:35
I still do not know if I will use 2D or 3D but the game will be on platform.

Your signature has been erased by a mod - Please reduce its size to 600x120 maximum
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 25th Oct 2010 05:30
Even a 3D will need something like billboards for "patchy" fog. The trick with using billboards for patchy fog is that you need to make sure you have tight control of the render sequence so it looks right (you have to render them far-to-near).

The fastest code is the code never written.
Weapon
13
Years of Service
User Offline
Joined: 16th Oct 2010
Location:
Posted: 27th Oct 2010 05:08
Thanks for the help

I'll be testing some forms here

You gave me an idea.

Login to post a reply

Server time is: 2024-09-28 16:33:17
Your offset time is: 2024-09-28 16:33:17