How to implement explosion in OpenGL with a particle effect?
Posted
by
Chan
on Game Development
See other posts from Game Development
or by Chan
Published on 2012-10-19T01:10:34Z
Indexed on
2012/10/19
17:20 UTC
Read the original article
Hit count: 286
I'm relatively new to OpenGL and I'm clueless how to implement explosion. So could anyone give me some ideas how to start? Suppose the explosion occurs at location $(x, y, z)$, then I'm thinking of randomly generate a collection of vectors with $(x, y, z)$ as origin, then draw some particle (glutSolidCube
) which move along this vector for some period of time, says after 1000 updates, it disappear. Is this approach feasible? A minimal example would be greatly appreciated.
© Game Development or respective owner