Fire Simulator/ Flamethrower
by Raymond Pederson
Description
A fire simulator/ flamethrower simulator (written in C++ / GLUT / OpenGL) involving multiple textures, a particle system, particle
physics, buffered controls, first person camera, mesh moving with camera, and idle particle animation.
Features
- Putting in a texture with multiple uv's being used to make the fire's particles have variety
- Learning how the particle engine emitter works from lab 10 to be refitted to move
- Modify the camera to be first person while not being able to move up/down the y-axis
- Movement that doesn't need to just press one letter at a time (buffered movement)
- Based on velocity, change a fire particle to a smoke particle
- Being able to turn off/on the particle system while resetting the animation (not just making it invisible)
- Have the system change as TTL goes by (frand and different alphas)
Controls
- When it opens, you will see your flamethrower.
- Control using w to move forward, a to move left, s to move backward, and d to move right
- Move around the mouse to control where the flamethrower shoots.
- Press space to shoot fire, press again to stop fire.
- Press p to stop time so you can view the fire stream.
Pictures of Fire/Flamethrower:
Basic fire made after brief modifications to the lab 10 particle system.
Staring image of the flamethrower.
Sample of emitting fire
Emitting flame while moving around
Emitting flame while moving Upward
Emitting flame on a model
Used p to detatch flame. Looking at arc from different perspective.
Detatched flame shooting upward
Sources