OpenGL First Person Demo
1,000 - 5,000 downloadsAdd this app to your lists
You can move through the scene using the phone's accelerometer. This should work for most of the phones. Use the touch display to look around and change your orientation. Double-tapping changes the density of the fog. Through the options menu, you can disable the fog and enable a spot light, which serves as a very basic flash light.
This application represents a small OpenGL engine students developed during their bachelor course in Mobile Games. The engine is quite simple. It features first-person movement through a walk-biased camera and a seperate matrix for looking around, moveable and animated objects, moving light sources, fog and stencil buffer shadows. This implementation is done with OpenGL ES 1.1 and the fixed function pipeline. If you are interested in the source code of the application, feel free to pass me a message.
First students learn how to interact with the fixed function pipeline, before they start to program for OpenGL ES 2.0 in an advanced course. Students learn how to use 2D and 3D coordinate systems, how to work with matrix transformations, how to texture and move things. In the advanced course they learn how to write shaders, how to implement shadow mapping, percentage closer filtering, bling-phong (per-pixel lighting) shading instead of gouraud shading (per-vertex lighting) and everything else they need in order to make a fully functional and efficient game engine.
Tags: opengl text, how make a matrix movable in, opengl draw 3d person, draw a person in opengl, opengl first person demo, opengl drawing text, zoom a star function in opengl, example for how to make a text movable using opengl in, opengl person object, opengl animation tutorial.
* The engine requires stencil buffers which might not be present on every device.
* Accelerometers are inverted on some devices. This app does not take this into account.
* BTW: I know that it is not the correct stencil function, this is to show the shadow of the cube as well ;-)