My Little Planet – An OpenGL Demo

July 27th, 2008



My Little Planet is a demonstration of using various techniques with OpenGL to render an animated scene. The planet, moon and tree were all modelled and textured in Milkshape and loaded into the scene. The river was made of OpenGL primitives and then texture animation and alpha blending were used to give the effect of flowing water. The plants in the scene were generated procedurally. The butterflies were both modelled and animated in Milkshape, and then the keyframe animation was played back and they fly in random directions. Elements within the scene are contained within a sky box and animated hierarchically, allowing the moon to orbit our planet. A second light source also orbits the planet giving the impression of night and day.

You can download the Windows application here.

Controls

Left Mouse Button – Drag to adjust the camera
Right Mouse Button – Drag to roll the camera
Mouse Wheel – Zoom in and out
W, A, S, D, Q, E – Move around the scene
L – Toggle lighting on and off
B – Toggle transparency on and off
M – Toggle motion on and off