Wiki Weblogs Forums JavaGames Home www.java.net
Java Bindings for OpenGL - Demos
Overview

The JOGL-Demos project contains Java programming language demonstrations utilizing OpenGL through the JOGL API. Demonstrations exhibit advanced functionality such as vertex programs, shadow maps and hardware-accelerated offscreen rendering via pbuffers. Most of the demos were ported from C or C++; in which case a link to the original sources is provided.

The demos below require Java Web Start, which is included in J2SE 1.4.2; click the images to launch the demos. Where there are no hardware or operating system requirements listed, the demos run on any vendor's graphics card and on any of Solaris/SPARC, Linux/x86, Windows/x86, and Macintosh OS X 10.3 Developer Preview 1.

The source code for these demonstrations is available via CVS.

NOTE: there is a known problem with the java.net web server which causes the jars to be re-downloaded each time any of these demos is launched. This issue is being worked on. Putting Java Web Start in offline mode may work around the problem.

Useful Links
Downloads
Hardware Shadow Mapping

Description
Requirements
Launch Hardware Shadow Mapping demo Shadowing demo using projective texture technique of hardware shadow maps. Original source code supplied in NVidia's Cg Toolkit.
NVidia GeForce 3 or better; Windows or Linux operating systems (pbuffer support not yet exposed in JOGL on Mac OS X)
Infinite Shadow Volumes

Description
Requirements
Launch Infinite Shadow Volumes demo Shadowing demo using geometric technique of infinite shadow volumes. Original source code by NVidia.
None
Vertex Program Warp

Description
Requirements
Launch Vertex Prog Warp demo Geometrical deformations performed on the graphics card using ARB_vertex_program. Original source code by NVidia.
Any card with ARB_vertex_program support
Vertex Program Refract

Description
Requirements
Launch Vertex Prog Refract demo Real-time reflection and refraction with chromatic aberration using ARB_vertex_program and register combiners. Original source code by NVidia.
NVidia GeForce 2 or better
Procedural Texture Physics

Description
Requirements
Launch Procedural Texture Physics demo Runs a physics-based water simulation entirely on the graphics card using register combiners, texture shaders and pbuffers. Original source code by NVidia.

NVidia GeForce 3 or better; Windows or Linux operating systems (pbuffer support not yet exposed in JOGL on Mac OS X)
Gears

Description
Requirements
Launch Gears demo Classic OpenGL demo. Original source code by Brian Paul; converted to Java by Ron Cemer and Sven Goethel.
None
Vertex Buffer Object

Description
Requirements
Launch Vertex Buffer Object demo Demonstrates high-throughput dynamic geometry using ARB_vertex_buffer_object extension. Original source code by NVidia; ported both to Java/JOGL and ARB_vertex_buffer_object extension.
Any card supporting the ARB_vertex_buffer_object extension
Vertex Array Range

Description
Requirements
Launch Vertex Array Range demo Demonstrates high-throughput dynamic geometry using NVidia vertex_array_range extension. Original source code by NVidia.
NVidia GeForce series card; Windows or Linux (JOGL's vertex_array_range support not yet ported to Mac OS X)