A Small collection of OpenGL demosA small collection of OpenGL demos (4 in total). When you run it, it will run each scene. It like all demos are ment to be watched and enjoyed. I hope you enjoy mine ;).
License: free
Requirements: A compiler and OpenGL support.
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| no | yes | no | no | no | yes | yes |
Submitted by anonymous on 2003-04-28.

What might be cool, though (tell me if this is crazy) is to make some of these demos, like the whirling amphitheater thing or the medusa fractal, into XMMS visualization plugins! Imagine seeing those thingies groove and gyrate to the beat of the music...
Of course, I haven't done much with OpenGL, and know nothing about the XMMS plugin API, so for all I know, this could be unworkable.
One feature request, though: fullscreen mode. Switching resolutions manually and centering the window works, but its not as convenient.
And although I really like sitting back and watching demos I doubt that there are many people out there feeling the same.
After all, the most successful commercial games ARE First Person Shooters *shrug*.
Nonetheless, GOOD WORK!
g++ -Wall -O4 -DDATAFILE_PATH='"data"' -o small_precludes common/misc.o common/xpm_loader.o common/rgb_loader.o common/ctrl_misc.o common/load_textures.o scene0/sp_title.o scene0/ctrl0.o scene0/scene0.o scene1/ctrl1.o scene1/floor1.o scene1/tower.o scene1/bouncing_ball.o scene1/scene1.o scene2/ctrl2.o scene2/part.o scene2/floor2.o scene2/roof.o scene2/cyclone.o scene2/scene2.o scene4/ctrl4.o scene4/scene4.o scene5/ctrl5.o scene5/link.o scene5/pipe.o scene5/lamp3.o scene5/scene5.o small_precludes.o -lm -L/usr/X11R6/lib -lGL -lGLU -lglut /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXBindChannelToWindowSGIX' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XGetExtensionVersion' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XFreeDeviceList' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XQueryDeviceState' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XListInputDevices' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelDeltasSGIX' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSyncSGIX' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSGIX' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XFreeDeviceState' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XOpenDevice' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelRectSGIX' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XmuLookupStandardColormap' /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `XSelectExtensionEvent' collect2: ld returned 1 exit status make[1]: *** [small_precludes] Error 1 make[1]: Leaving directory `/home/mlenz/small_precludes' make: *** [all] Error 2
$ ldd small_precludes libGL.so.1 => /usr/lib/tls/libGL.so.1 (0x40035000) libGLU.so.1 => /usr/lib/libGLU.so.1 (0x4009e000) libglut.so.3 => /usr/lib/libglut.so.3 (0x4011b000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40151000) libm.so.6 => /lib/tls/libm.so.6 (0x40204000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40226000) libc.so.6 => /lib/tls/libc.so.6 (0x42000000) libGLcore.so.1 => /usr/lib/tls/libGLcore.so.1 (0x4022e000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x406e6000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x406f5000) libdl.so.2 => /lib/libdl.so.2 (0x407d4000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
* DK_Skovbaer *
Change following line from make.config from
LIBS = -lm -L/usr/X11R6/lib -lGL -lGLU -lglut
to
LIBS = -lglut -lGL -lm -lGLU -lX11 -lXmu -lXext -lXi -L/usr/X11R6/lib
I did also have small problem and this solves it. Maybe it will help you also.
Very nice OpenGL Demo.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=90734#c6
I was able to apply these same steps to this demo and was able to get it to compile and link. The problem, in a nutshell, is that nvidia's libGL implementation is incomplete. This url shows how to link against the Mesa libGL library without overwriting the nvidia libraries.
I use a SuSE 8.1 distribution with nvidia card and nvidia drivers.
> rpm -qa | grep NV
NVIDIA_kernel-1.0-4363
NVIDIA_GLX-1.0-4363
make will show me this error:
/usr/include/GL/glut.h:10:19: GL/gl.h: Datei oder Verzeichnis nicht gefunden
/usr/include/GL/glut.h:11:20: GL/glu.h: Datei oder Verzeichnis nicht gefunden
These two include files are missing :-(
After searching a bit it looks that the nvidia drivers come with include files:
> ls /usr/share/doc/NVIDIA_GLX-1.0/include/GL
gl.h glx.h glxtokens.h
What is missing on my system?
Thank you
Bernd Schwarzkugler
I forgot to install the mesaglu rpm
Now it compiles and the scenes run with 50 fps scene 2 is my favorite
"Those who can - do. Those who can't - make demos."