Rain, snow, fog?

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
skyd1v3r
Posts: 5
Joined: Mon Oct 24, 2005 4:23 pm

Rain, snow, fog?

Post by skyd1v3r »

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?
nevyn
Posts: 136
Joined: Sun Jul 31, 2005 5:05 pm
Location: Sweden
Contact:

Re: Rain, snow, fog?

Post by nevyn »

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.
Durante
Posts: 65
Joined: Sun Oct 02, 2005 6:07 am
Location: Austria

Post by Durante »

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 ;)
DiabloTerrorGF
Posts: 64
Joined: Fri Jul 15, 2005 11:44 pm

Post by DiabloTerrorGF »

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).
skyd1v3r
Posts: 5
Joined: Mon Oct 24, 2005 4:23 pm

Post by skyd1v3r »

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 ... -_-
link
Posts: 61
Joined: Wed Oct 19, 2005 6:17 am

Post by link »

lumo?
skyd1v3r
Posts: 5
Joined: Mon Oct 24, 2005 4:23 pm

Post by skyd1v3r »

link wrote:lumo?
Yeah.
Found the script.
http://lumo2000.lu.funpic.de/rain_by_lumo.zip
Post Reply