Realistic Storm Cloud With Lightning Strikes!

Posted By: Grafton

Realistic Storm Cloud With Lightning Strikes! - 03/14/07 17:43

Well, somewhat realistic.
I made this sometime back for a project that has been shelved.

The Cloud is 3 Dimensional and floats around. The bolt is constructed
somewhat randomly each strike out of particles. Looks really cool in action!
Checkout a running demo I made here.
Posted By: aztec

Re: Realistic Storm Cloud With Lightning Strikes! - 03/14/07 17:49

I like it but too many strikes
there should be less strikes
Posted By: frazzle

Re: Realistic Storm Cloud With Lightning Strikes! - 03/14/07 17:58

For a self constructed lighting and cloud script this isn't bad, the realistic factor is there for sure but there are more realistic looking lighting scripts out there but I think you realise that for yourself
It's a nice try, thxn for sharing this with us

Cheers

Frazzle
Posted By: Anonymous

Re: Realistic Storm Cloud With Lightning Strikes! - 03/14/07 17:59

Coool!
How did you make the cloud - model or sprites?
Posted By: PHeMoX

Re: Realistic Storm Cloud With Lightning Strikes! - 03/14/07 18:10

It doesn't look that bad, but I would have choosen different colors. Overall, this looks more realistic to me because of colors: http://flyer.smugmug.com/popular/2/13315661#13315661

Cheers
Posted By: Germanunkol

Re: Realistic Storm Cloud With Lightning Strikes! - 03/14/07 19:48

Agree with what they said, also think it should be thinner. the pic that phemox gave the link to shows how thin the bolts usually are.

That being said, I like it a lot!
It looks very cool! nice sounds as well... it's a great effeckt!
Somehow the cloud could get lit up more when the bolt is close, just like real lightning does...

good work!
Posted By: Serlink

Re: Realistic Storm Cloud With Lightning Strikes! - 03/17/07 14:44

Nice I like it. Can you add some rain to it?
Posted By: Grafton

Re: Realistic Storm Cloud With Lightning Strikes! - 03/17/07 19:26

You guys are too kind!

Ok, maybe realistic was too strong a word. I ment realistic in a
GS sort of way! But I am amazed how much better the
lightning now looks following some of your critiques. Just making
it thinner and more blue has improved the bolt alot!

Frazzle, where could I check out these scripts? Or do you mean
other engines than GS? I would like to see how others do it and
maybe learn something!

Mercuryus, the clouds are made from models and textures. They
can be scaled in height or width. The project I mentioned has
many that are different shapes. Oddly having many big clouds
does not slow the frame rate, only if you fly through one and
get close to the transparent texture does the refresh rate
dip some.

I am working on making the bolts "fork" from one to two or three
"streams", and those into sub streams as well. If I get it working
well I will post it.

Thanks!
Posted By: Mondivirtuali

Re: Realistic Storm Cloud With Lightning Strikes! - 03/18/07 11:22

May you give us the source code?
Posted By: Helghast

Re: Realistic Storm Cloud With Lightning Strikes! - 03/18/07 13:04

there's something else wrong as well

look at your pic, you see the "sidebolts" (dunno the real word) aim upward, but the lightning strike goes downward, so these should aim down as well...

that's about all what i didnt read in the previous comments
good luck, and keep the good work up

regards,
Posted By: checkbutton

Re: Realistic Storm Cloud With Lightning Strikes! - 03/18/07 17:10

Well as a lightning discharges from bottom to top, it isn't that wrong.
Posted By: Helghast

Re: Realistic Storm Cloud With Lightning Strikes! - 03/18/07 17:34

Quote:

Well as a lightning discharges from bottom to top, it isn't that wrong.




but if i look at the screenshots Phemox posted, you can clearly see that other way around

regards,
Posted By: Grafton

Re: Realistic Storm Cloud With Lightning Strikes! - 03/18/07 19:01

Pretty astute observation Dennis, I agree.
It seems that while some "tendrils" do shoot outwards perpendicular from the
main stream, most tend to follow the same general direction of it. Similar to
the roots of a plant.

Mondivirtuali, I'll probably end up posting it as a contribution to the
resource page when I get done playing with it, but its nothing too special.
Posted By: Mondivirtuali

Re: Realistic Storm Cloud With Lightning Strikes! - 03/18/07 23:50

Quote:



Mondivirtuali, I'll probably end up posting it as a contribution to the
resource page when I get done playing with it, but its nothing too special.



being a noob with no time to learn , such a contribution is something special.
Posted By: Marky Mark

Re: Realistic Storm Cloud With Lightning Strikes! - 03/19/07 02:08

Very nice, josiah. is it the same you posted for me? btw.. could you help me for my problem :S
Posted By: Towelie

Re: Realistic Storm Cloud With Lightning Strikes! - 03/19/07 02:38

The reason different branches stick out like that is because the electrons being discharged from the ground look for the path through the air with the least resistance. However, when a 'branch' encounters too much resistance, it will go back to a path that does make it to the clouds.

Science lesson of the day.

Nice effect too
Posted By: Sharx

Re: Realistic Storm Cloud With Lightning Strikes! - 03/21/07 03:27

you should add a flash after it. Pretty impressive though.
Posted By: William

Re: Realistic Storm Cloud With Lightning Strikes! - 03/21/07 08:39

This is a sweet effect. I remember trying lighting with models a few years ago, but this looks much better. Plan on releasing the source? I think your cloud method would look great in some environments.
Posted By: PrenceOfDarkness

Re: Realistic Storm Cloud With Lightning Strikes! - 03/21/07 14:32

omg this is amazing please release the source... lol
Posted By: Grafton

NEW IMPROVED Realistic Storm! - 03/22/07 22:57

Massive churning clouds with improved lightning and new rain effect.




Demo
Posted By: Pappenheimer

Re: NEW IMPROVED Realistic Storm! - 03/23/07 00:39

Wohow! I love it! Very atmospheric!

Three suggestions:
- the sprits of the clouds shouldn't turn with the player's view, or, at least they should be more round to make it less recognizable.
- when the rain becames more dense you could add white fog to show that.
- the difference between the bright clouds and the dark should be less.

All in all very nice!
Posted By: sPlKe

Re: NEW IMPROVED Realistic Storm! - 03/23/07 01:38

looks much better. the flash is a bit too blue though^^
Posted By: Anonymous

Re: Realistic Storm Cloud With Lightning Strikes! - 03/23/07 06:40

Let me call you "rainman"!
It's very good! Congrats!

mercuryus
Posted By: Grafton

Re: Realistic Storm Cloud With Lightning Strikes! - 03/23/07 08:18

Thanks for the nice comments and the crits, maybe its almost "there"?

About the textures turning at certain angles with the camera: I was hoping this
wasnt a noticable problem. There is a solution for it , but it is very code
intensive and in this case would hurt the frame rate, so I left it out. In this
demo, there are about 50 clouds of random proportions at any given time, but
the effect on fps seems to be very minimal on my two machines. I still search
for an easier solution to overcome gimbal lock.

The lightning is the biggest frame killer. Each bolt has an average of 2200
particles that live over two frames. Last night I made a new bolt with which
the branches sometimes have sub branches, but I am not sure it is really
visually noticable during a flash, or worth the extra ~500 particles.

Any critique on the rain effect?

Also, I am very curious about what anyone else is getting as far as frame rate
with this second demo. Is it really slow for anyone? (BTW, It auto adjusts
itself to the current desktop resolution).

Thanks!
Posted By: Blink

Re: Realistic Storm Cloud With Lightning Strikes! - 03/25/07 14:39

I would love to see this in contributions, I can really use that as is as an attack for an rpg i will be working on. how about adding a code to strike enemies onscreen,lol?
Posted By: frazzle

Re: Realistic Storm Cloud With Lightning Strikes! - 03/25/07 15:49

The lightning is quite realistic aswell for the rain but offcourse it can still be improved but this is an know issue with each and every thing in a new game I thing you make the rain look abit to "straight", what I mean with this is that you should give it a more random look. The lighting is perfect as it is, I wouldn't change anything more on that matter. One small detail is that you should make the camera movement stop at a sertain angle, I could tilt right under need the player

Cheers

Frazzle
Posted By: NeutronBlue

Re: Realistic Storm Cloud With Lightning Strikes! - 03/27/07 15:31

Quote:

Well as a lightning discharges from bottom to top, it isn't that wrong.




For a "Ground Strike" actually, "Step Leaders" (Charged Particles) travel from the ground towards the cloud, and from the cloud towards the ground where the potential difference is the highest.
(A lot of one charge in the clouds, usually positive - and a lot of the opposite charge on the ground, usually negative...Charge polarities are not *always* of one type for the ground or cloud.)

As the Step Leaders travel, they leave a charged/ionized trail as their 'wake'.

When the two Step Leaders meet (being of opposite charge they are attracted to each other) they complete the "circuit" and a lightning strike is discharged through the charged trail.

P.S. In my lightning routine (posted May 2001 - boy is *that* old!) I used particles.
Don't forget to set max_particles to like 10000 before the level_load statement, or on multiple strikes you'll get incomplete bolts/forks - as once you exceed max_particles the older particles will be removed before you want them removed, so that newer particles can be created...

- Neut.
Posted By: Grafton

NEW IMPROVED Realistic Storm! - 03/27/07 20:54

Thanks NeutronBlue. The average particles per bolt is about 2200, but may be
more if the clouds where higher or the number of branches greater. In this
example, I have more strikes going on than you would probably use in a game.

Still working on making it better... I havent heard anyone mention frame rate,
I suppose thats a good thing?
Posted By: sPlKe

Re: NEW IMPROVED Realistic Storm! - 04/03/07 02:29

bout that source...
maybe you could spare me at least your rain effect?
that would be awesome^^
Posted By: TigerTao

Re: NEW IMPROVED Realistic Storm! - 04/10/07 04:32

Excellent effects for both lightning and the clouds.

With the rain, perhaps add a little fog to the background to give the rain more volume, it might make the rain particles difficult to see though. Also I couldnt hear but is there a sound for the rain? Adding in something like that might make the rain seem more real.
Posted By: Yu_Une

Re: NEW IMPROVED Realistic Storm! - 06/21/07 12:31

Wow vast improvement from a while back, most impressive, though the links you provided seem to be dead?

Keep up the great work.
Posted By: Grafton

Re: NEW IMPROVED Realistic Storm! - 06/21/07 18:09

Thanks Yu Une, I appreciate the comments, I have to remove it so I had room for
other things on the server. I put it back up for a while if someone wants it. Its about 5 MB.
Posted By: JetpackMonkey

Re: NEW IMPROVED Realistic Storm! - 06/21/07 19:12

Do not use this model unless you have a surge protector on your computer
Posted By: JibbSmart

Re: NEW IMPROVED Realistic Storm! - 06/22/07 00:23

Quote:

Do not use this model unless you have a surge protector on your computer


i hafta say i liked that

julz
© 2024 lite-C Forums