PDA

View Full Version : Weather effects...



MrShoe
12-15-2001, 03:47 PM
Does anyone have any ideas how to implement rain/snow or lightning effects?? i was thinking maybe a simple jagged line coming down from teh sky for the lightning but that would look dodgy... so anyone have any ideas? thanks

Nervus
12-15-2001, 05:27 PM
you should try using textured particles.
it looks great!

MofuX
12-16-2001, 01:01 AM
hi, i've done an snow-effect for my engine yesterday... it's very easy...

only do an struct with x,y,z,life and speed value (the struct as array)

then generate for every struct element an value! f.e.:

snow[x].y = rand()%1000 + 200;

your snow particle will have an minimum height of 200 and maximum of 1200!

this you can do for your x and z- range too!

then only render this on a plain and let it look into your direction!

good luck! (i will post my new demo today, please look!)
http://www.mofux.de.vu/

DarkWIng
12-16-2001, 05:36 AM
You can do simple lightning with particles.. you select start and end point of bolt and then add particles recurslivy between them based on their position/distance and some(small) random factor