Smoke simulation
in
Programming Questions
•
1 year ago
I'm pretty new to processing (okay,
really new).
I was browsing through the learning section and found this.
I thought, "well, this is awesome! maybe I could use this..."
I was thinking that it could be used in a game I was making to make little fluffy explosions whenever an enemy died. After experimenting with it (basically just changing the size, renderer [to P2D, which improved speed by a longshot] and the contents of the res variable), I got really, really confused. I have no idea what vbuffer is, and the code is not commented at all... I couldn't figure out which part generated the particles from the bottom of the screen.
So could anyone give me some pointers to:
I was browsing through the learning section and found this.
I thought, "well, this is awesome! maybe I could use this..."
I was thinking that it could be used in a game I was making to make little fluffy explosions whenever an enemy died. After experimenting with it (basically just changing the size, renderer [to P2D, which improved speed by a longshot] and the contents of the res variable), I got really, really confused. I have no idea what vbuffer is, and the code is not commented at all... I couldn't figure out which part generated the particles from the bottom of the screen.
So could anyone give me some pointers to:
- removing rising of smoke
- creating new smoke with specified position, direction, and velocity... if it works that way
I have already commented out random gusts and mouse control but I can get some portion of them back if I need.
Thanks in advance,
cheezcoder
cheezcoder
1