It was 3am...

posted in Not dead...
Published February 25, 2007
Advertisement
It was 3am... I was bored... so I decided to attack a project to kill sometime and let me avoid doing any real work for a while...

I basically wanted to create something like an old skool 90s demo type thing, no real point to it, well it let me get my 2D on which will be good practise for when I attack what I should have been doing over the weekend [grin]

So, a few hours later, mostly taken up with pondering what to add and how to do it, The Parallax Project was, more or less, completed.

I say 'more or less' because it's known to break on at least one Vista machine and as I currently don't have Vista I can't point the blame anywhere other than in the direction of poor OpenGL drivers (very poor infact as I'm pretty sure this project uses nothing more than OpenGL 1.1, maybe 1.2 at the most...).

Anyways, to make an old skool 90s style demo, which required a few things;
- A scroll text
- Some kind of scrolling background
- Some other stuff scrolling around

The scrolling background kind of apes something I saw a while ago in an Atari ST demo, were the two background images would cross fade between each other. The images are various ones I found during my trawling of /b/ over the last few weeks.. my 4chan channel is a little strange.

The scroll text, it was infact pretty easy to write. There was easier back in the day when everything was a fixed width character, however applying a bit of brain power the problem became easy to solve; all we need to do is track when each character falls off the left of the screen and then set the postion back to the left and move up to the next character as the head of the text.

The 'other stuff scrolling around' was covered with two things;

The first of these were the 'raster' or 'copper' bars; again back in the day these would have been done differently, as it is I've just got some textured quads moving in a sin pattern up and down the screen, I quiet like the effect over all, certainly when blended in with some of the background images.

The final 'othe stuff scrolling around' is covered by the effect to which the project gets it's name; the parallax scroll. The idea is to give an idea of depth by moving different layers at different speeds. It's often used to good effect in old 2d games and cartoons, although the best application I've ever seen was in Final Fantasy 8. This isn't the best ever but it fits.. maybe I'll make a better one another day...

There are a few credits to throw around for this;
Bitmap font generator from Angelcode
Code to load and decode it by Promit in this forum post on gamedev.net
Music by Big Jim / Valhalla
Sound system is the BASS Library

Compiled version
Source code version

Do with as you will.
To compile you'll need
Boost
OGLWFW
GTL
BASS

Any feedback on if it breaks or not would be nice.. certainly from Vista peoples [grin]

edit: corrected a couple of typos in some urls, cheers Deranged [grin]
0 likes 3 comments

Comments

Deranged
Works pretty well, though I noticed some cracks between the background image tiles vertically sometimes, no big deal though.

Btw, your compiled version link is messed up, you left a '"' at the end of the link on accident, and your BASS link is missing an http:// ;)

EDIT: damn that text moves slow.. took forever to play through =P
February 25, 2007 05:43 PM
Julian90
Looks quite nice and runs fine up until I try to exit but when I exit with esc the desktop is shrunk and tiled over the screen with the mouse being drawn only once and clicking in the wrong spot.

If it matters the graphics card is: Intel 910GL express chipset

Edit: forgot to mention the OS is Windows XP
February 25, 2007 11:32 PM
Jason Z
Heh, this reminds me of a recent episode of 'Lost' when Sawyer and Kate are rescuing Karl from one of the Others compounds. He is being brainwashed and is strapped to a chair with loud music playing and your demo, erm.. a brainwashing demo is being projected onto the wall... [grin]

Its pretty cool though. It worked fine for me, XP P4 GF6200.
February 26, 2007 05:15 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

Advertisement