Rain Spray Effect?

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
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Rain Spray Effect?

Post by GAB »

I'd like to know how to get a rain spray effect like this one:
Hidden/Spoiler:
Image
Image
These pictures are from the Dark Times 2 map Tibrin: Island. The effect is not very salient in the screenshots but anyone who has already played the rain variant of the map will know what I'm talking about. So, how is the effect done?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Rain Spray Effect?

Post by Marth8880 »

It was most likely done using Wind and Precipitation snow ENVFX with one of the water spray particle effect textures and altered Velocity, etc. parameters - parameters possibly along the lines of this:

Code: Select all

Effect("Wind")
{
	Enable(1);
	Velocity(20.0, 0.3);
	VelocityRange(3.0);
	VelocityChangeRate(0.2);
}


Effect("Precipitation")
{
	Enable(1);
	Type("Quads");
	Texture("fx_ammonia");
	ParticleSize(12.0);
	Color(224, 194, 125);
	Range(12.0);
	Velocity(7.0);
	VelocityRange(2.0);
	PC()
	{
		ParticleDensity(1.0);
	}
	ParticleDensityRange(0.0);
	CameraCrossVelocityScale(0.5);
	CameraAxialVelocityScale(1.0);
	AlphaMinMax(0.5, 0.9);
	RotationRange(25);
}
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Rain Spray Effect?

Post by GAB »

Hummm, I originally thought it was done with some .odf but, sure, quads type preciptation and wind makes sense. I will test this later today.

EDIT

Is that fx_ammonia texture available in the ModTools?
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Rain Spray Effect?

Post by Kingpin »

GAB wrote:Hummm, I originally thought it was done with some .odf but, sure, quads type preciptation and wind makes sense. I will test this later today.

EDIT

Is that fx_ammonia texture available in the ModTools?
Nope.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Rain Spray Effect?

Post by Marth8880 »

GAB wrote:Is that fx_ammonia texture available in the ModTools?
Nope. It's a custom one for my secret Jupiter map. ;^0
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Rain Spray Effect?

Post by GAB »

Ok, I managed to get the effect working, but I wanted to pair it with a standard rain. And when I put two precipitation effect sections in my .fx file, the last one seemingly overwrites the previous. So my question now is: is there a way to have two types of precipitation effects at the same time or is this simply not doable at all?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Rain Spray Effect?

Post by Marth8880 »

Nope. You can't have more than one precipitation effect. :( However, you could simply use a dusteffect prop to achieve the effect you want, though that'll use a LOT of particles and it'll likely induce quite a bit of lag.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Rain Spray Effect?

Post by GAB »

Too bad. Anyway, thanks for the help. :)
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Rain Spray Effect?

Post by Noobasaurus »

Marth8880 wrote:Nope. You can't have more than one precipitation effect. :( However, you could simply use a dusteffect prop to achieve the effect you want, though that'll use a LOT of particles and it'll likely induce quite a bit of lag.
You can't load two .fx files through the world req?
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Rain Spray Effect?

Post by GAB »

I actually tried that. But whatever data that is in the .fx that comes second in the world's .req file overwrites the data that is in the first.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Rain Spray Effect?

Post by Maveritchell »

For what it's worth, here's that precip section (FYI, all that was supposed to be was spray and dirt, a hurricane building up - not rain):
Hidden/Spoiler:
[code]Effect("Precipitation")
{
Enable(1);
Type("Quads");
Texture("fx_wind");
ParticleSize(0.23);
Color(220, 220, 230);
Range(15.0);
Velocity(-0.05);
VelocityRange(1.25);
PS2()
{
ParticleDensity(50.0);
}
XBOX()
{
ParticleDensity(500.0);
}
PC()
{
ParticleDensity(100.0);
}
ParticleDensityRange(0.0);
CameraCrossVelocityScale(1.0);
CameraAxialVelocityScale(1.0);
AlphaMinMax(0.3, 0.45);
RotationRange(2.0);
}[/code]
Marth was on the money; I figured if you wanted to reproduce it exactly, though, I'd give you a leg up.

You're on your own for figuring out how to work in a second global environment particle FX, though - at least if you still want your map to run well.

If I were doing this, I'd skip putting in individual drops, though (driving rain doesn't really have rain visible in anything but sheets anyway), and use your sound design to tell the player what's going on. Sound is a powerful design tool, and if you put in some really nice ambient rain, your players will "see" the raindrops even if they're not visible.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Rain Spray Effect?

Post by Marth8880 »

Maveritchell wrote:use your sound design to tell the player what's going on. Sound is a powerful design tool, and if you put in some really nice ambient rain, your players will "see" the raindrops even if they're not visible.
Exactly, right?!? :) GAB, lemme know if you need any help finding good ambient rain tracks and making them quadraphonic. :)
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Rain Spray Effect?

Post by GAB »

OK. Thanks for the help everyone. And I managed to get some good results here. I kept the rain precipitation and used a Rhen Var odf to get a spray effect that looks very satisfactory without being very expensive. :)

Sound stuff I'll be doing later. I'll see if I can announce my current project soon.
Post Reply