Hanabi is a mesh particle system demo that simulates petals and grass with modern OpenGL. Users can generate petals with a click of mouse, feeling the beauty of nature. The grass and the light would also naturally follow your mouse.
Source code has been uploaded to GitHub.
Item | Description |
---|---|
Role | Programmer, Designer |
Timeline | March 2018 - June 2018 |
Tools Used | OpenGL, Visual Studio |
Key Activities
- Utilized the geometry shader to generate individual grass blades. Calculate and pass in the world position of the cursor to make the grass blades "breathe" with the cursor.
- Implemented basic light shading with Phong Illumination Model. Improved performance with the half-way vector optimization.
- Implemented basic physics simulation for the petals.
- Optimized performance with methods such as GPU Instancing.