My OpenGL demos... currently I don't release the entire source code, just because it's so darned messy most of the time. However, if you are curious about something, feel free to post in my forums and I'll be happy to enlighten you.
Fire
Here's my fire demo. It's only a single poly, with some OpenGL magic applied, so this method might be practical for normal rendering in a realtime environment. It loads a fire texture that I made (which, consequently, isn't very good), then applies a procedurally generated texture to it using GL_TEXTURE_SHADER_NV.
Since there isn't really much to this demo, including the fact that there are no controls besides the quit button, I just made videos for ya'll, saving me the trouble of maybe compiling a linux version. The first video is of the first version, the second one is after some improvements.
Fire demo #1 (512KB, DivX)
Fire demo #2 (1.2MB, DivX)
Shatter
Shatter is an imitation of another demo I found while browsing the net. Basically, the demo displays a picture, and when you push a button, it shatters into a bunch of little pieces. Since I thought it was a little dull as far as OpenGL technique goes, I also added a weird blur effect by copying the screen, downsampling it, and blending it over the top. See the readme for instructions.
Download Shatter
|