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 / GG Fog Problems with Dark Clouds

Author
Message
DigitalFury
15
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 25th May 2012 00:06 Edited at: 25th May 2012 00:39
I have a technique for having the fog cover the sky using a sphere and using that. I can't use a sphere because I can't see the clouds then so I have to come up with someway of having the fog in the sky and being able to see the clouds. I've also tried texturing the sphere with the clouds image then applying the shader but that didn't work either.

Here is the code for GG Fog: (It's as expected)


Code for sphere:


I've tried using Ghost Object On, texturing it black and setting the transparency on, and a few other things and I can't seem to get it to work.

Does anyone have any ideas?

DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 25th May 2012 00:40 Edited at: 25th May 2012 00:41
Have you tried 50% alpha transparency using a PNG that is 50% transparent? Texture your sphere with that. Then turn transparency on mode 2, then fade sphere object to about 7.

DigitalFury
15
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 25th May 2012 01:09
@Pincho Paxton - Tried several variations and it is always black. I don't see any of the fog.

Here is some test code so we can tweak it just right. It is untested: (Attached is the rest of the files you need)


DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 25th May 2012 01:51 Edited at: 25th May 2012 01:53
I meant, don't use the GG fog, use the DBPro fog, then to get the swirls use a few transparent sphere. Although, I have tried it, and it looks very nice, but some objects are clipped by the sphere when they pass through them.

DigitalFury
15
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 25th May 2012 01:58
@Pincho Paxton - GG's Fog looks really good so I want to try and use it.

Why would I use DBP fog with spheres?

DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 25th May 2012 02:01 Edited at: 25th May 2012 02:02
Because GG fog doesn't scroll, and sphere do, unless GG fixed the scrolling issue.

DigitalFury
15
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 25th May 2012 02:08
@Pincho Paxton - I can use cumbers fog. It doesn't have scrolling. (I think, but it doesn't matter)

Here is the code for the fog:


Attached is the fog shader.

Could that work instead?

DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 25th May 2012 02:18
Have you tried scaling your sphere with the clouds on -100,-100,-100?

DigitalFury
15
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 25th May 2012 02:26 Edited at: 25th May 2012 03:22
@Pincho Paxton - Tried inverting it and it didn't make much of a difference.

Any more suggestions or could you give me an example using DBP fog?

DigitalFury

Get Out Alive (Zombie WIP): My latest zombie game I am working on.

Login to post a reply

Server time is: 2026-07-22 00:34:34
Your offset time is: 2026-07-22 00:34:34