Monthly Archives: September 2012

Demos Projects

Android OpenGL cube

Android has a boiled-down API of the OpenGL standard so I spent some time to learn what this API was like by having myself create a small demo. I took the Android-SDK sample program, “Touch Rotate” and modified it to suit. Whereas the original demo uses vector shading to show a color cube, this one is actually fragment-shaded and therefore includes normal vectors for all fragments, as well as a more complete material set-up. Additionally, this cube is made entirely of tris instead of quads. The lighting was altered to include specular and diffuse as well as ambient.