1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Ron Cemer & Sven Goethel">
<meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
<title>OpenGL Demos Ported to GL4Java</title>
</head>
<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
<br>
<a href="../../Installer/java.policy">The Java2 (sdk, jre, plugin 1.3) policy file example to give GL4Java the necessary permissions (Click here) !</a>
<br>
<hr>
!!! The original demos are ported by Ron Cemer !!! <br>
<br>
I have made some changes, which i described below !<br>
<br>
Many THANXS to Ron Cemer !!!!!!!!! <br>
<br>
Sven Goethel
<hr>
This page contains OpenGL demos, originally
written in C, which have been ported to Java and
<br>modified to use the GL4Java library.
<p>Since the source code is readily available for these demos, they could
serve as a great starting point
<br>for aspiring Java applet programmers who may or may not have experience
with OpenGL. You DO
<br>need to know Java in order to understand what is going on. Additionally,
I STRONGLY recommend
<br>that you buy the "OpenGL Programmer's Guide" (often called the "Red
Book") if you plan to do
<br>OpenGL programming, whether for C, Java or any other language.
<p>*** YOU MUST INSTALL THE GL4JAVA LIBRARIES BEFORE RUNNING THE DEMOS
***
<br>If you haven't installed the GL4Java libraries yet, go do that first,
then come back here and enjoy!
<p>Here are the demos:
<p> <a href="renormal_plugin13.html">Renormal, originally by Brian Paul</a>
: a sphere that grows and shrinks; demonstrates how to use auto-normalization.
<br> <a href="gears_plugin13.html">Gears, originally by Brian Paul</a> : three
animated gears; user can rotate the scene using the mouse.
<br> <a href="texobj_plugin13.html">Texobj, originally by Brian Paul</a> :
two animated, texture-mapped squares.
<br> <a href="reflect_plugin13.html">Reflect, originally by Brian Paul</a>
: rotating, textured, reflective platform with hovering objects.
<br> <a href="star_plugin13.html">Star, originally by Silicon Graphics</a>
: particle animation of stars flying toward the viewer.
<br> <a href="movelight_plugin13.html">Movelight, originally by Silicon Graphics</a>
: interactive directional lighting demonstration.
<br> <a href="molehill_plugin13.html">Molehill, author unknown</a>
: shiny nurbs/evaluators example.
<br> <a href="fog_plugin13.html">Fog, originally by Silicon Graphics</a>
: red spheres fading into a fog background.
<br> <a href="surface_plugin13.html">Surface, originally by Silicon Graphics</a>
: NURBS surface demo.
<br> <a href="moth_plugin13.html">Moth, originally by Robert Doyle</a>
: simulation of a moth flying around a light.
<br> <a href="shadowvol_plugin13.html">Shadowvol, originally by Tom McReynolds, SGI</a>
: demonstrates the use of shadow volumes.
<br> <a href="softshadow_plugin13.html">Softshadow, originally by Tom McReynolds, SGI</a>
: demonstrates use of the accumulation buffer for soft shadows.
<br> <a href="material_plugin13.html">Material, originally by Silicon Graphics</a>
: demonstrates the use of the OpenGL lighting model and materials.
<br> <a href="logo_plugin13.html">Logo, author unknown</a>
: 3D SGI logo with textures and user-adjustable rendering parameters.
<br> <a href="glutplane_plugin13.html">Glutplane, originally by Mark J. Kilgard</a>
: Paper airplanes demo. Originally written for Mark J Kilgard's GL Utility Toolkit (GLUT).
<br> <a href="spots_plugin13.html">Spots, originally by Mark J. Kilgard</a>
: Spot light demo.
<br> <a href="rings_plugin13.html">Rings, originally by Philip Winston</a>
: Do a slow zoom on a bunch of rings (ala Superman III?).
<br> <a href="steam_plugin13.html">Steam, originally by Troy Robinette</a>
: Miniature steam engine simulation.
<br> <a href="dof_plugin13.html">DOF, originally by Silicon Graphics</a>
: Uses accumulation buffer to create an out-of-focus depth-of-field effect.
<br> <a href="pointblast_plugin13.html">Pointblast, originally by Mark J. Kilgard</a>
: Particle animation demo.
<br> <a href="quadric_plugin13.html">Quadric, originally by Silicon Graphics</a>
: Demonstrates the use of some of the gluQuadric* routines.
<br> <a href="mipmap_plugin13.html">Mipmap, originally by Silicon Graphics</a>
: Demonstrates the use of mipmaps for texture maps.
<br> <a href="teapots_plugin13.html">Teapots, originally by Silicon Graphics</a>
: Demonstrates lots of material properties.
<br> <a href="texgen_plugin13.html">Texgen, originally by Silicon Graphics</a>
: Demonstrates the use of automatically generated texture coordinates.
<br> <a href="polyoff_plugin13.html">Polyoff, originally by Silicon Graphics</a>
: Uses polygon offset to draw wireframe over shaded polygons without ugly "stitching" artifacts.
<br> <a href="scube_plugin13.html">Scube, originally by David G Yu/Mark J. Kilgard/Silicon Graphics</a>
: Displays a spinning cube and its shadow.
<br> <a href="particle_plugin13.html">Particle, originally by Nate Robins</a>
: An example of a simple particle system.
<br> <a href="text3d_plugin13.html">Text3d, originally by Robert J. Doyle, Jr.</a>
: 3D animated text.
<br> <a href="dinoshade_plugin13.html">Dinoshade, originally by Mark J. Kilgard</a>
: Combines texturing, reflections, and projected shadows.
<br>
<br>
<br>
<hr>
I have only added a new Class, to support a simple <br>
customizing feature to these Applets ! <br>
<br>
The new Class is called "gl4java.applet.SimpleGLAnimApplet1", <br>
and it supports to customize the frame/secounds (fps) value <br>
and the refresh technique - both for animations ! <br>
This new Class is now part of the GL4Java distribution,
but is added here for portability !<br>
<br>
I removed the endless refresh technique from Ron, <br>
so that the more portable "repaint" technique is used as default. <br>
You can switch this off, like the "fps-sleep" delay ... <br>
But you should know, what you are doing, e.g. be sure to have a <br>
native thread JVM (MS-IE, and unix JVM's runs well with it) ! <br>
<br>
I removed the cab-files, and the jar-files also, <br>
because it looks too confusing and too overdriven for me. <br>
If you use MS-IE 4.0, be sure to have the new <br>
MS-JVM machine (build 3186) installed ! <br>
<br>
Sven Goethel
</body>
</html>
|