Fog with Snow

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Fog with Snow

Post by Wonderboy »

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:
Enable(1);
Type("Quads");
Texture("fx_snow");
ParticleSize(0.015);
Color(255, 255, 255);
Range(15.0);
Velocity(4.0);
VelocityRange(0.8);
PS2()
{
ParticleDensity(80.0);
}
XBOX()
{
ParticleDensity(100.0);
}
PC()
{
ParticleDensity(600.0);
}
ParticleDensityRange(0.0);
CameraCrossVelocityScale(1.0);
CameraAxialVelocityScale(1.0);
AlphaMinMax(0.3, 0.45);
RotationRange(2.0);
}
Effect("FogCloud")
{
Enable(1);
Texture("fluffy");
Range(100.0, 100.0);
Color(168, 172, 180, 128);
Velocity(5.0, 0.0);
Rotation(0.1);
Height(17.0);
ParticleSize(700.0);
ParticleDensity(800.0);
}
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Fog with Snow

Post by AQT »

Is there fog set up in your .sky file too?
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: Fog with Snow

Post by Wonderboy »

No, I followed the tutorial by Taivyx, and he said to put it into your .fx file, which I did.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Fog with Snow

Post by AQT »

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?
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: Fog with Snow

Post by Wonderboy »

Probably reducing visibility near you, I kind of want a blizzard or snow storm effect.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Fog with Snow

Post by Fiodis »

You'll probably be best off with atmospheric fog that is really close to you, like Felucia or closer.
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: Fog with Snow

Post by Wonderboy »

Ok, then I'll add the Felucia type fog. But I still don't know how to do it.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Fog with Snow

Post by DarthD.U.C.K. »

i think its this part in the .sky file

Code: Select all

Enable(1);
	FogColor(80,100,80,128);
	FogRange(-10.0, 62.0);
	EnableFadeAdjustWithZoom(0);
in combination with the viewranges
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: Fog with Snow

Post by Wonderboy »

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?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Fog with Snow

Post by AQT »

RGBA for Alpha. The closer the value is to 0, the thicker the fog will be, I think.
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: Fog with Snow

Post by Wonderboy »

Ah, okay. Thanks for clarifying.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Fog with Snow

Post by Fiodis »

I thought 255 alpha = opaque and 0 = transparent.
User avatar
poop
Private
Posts: 44
Joined: Wed Sep 22, 2010 5:07 pm
Projects :: Code Zero
Location: Wynfield Circle

Re: Fog with Snow

Post by poop »

Fiodis wrote:I thought 255 alpha = opaque and 0 = transparent.
Correct. Just like in the ZE water editor.
User avatar
Wonderboy
Chief Warrant Officer
Chief Warrant Officer
Posts: 353
Joined: Sun Jul 12, 2009 12:54 pm
Projects :: Making apples into applesauce
Games I'm Playing :: Age Of Empires II
Location: Eastern South Dakota

Re: Fog with Snow

Post by Wonderboy »

Ah, ok thanks.
Post Reply