Page 1 of 1

Fog with Snow

Posted: Fri Oct 22, 2010 11:37 pm
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);
}

Re: Fog with Snow

Posted: Sat Oct 23, 2010 1:11 am
by AQT
Is there fog set up in your .sky file too?

Re: Fog with Snow

Posted: Sat Oct 23, 2010 2:03 pm
by Wonderboy
No, I followed the tutorial by Taivyx, and he said to put it into your .fx file, which I did.

Re: Fog with Snow

Posted: Sat Oct 23, 2010 3:18 pm
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?

Re: Fog with Snow

Posted: Sat Oct 23, 2010 4:26 pm
by Wonderboy
Probably reducing visibility near you, I kind of want a blizzard or snow storm effect.

Re: Fog with Snow

Posted: Sat Oct 23, 2010 5:48 pm
by Fiodis
You'll probably be best off with atmospheric fog that is really close to you, like Felucia or closer.

Re: Fog with Snow

Posted: Sun Oct 24, 2010 2:42 pm
by Wonderboy
Ok, then I'll add the Felucia type fog. But I still don't know how to do it.

Re: Fog with Snow

Posted: Sun Oct 24, 2010 3:14 pm
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

Re: Fog with Snow

Posted: Sun Oct 24, 2010 3:36 pm
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?

Re: Fog with Snow

Posted: Sun Oct 24, 2010 5:03 pm
by AQT
RGBA for Alpha. The closer the value is to 0, the thicker the fog will be, I think.

Re: Fog with Snow

Posted: Sun Oct 24, 2010 5:31 pm
by Wonderboy
Ah, okay. Thanks for clarifying.

Re: Fog with Snow

Posted: Sun Oct 24, 2010 5:33 pm
by Fiodis
I thought 255 alpha = opaque and 0 = transparent.

Re: Fog with Snow

Posted: Sun Oct 24, 2010 10:43 pm
by poop
Fiodis wrote:I thought 255 alpha = opaque and 0 = transparent.
Correct. Just like in the ZE water editor.

Re: Fog with Snow

Posted: Mon Oct 25, 2010 7:55 pm
by Wonderboy
Ah, ok thanks.