| View previous topic :: View next topic |
| Author |
Message |
skyd1v3r
Joined: 24 Oct 2005 Posts: 5
|
Posted: Mon Oct 24, 2005 4:56 pm Post subject: Rain, snow, fog? |
|
|
Before I start coding to get some snow, rain, fog or whatever on the screen - has anyone done this before?
And what would you advise? Moving single raindrops or just make a single transparent 512*512 pic with rain/snow on it and scrolling it down? |
|
| Back to top |
|
 |
nevyn
Joined: 31 Jul 2005 Posts: 136 Location: Sweden
|
Posted: Mon Oct 24, 2005 6:37 pm Post subject: Re: Rain, snow, fog? |
|
|
| skyd1v3r wrote: | Before I start coding to get some snow, rain, fog or whatever on the screen - has anyone done this before?
And what would you advise? Moving single raindrops or just make a single transparent 512*512 pic with rain/snow on it and scrolling it down? |
Moving single raindrops would probably be a heftilly bad idea. Now that we've got full transparency in 0.12 (tho' not out yet), I'd try having maybe three layers of rain/fog/whatever, and moving those layers at different speeds, downwards. It doesn't have to be 512x512, just tile a few 64x64 together. |
|
| Back to top |
|
 |
Durante
Joined: 02 Oct 2005 Posts: 65 Location: Austria
|
Posted: Mon Oct 24, 2005 11:15 pm Post subject: |
|
|
| For stuff like this it would be nice to have a particle system generator/renderer in LuaPlayer. It should easily be fast enough if done in C. Perhaps I'll add one sometime, depends on wether I want one for my game ;) |
|
| Back to top |
|
 |
DiabloTerrorGF
Joined: 15 Jul 2005 Posts: 64
|
Posted: Thu Oct 27, 2005 12:33 pm Post subject: |
|
|
| That would be great... and yeah don't try to draw them individually. I tried making sakura petals fall and it lags bad(although it may be my code). |
|
| Back to top |
|
 |
skyd1v3r
Joined: 24 Oct 2005 Posts: 5
|
Posted: Thu Oct 27, 2005 12:43 pm Post subject: |
|
|
I found a useable rain script of that guy... eah... damn whats his name?
He made the nick editor (letters circleling around in 3d)... seems to be well know on the board here... damn, i will search him ... -_- |
|
| Back to top |
|
 |
link
Joined: 19 Oct 2005 Posts: 61
|
Posted: Thu Oct 27, 2005 12:47 pm Post subject: |
|
|
| lumo? |
|
| Back to top |
|
 |
skyd1v3r
Joined: 24 Oct 2005 Posts: 5
|
|
| Back to top |
|
 |
|