Hi, this is the game that I created for CS488 Spring 2017 OpenGL C++ Final project to complete 10 objectives : Modelling the scene, UI, Particle System, Sound, Static Collision detection, Transparency, Reflection Map, Texture Mapping, Shadow Mapping (imperfect), Lens Flare.
The game took me 1.5 weeks to plan and study, and another 1.5 weeks to actual implement it. The game was purely implemented by math including linear algebra, vector and matrices; And shaders in OpenGL C++. No extra game engine was used. Edited: And I got Honorable Mention for this project!
Here is a video about it:
Here are some fun screenshots:
You can see your life situation in the life bar. The red colour means you are in dangerous!
The greener bar indicating you are about to win.
There are some images on my process of work.
I was really frustrated when I got failed on texture mapping. And after fixed my texture mapping, I got this!
I was really happy when it’s getting better!!
Adding the third person camera and particle system.
It’s really beautify when I apply multi-texture on plane.
It was really starting from scratch. You can see the result of a plane with multi-texturing mapping on it, a textured model - earth and the skybox.
Adding water plane with reflection map from skybox.
I was trying to create a view after rain. You can see the road is filled with puddles from the rain.
Skybox is used to implement the reflection map on water. You can see the result here. Water plane is another plane with blending map.
Hopefully you can see the normal mapping here.
and here.
There were also a few obstacles stopped me.
Skybox, by just changing a string for the image file name. It’s like I was lucky to use the only one correct group of images for the skybox.
Shadow was there, but it’s gone after I added normal mapping for the earth.
And it’s not a perfect shadow. That’s why I chose to add normal mapping to make up my failure on shadow. Some strange shadow here:
There is a scene from bird view. Far plane was clipped behind the houses.
You have to put your camera near to the ground to see the Lens flare. Or just go back to those houses. The reason is that I set up the light source (sun) is really close to the scene. So you can see lens flare when you have a longer distance from the sun.
The final scene.
Thank you very much for reading this. Hopefully, you would like this game.