The applet on this page is an example of stereo viewing using OpenGL. Graph a function, and then turn on the "Stero" checkbox. For the stero effect, you have to view the image with red/green (or red/green or red/cyan) 3D glasses. The source code for the main class is GrapherComplete.java. It also uses a modified version of our "Camera" class, CameraWithStereo.java.