Custom weather effects

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
indiana_tim_d
Corporal
Posts: 31
Joined: Sat Mar 08, 2003 9:52 pm
Location: Leicester, UK

Custom weather effects

Post by indiana_tim_d »

Does anyone know how to make custom weather effects? I want to try and create a rain of falling ash/pumice stone from a volcano.

Any ideas?
Thanks
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Bjarne has excellent tutorials at his site. One deals with letting it snow.
http://www.planetmedalofhonor.com/rjuka ... index.html.
Try this and change the texture of the rain/snow to ash...
indiana_tim_d
Corporal
Posts: 31
Joined: Sat Mar 08, 2003 9:52 pm
Location: Leicester, UK

Post by indiana_tim_d »

Cool! Thanks.
indiana_tim_d
Corporal
Posts: 31
Joined: Sat Mar 08, 2003 9:52 pm
Location: Leicester, UK

Post by indiana_tim_d »

Um, I've hit a slight problem: i can't get the textures to work. not even using the script straight out of the tutorial. i just get loads of little white-edged black boxes falling from the sky, not quite the effect i wanted!
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

indiana_tim_d wrote:...little white-edged black boxes...
is this supposed to be the snow or the ash?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Texture

Post by tltrude »

The shader can't find the texture. Make sure the path is correct in your new ash shader.
Tom Trude,

Image
indiana_tim_d
Corporal
Posts: 31
Joined: Sat Mar 08, 2003 9:52 pm
Location: Leicester, UK

Post by indiana_tim_d »

it was both the snow (from directly copying the example script) and my custom ash texture that didn't work.


This is the script that the tut said to replace

Code: Select all

exec global/weather.scr
exec global/ambient.scr m5l1b

with:

Code: Select all

//The snow
level.rain_speed = "32"
level.rain_speed_vary = "16"
level.rain_length = "2"
level.rain_width = "1"
level.rain_density = ".2"
level.rain_slant = "250"
level.rain_min_dist = "1800"
level.rain_numshaders = 12
level.rain_shader = "textures/snow7"
I haven't got a shader for my ash texture - what parameters would it have to have? Could someone give me an example?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

effects.shader

Post by tltrude »

Just copy the textures/snow7 shader from the pak0.pk3/scripts/effects.shader file. And, change the path and tga to your new image. Name it "ash.shader" and put it in a folder named "scripts" in main. That folder will have to be included in your final pk3, alone with the textures folder.

In your map script change, that last line to the new shader.

level.rain_shader = "textures/ash1" // or whatever you named it.
Tom Trude,

Image
Post Reply