SolarSystem (OpenGL ES 2.0 / WebGL Demo)

The "SolarSystem" demo application shows a simplified model of the sun and the planets, rotating around their axis and orbitting around the sun.
Once the system is initialized and all origin coordinates of the planets are calculated by the CPU, almost the complete calculation and drawing of the scene is done by the GPU.
Each planet is created by a wireframe sphere, build by several hundreds of vertices. Within each frame, the vertex shader calculates the position and the amount of lighting for each vertex, depending on the current position of the planet and the current viewing position.
Finally, the fragment shader draws the visible parts of the shpere by using a texture bitmap and performs some blending operation to make the desired lighting.

Navigation: Drag with the mouse up/down to change the viewing distance temporarily. Press 'Space' to see the wireframe model.

Downloading...

SolarSystem for Raspberry Pi

The "SolarSystem" demo is also available as binary file for the Raspberry Pi target (verified on Raspberry Pi 2 Model B using a Raspberry Pi 7" touchscreen display).

On the Raspberry Pi board, a Broadcom BCM2836 SOC is used. It contains the VideoCore IV GPU, responsible to make the OpenGL ES 2.0 rendering.

Download SolarSystem demo for Raspberry Pi (161 kByte).