Selection Based on Z-values

This is a demo illustrating selection. It's main purpose is to demonstrate how the different Z-values of a selection can be used to figure out what has been selected.

Click on a sphere to select it, then drag the mouse to move it about.

Java Source

C++ Source
( GoGlutInterface.h, GoGlutInterface.cpp )