Computer Science Canada Help with making a smoke effect |
Author: | Schaef [ Sun Jan 18, 2004 6:10 pm ] | ||
Post subject: | Help with making a smoke effect | ||
Hey, I need to make a program for school that has a house with smoke coming out of the chimney and some other animation. Can someone give me some kind of an idea of what i could do for my smoke effect. Just give me an idea i dont need a source code or nething. Neways here is the house so far:
|
Author: | Homer_simpson [ Sun Jan 18, 2004 7:10 pm ] |
Post subject: | |
a little particle engine would do... |
Author: | Schaef [ Mon Jan 19, 2004 3:43 pm ] |
Post subject: | |
whats that? |
Author: | Andy [ Mon Jan 19, 2004 5:07 pm ] |
Post subject: | |
a program that turns images into lil particles and move them around |
Author: | Mazer [ Mon Jan 19, 2004 6:23 pm ] |
Post subject: | |
Not necessarily images, especially in turings case since many images could kill the framerate. Anyways, I would suggest you have variables for the x and y position of the chimney where the smoke should emerge, then make more variable (an array) for the x and y coordinates of the smoke, and draw grey ovals at those points for the smoke. Have the y coordinate of the smoke increase at a constant rate, then try having the x coordinate randomly increase or decrease by a set amount. Then, once the y coordinate reaches a certain value, reset the x and y position of the smoke back to the original position. |
Author: | Schaef [ Mon Jan 19, 2004 6:26 pm ] |
Post subject: | |
i have my smoke done now.. how would i set up a code so that I would have a whole bunch of dots placed randomly inside of a circle boundary |
Author: | TheXploder [ Mon Jan 19, 2004 7:41 pm ] | ||
Post subject: | |||
Holy thats a lot of code for just smoke. I would try a combination of local and global variables.
Ohh ![]() ----------------------------------------------------------------- That should cut down your code by a million, you can even have colour variation if you change one variable. And about the random dots... if I'm not mistaken you are heading towards an Airbrush effect with that, if you want transparency spoke look into images. You could do it with a loop, but that would slow down the movement of the smoke... Hope this helps... ![]() -=TheXploder=- |
Author: | Mazer [ Mon Jan 19, 2004 7:47 pm ] |
Post subject: | |
I may be blind, lazy, and fat, but I'm pretty sure there was no code for smoke anywhere in there... And there really isn't much use in making a procedure for one line, and that is some funky smoke you've got there... the size of the particle is more than the x and y pos of the particle... |
Author: | TheXploder [ Mon Jan 19, 2004 8:13 pm ] | ||
Post subject: | |||
Just as an example what you can do with what i've shown you above...
-=TheXploder=- |
Author: | AsianSensation [ Mon Jan 19, 2004 9:41 pm ] |
Post subject: | |
I was about to make the smoke effect, but then I saw this awesome code posted before me, and so now I am shocked by the ingenious programming done by TheXploder and not going to post mine because it looks like crap compare to his. btw, if you want to know how I did mine, I make a cluster of particles, and then make them spread out as the big cluster rises, kinda like a cloud puff. Then the particles disappear after some time, and another puff appears. The only problem I have is generating the cluster. so far it's in a circle and looks like crap, how do I make it generate in a cloud shape thing? Maybe I'll have to use whatdotcolor on this one......damn it. |
Author: | Schaef [ Tue Jan 20, 2004 7:05 am ] | ||
Post subject: | |||
hey, this is a code that i have so far for a cloud. How do you think i could alter it so that the particles would move across the sky?
|