OpenlGL Projects
Hey All I am going to sort all my OpenGL programs within the “OpenGL Projects” section.
Pretty clever, huh?
Obviously everything posted within this section is open source— why else would you care if it was OpenGL—All this goodness comes with the disclaimer that even thought I have done as much as I can to insure the quality of my programs I do not claim the programs won’t jump out and kill you or your friends, family and/or your computer…
If this does happen—I’m terribly sorry…
Since I do use DirectX as a front-end for games occassionally, I’m electing to keep them seperated since some people might have a preference for one and not hte other. So if DirectX is your cup of tea—this isn’t the section for you.

Mind Attack - Open Source
I’m releasing my game to the community… This also includes a simple menu system. Mind Attack is a memory game where tiles light up one at a time and must be clicked on in the order they light up.
Major Effects Used:
- UI – Buttons, Drop Downs, Check Boxes
- Multi-Texturing
- Sliding Images
Challenge Factor:
- Tiles may shift position with one another.
- Tiles may randomly disappear and are removed for the order.
- The postion of the tiles may be the same but a random color may change.
I’m just organizing my source code now I will release it morning tomorrow…

Tunnel Effect
This is a pseudo version of the classic tunnel effect. I say “pseudo” because it isn’t really the tunnel effect without actually looking like you are going down the tunnel.
This is actually the poor mans tunnel effect, because it leave off the texture step which give it a tunnel effect feel. I may add it if there is enough call for it, however, I don’t see the need to add anymore than what is required.
If you feel it would add to the experience I will add it, just post a comment asking for it. Otherwise, I’ll just assume it isn’t needed…
Downloads
- file:
tunnel.zip [18.56kb]
Category: OpenGL
download: 1343 - file:
tunnelsrc.zip [11.29kb]
Category: OpenGL
download: 1264

Sphere Demo
This is a quick demo in which there are 3 floating sphere within a larger sphere. I switch between wireframe and solid to added effect.
There are some demos that really need music to work, but I really like this one with or without music.
Downloads
- file:
sphere.zip [18.52kb]
Category: OpenGL
download: 991 - file:
spheresrc.zip [10.52kb]
Category: OpenGL
download: 960

Sliding Images
This is the menu backdrop to my newest project ‘Mind Attack’.
It is a farily simple technique where you only display the background image through randomly placed rectangles of on the screen.
It gives a window effect whereby you only see parts of a picture at one time. I have the background picture rotating in the background—The background texture was created using my ‘Generate Texture’ demo below.
Downloads
- file:
Slidingimages.zip [172.13kb]
Category: OpenGL
download: 680 - file:
Slidingimagessrc.zip [158.79kb]
Category: OpenGL
download: 649

Break Effect
This is just one of those effects that I liked to use with an opening logo screen. We just texture the individual triangles that make up the picture as a whole and then send the triangles out in random directions when the space button is pressed
This is a gateway to other effects that can be done with pictues. Another idea that can be done with this technique is rotate the individual triangles with another picture written on the back of them.
Downloads
- file:
Imagebreaking.zip [175.96kb]
Category: OpenGL
download: 642 - file:
Imagebreakingsrc.zip [158.30kb]
Category: OpenGL
download: 594

Sunset / Sunrise Effect
Effects Used:
- Textured Sky Sphere
- Multi-texturing of water
- Billboarding
- Reflection techniques
I originally used this for a screen saver application in which the “Sunset”, “Sunrise” was based on the curent time. I had to speed things for just this release, however, I think it has some benefits when run at 24x speed. I imagined an island and a plam tree might just make this the perfect screen saver, but I leave that up to the reader.
Downloads
- file:
SkyDemo.zip [228.98kb]
Category: OpenGL
download: 1147 - file:
SkyDemosrc.zip [217.87kb]
Category: OpenGL
download: 1099

Simple Landscape
This demo just randomly creates terrian and with a gently tide. To build this terrain I use various intersection and circle iteration methods.
Basic Intersection Idea:
- Draw a line across the terrain so it is split into two halves.
- Now raise one half and lower the other half.
- Do this 1000 times and you’ll get a jagged surface.
Basic Circle Method:
- Pick a point and a radius on the terrain.
- Raise the terrain out in a bubble shape to match its radius
- Do this 100 times and you’ll get a nice mountain
Now you want to smooth out the terrain to give it a realistic feel. Just remember that this isn’t suitable, as it stands, for any games. For a game you might want not want to process height data on the fly (use a hightmap instead).
Downloads
- file:
Landscape.zip [428.01kb]
Category: OpenGL
download: 746 - file:
Landscapesrc.zip [408.59kb]
Category: OpenGL
download: 636

Water Droplet
Downloads
- file:
WaterDroplet.zip [102.26kb]
Category: OpenGL
download: 1000 - file:
WaterDropletsrc.zip [88.70kb]
Category: OpenGL
download: 799

Texture Generation
Downloads
- file:
gentexture.zip [29.79kb]
Category: OpenGL
download: 733 - file:
gentexturesrc.zip [16.04kb]
Category: OpenGL
download: 752

Pulse Effect
Downloads
- file:
pulse.zip [20.37kb]
Category: OpenGL
download: 695 - file:
pulsesrc.zip [11.94kb]
Category: OpenGL
download: 677

Particles!
Downloads
- file:
particles.zip [28.55kb]
Category: OpenGL
download: 776 - file:
particlessrc.zip [18.14kb]
Category: OpenGL
download: 767

Hump Effect
Downloads
- file:
humpsrc.zip [687.16kb]
Category: OpenGL
download: 469

Camera Work
Downloads
- file:
kiosk.zip [360.84kb]
Category: OpenGL
download: 528
- Comment [1]

Bar Wave
Downloads
- file:
drawbar.zip [19.05kb]
Category: OpenGL
download: 716 - file:
drawbarsrc.zip [12.43kb]
Category: OpenGL
download: 11

Matrix Demo
Downloads
- file:
matrix.zip [66.91kb]
Category: OpenGL
download: 711 - file:
matrixsrc.zip [54.58kb]
Category: OpenGL
download: 628

Grid Demo
Downloads
- file:
grid.zip [24.64kb]
Category: OpenGL
download: 800 - file:
gridsrc.zip [13.58kb]
Category: OpenGL
download: 13

Drawing Text
This is just a simple demo that draws “text” to the screen. Nothing overtly impressive about it, except for the fact it is TEXT ON THE SCREEN!
You can have the greatest plot for a game but without a method to push this to the user all you’ve really got is images on the screen. Hell, my simple menu system below is nothing really without a method to notify the user about what the buttons do.
I really need to update this with more effects. However, if you’re really interested I believe Nate Robbinson(sp?) wrote an open source text drawing class that is very useful.
Downloads
- file:
DrawText.zip [68.14kb]
Category: OpenGL
download: 650 - file:
DrawTextsrc.zip [12.79kb]
Category: OpenGL
download: 760

Interference
I always like those demo’s with the interference effect. You know those demo’s the one that tried to pull in a grittier feel to it. This isn’t to be confused with the “dirt” on the lens or the TV static effects. This effect captures the feeling that the signal was just making it to the users computer before it fades away.
Well, I decided to go for the effect in my second demo. I hope you like it. As always source is included – do with it what you will.
Downloads
- file:
Interference.zip [18.51kb]
Category: OpenGL
download: 713 - file:
Interferencesrc.zip [12.03kb]
Category: OpenGL
download: 757

First Demo - Simple Menu
My first OpenGL demo was a simple menu. It is written in C/C++ and creates a seies of small, dragable windows. Each window also has at least one “frame” and “button”. The buttons are clickable and change the alpha of the window (making it less or more visible depending on which is clicked).
Background
At the time I had been delving into x86 assembly on the Win32asmcommunity.net forums – My handle was Sliver and I was a fairly active member. I had been using directx for a couple of years at that point, however, I stayed away from opengl (unfairly) because I thought it was not at powerful.
I have since done a 180 and now use OpenGL almost exclusively—except for Direct Sound, which I still prefer over fmod for certain things.
This was also a port from the menu written by Jan Horn’s delphi example. I didn’t know delphi at the time so that made this more challenging to port.
Sadly, I found that Jan Horn passed away 06 June 2002. This really did inspire me to continue the tradition of great open source demo’s. I don’t know who you were Jan, but thanks.
Downloads
- file:
menu.zip [35.69kb]
Category: OpenGL
download: 1098 - file:
menusrc.zip [19.99kb]
Category: OpenGL
download: 1086
- Comment [1]
Walter Reid