Fog with Snow
Moderator: Moderators
- Wonderboy
- Chief Warrant Officer

- Posts: 353
- Joined: Sun Jul 12, 2009 12:54 pm
- Projects :: Making apples into applesauce
- Location: Eastern South Dakota
Fog with Snow
I have successfully added snow, and made it a bit faster with more snow falling. Now, I'm trying to add a small fog across the battlefield. The problem is, it won't show up. Here is my .fx file.
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Fog with Snow
Is there fog set up in your .sky file too?
- Wonderboy
- Chief Warrant Officer

- Posts: 353
- Joined: Sun Jul 12, 2009 12:54 pm
- Projects :: Making apples into applesauce
- Location: Eastern South Dakota
Re: Fog with Snow
No, I followed the tutorial by Taivyx, and he said to put it into your .fx file, which I did.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Fog with Snow
It all depends on the type of fog you're going for. Do you want atmospheric fog that prevents you from seeing off into the far distance? Or fog that's right up in your face, reducing visibility near you?
- Wonderboy
- Chief Warrant Officer

- Posts: 353
- Joined: Sun Jul 12, 2009 12:54 pm
- Projects :: Making apples into applesauce
- Location: Eastern South Dakota
Re: Fog with Snow
Probably reducing visibility near you, I kind of want a blizzard or snow storm effect.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Fog with Snow
You'll probably be best off with atmospheric fog that is really close to you, like Felucia or closer.
- Wonderboy
- Chief Warrant Officer

- Posts: 353
- Joined: Sun Jul 12, 2009 12:54 pm
- Projects :: Making apples into applesauce
- Location: Eastern South Dakota
Re: Fog with Snow
Ok, then I'll add the Felucia type fog. But I still don't know how to do it.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Fog with Snow
i think its this part in the .sky file
in combination with the viewranges
Code: Select all
Enable(1);
FogColor(80,100,80,128);
FogRange(-10.0, 62.0);
EnableFadeAdjustWithZoom(0);
- Wonderboy
- Chief Warrant Officer

- Posts: 353
- Joined: Sun Jul 12, 2009 12:54 pm
- Projects :: Making apples into applesauce
- Location: Eastern South Dakota
Re: Fog with Snow
Really? Hmm, I'll have to try it in the .sky file. Like I said, I did it like the tutorial said and put it into the .fx file.
EDIT: Huzzah! It worked, other than the fact that I have to change the color. Thanks a lot. But I have one more question. How come the color has 4 numbers? I know the RGB, but what's the fourth one for?
EDIT: Huzzah! It worked, other than the fact that I have to change the color. Thanks a lot. But I have one more question. How come the color has 4 numbers? I know the RGB, but what's the fourth one for?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Fog with Snow
RGBA for Alpha. The closer the value is to 0, the thicker the fog will be, I think.
- Wonderboy
- Chief Warrant Officer

- Posts: 353
- Joined: Sun Jul 12, 2009 12:54 pm
- Projects :: Making apples into applesauce
- Location: Eastern South Dakota
Re: Fog with Snow
Ah, okay. Thanks for clarifying.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Fog with Snow
I thought 255 alpha = opaque and 0 = transparent.
- poop
- Private
- Posts: 44
- Joined: Wed Sep 22, 2010 5:07 pm
- Projects :: Code Zero
- Location: Wynfield Circle
Re: Fog with Snow
Correct. Just like in the ZE water editor.Fiodis wrote:I thought 255 alpha = opaque and 0 = transparent.
- Wonderboy
- Chief Warrant Officer

- Posts: 353
- Joined: Sun Jul 12, 2009 12:54 pm
- Projects :: Making apples into applesauce
- Location: Eastern South Dakota
Re: Fog with Snow
Ah, ok thanks.
