Page 1 of 1

Realistic Smoke (With collision)

PostPosted: Tue Dec 28, 2010 4:09 pm
by Game A Gogo
Alright, this morning I woke up and remembered my old old (almost ancient) smoke bomb demo, so I wanted to make a smoke generator demo.
But I didn't just wanted to make one, I wanted it to be realistic. So I tried to remember all those chemistry and physics notes in my head to figure out, how do particle react together?
I got a few notes down and integrated it in my concept and this nifty demo came out!

Yes, the particles collide with themselves, but only the middle, since one particle is suppose to represent several atoms of gas mixed with air. (It would be extremly CPU costly if I were to make 1x1 smoke particle ;) )

So I hope you enjoy this, learn a bit, and may it be helpful in a game for cool effects :D
too bad it requires a not so decent amount of CPU processing.

Note: make the smoke blue and what do you have? Watery slime! (hint for possible usage ;) )

Re: Realistic Smoke (With collision)

PostPosted: Tue Dec 28, 2010 5:04 pm
by Camper1995
Very good! ;) By the way, it looks little bit like soap-bubbles :D

Re: Realistic Smoke (With collision)

PostPosted: Tue Dec 28, 2010 6:48 pm
by Game A Gogo
haha
to have super realistic smoke would require smaller particles and a lot more cpu :)

Re: Realistic Smoke (With collision)

PostPosted: Wed Dec 29, 2010 10:19 am
by Camper1995
Hm, yes. But maybe it's just easier to make animation that begins from small smoke cloud and ends and bigger smoke cloud.

And make the animation disaper.. Maybe this will look more realistic. I can try to make some animations if you want ;)

Re: Realistic Smoke (With collision)

PostPosted: Thu Dec 30, 2010 5:07 pm
by Game A Gogo
and like I said, it can be used for say, a water jet stream from a gun or something, something like that can be made efficiently with this, :)

Re: Realistic Smoke (With collision)

PostPosted: Fri Dec 31, 2010 11:38 pm
by makslane
This is great :-)

Re: Realistic Smoke (With collision)

PostPosted: Sat Jan 01, 2011 9:12 am
by lcl
One thing that makes it run better..
Change the code in SmokePartC's draw actor code.
The line that is commented as "Disipation".
Code: Select all
transp += 0.002; //Instead of 0.001

Now, the actor fades faster and it runs better. :D
This is very nice demo! Good job!

Re: Realistic Smoke (With collision)

PostPosted: Sat Jan 08, 2011 3:56 am
by tintran
sweet!