Angry Bird Scene
Partner: Thanh Hai Mai
This project is developed on Windows 7, VS 2010.
The scene is about an angry bird discovering the pigs have stolen her egg! She traces down them into their shelter. The scene is reasonably completed with trees, pigs, pigs' shelter, angry birds, stars (we will make it a game later), and a glyph on the wall to demo displacement mapping
Skybox, angry bird and cave models were created in Autodesk Maya 2012 and then converted into OBJ files, and stars made manually and put into RAW file by myself .
The brown start (non animated) is created by hand. The code for it is in
Scene::createStarByHand(). The star is a simple object, but it is indeed more interesting than a box.
The pigs, the shelter, the angry bird, the trees are loaded from Maya obj file at run time.
The animating stars are created from a raw file. We created the raw file by hand (it's a pain!).
The scene is constructed using the file src/data/newScene.txt. We do not create the complete scene in a modeling program. Instead, we have our AssetManager load and our Scene class construct the entire scene.
The egg, the crates, the pan, the skybox, the tree and the cave are textured.
The egg are shiny, the shelter is dull.
We have one directional light (line 29 in src/data/newScene.txt)
We have several point lights (line 27-28 in src/data/newScene.txt)
The pigs, the stars, the glyphs and the trees are instantiated more than one. They are not duplicated. The models are loaded once at the start, and the engine just draw a model more than one time at different locations.
Press 'P' to toggle wireframe for one pig.
Most of my objects have normal, except the stars which are created by hand.
We have double buffering, hidden surface elimination, and perspective projection.
Press 'L' to toggle light for debug.
Our program uses programmable shaders.
We implemented displacement mapping in vertex shader. The glyphs on the side of the shelter are rendered from a plane and displaced the vertices.
FPS camera is implemented. You can use W A S D and mouse to move.
The stars are constantly rotated.
Extra Credit:
Input Manager: buffered input for a smoother key detect.
First Person Camera: fully implemented.
Skybox.
Credits: Other models including egg, crates, pigs and trees are from Turbosquid.com and thefree3dmodels.com