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
Custom weather effects
Moderator: Moderators
-
indiana_tim_d
- Corporal
- Posts: 31
- Joined: Sat Mar 08, 2003 9:52 pm
- Location: Leicester, UK
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...
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
-
indiana_tim_d
- Corporal
- Posts: 31
- Joined: Sat Mar 08, 2003 9:52 pm
- Location: Leicester, UK
Texture
The shader can't find the texture. Make sure the path is correct in your new ash shader.
-
indiana_tim_d
- Corporal
- Posts: 31
- Joined: Sat Mar 08, 2003 9:52 pm
- Location: Leicester, UK
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
with:
I haven't got a shader for my ash texture - what parameters would it have to have? Could someone give me an example?
This is the script that the tut said to replace
Code: Select all
exec global/weather.scr
exec global/ambient.scr m5l1bwith:
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"
effects.shader
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.
In your map script change, that last line to the new shader.
level.rain_shader = "textures/ash1" // or whatever you named it.
