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

Posted on 1575 days ago by Walter Reid
Walter Reid

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.

Mind Attack - 1

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

Posted on 1617 days ago by Walter Reid
Walter Reid

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.

Tunnel Action!

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

Sphere Demo

Posted on 1617 days ago by Walter Reid
Walter Reid

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.

Rotating sphere's

There are some demos that really need music to work, but I really like this one with or without music.

Downloads

Sliding Images

Posted on 1617 days ago by Walter Reid
Walter Reid

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.
Sliding Images

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

Break Effect

Posted on 1619 days ago by Walter Reid
Walter Reid

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

Break Image

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

Sunset / Sunrise Effect

Posted on 1619 days ago by Walter Reid
Walter Reid

Effects Used:

  • Textured Sky Sphere
  • Multi-texturing of water
  • Billboarding
  • Reflection techniques

Sunset Demo

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

Simple Landscape

Posted on 1619 days ago by Walter Reid
Walter Reid

This demo just randomly creates terrian and with a gently tide. To build this terrain I use various intersection and circle iteration methods.

Simple Landscape

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

Water Droplet

Posted on 1619 days ago by Walter Reid
Walter Reid Water Droplet

Downloads

Texture Generation

Posted on 1619 days ago by Walter Reid
Walter Reid Simple Texture Generation

Downloads

Pulse Effect

Posted on 1619 days ago by Walter Reid
Walter Reid Pulse in action

Downloads

Particles!

Posted on 1619 days ago by Walter Reid
Walter Reid Particles of Light

Downloads

Hump Effect

Posted on 1619 days ago by Walter Reid
Walter Reid Kitty on Mine go... BOOM

Downloads

Camera Work

Posted on 1619 days ago by Walter Reid
Walter Reid A little desk with animated computer screen

Downloads

Bar Wave

Posted on 1619 days ago by Walter Reid
Walter Reid Draw Bars

Downloads

Matrix Demo

Posted on 1619 days ago by Walter Reid
Walter Reid Matrix Demo

Downloads

Grid Demo

Posted on 1619 days ago by Walter Reid
Walter Reid Grid Demo

Downloads

Drawing Text

Posted on 1619 days ago by Walter Reid
Walter Reid

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!

Some Simple text

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

Interference

Posted on 1619 days ago by Walter Reid
Walter Reid

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.

Interference

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

First Demo - Simple Menu

Posted on 1619 days ago by Walter Reid
Walter Reid

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).

A Simple Menu

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