Page 1 of 1
Custom weather effects
Posted: Sun Oct 19, 2003 4:08 pm
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
Posted: Sun Oct 19, 2003 5:55 pm
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...
Posted: Sun Oct 19, 2003 6:56 pm
by indiana_tim_d
Cool! Thanks.
Posted: Sun Oct 19, 2003 10:49 pm
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!
Posted: Sun Oct 19, 2003 11:34 pm
by wacko
indiana_tim_d wrote:...little white-edged black boxes...
is this supposed to be the snow or the ash?
Texture
Posted: Mon Oct 20, 2003 1:46 am
by tltrude
The shader can't find the texture. Make sure the path is correct in your new ash shader.
Posted: Mon Oct 20, 2003 4:57 pm
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?
effects.shader
Posted: Mon Oct 20, 2003 7:55 pm
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.