PYGAME FIRE
Trying to animate a fire , using python game platform , pygame. I got the fire 'to life' by combining together 16 different sketches or 'sprites'. The primary plume and the wood being the static parts while the other smaller portions of the flame being in repetitive motion. Black is used as background for best contrast.
Superimposing the main plume with 14 other minor plume allows creating a seeming movement of the flames upward.
Fig 3. Without the main plume (14 minor plumes and the wood)
Video 1. PyGame Fire
REFERENCES
(1) Source code and sketches , http://code.google.com/p/pygame-fire/downloads/list
Video 1. PyGame Fire
The 'effect' is created by motion of the 14 sprites both in horizontal and vertical axis and the variation of the colour. Not often 16 different pieces are sewn together to form an animation in PyGame.
Some tweaking has to be done with the various parameters in order to 'liven-up' the fire.
Some tweaking has to be done with the various parameters in order to 'liven-up' the fire.
REFERENCES
(1) Source code and sketches , http://code.google.com/p/pygame-fire/downloads/list
2 comments:
Root of the flame should be stable and stationary.
Proper colouration to be done - transition from vermilion red to golden yellow. Individual tips of the flame should have more natural and wavy flickering.
Please add and show.
- Baba
Yeah ! I agree .... however I am colour blind ! and such contrasts cannot be made out by me !
Post a Comment