• Welcome to Dark Bit Factory & Gravity.
 

First win32 intro

Started by shinmai, August 20, 2014

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

shinmai

I have a horrible attention span, and always need something to work on when I lose my concentration on the thing I'm *ACTUALLY* working on, and the last few days I've been tinkering with this little intro, based on some three.js WebGL experiments of mine half-assedly converted to OpenGL & C++, built on some minimal OpenGL template I wrote way back in high school like 12-13 years ago, that I stumbled upon when going through some old backups.

It's got a sine scroller with Shockwave's excellent bitmap font realized as simple quads, fake rasterbars (quads), a starfield and a curved large letter "display" in the background (some more quads :P), it uses clinkster by Blueberry/Loonies for music (actually, because I was too lazy to download an older version of Renoise to get compatible song files for the converter clinkster uses, I used one of the example songs, Traskogen by Maytz) and is linked with crinkler.

It's currently 4646 bytes, but if I remove the hacky preload message that displays while clinkster is rendering the song, remove the window message handling (that I added because I kept accidentally alt-tabbing out of the intro and got tired of the "Program became unresponsive" dialogs :P) and enable some of the more aggressive crinkler settings (float trunkation, unsafe imports etc) I can get it quite close to 4K. I'm quite confident if I remove, organize and optimize some other stuff (especially the rasters going around the scrolltext, that's some quick and dirty code) I could get it there.
I'm thinking I'll try and do just that as an exercise (and to get things to do when I start procrastinating again).

Hotshot

Very good :) I like the rasterbar and Letters in background :)

Under 5k?  Nice one!  :clap:

Well Done for your First Demo :)

Gore Motel

Looks great, I like it!

Knurz

Really nice one for your first intro... the music is quite addictive :)
Remember what the dormouse said: Feed your head

Kirl

Had to turn off chrome's malware and phising protection because it refused to download. I always wonder why some demo's trigger browser paranoia while others don't?

Unfortunatly it hangs at the precalc screen (win64), which you mentioned is a bit hacky, so I'll await the restructured 4k version, good luck! :)
www.kirl.nl
Challenge Trophies Won:

shinmai

Quote from: Kirl on August 21, 2014
Unfortunatly it hangs at the precalc screen (win64), which you mentioned is a bit hacky, so I'll await the restructured 4k version, good luck! :)
It's actually "hacky" in the sense that I just use the scroller function to display text, instead of a separate dedicated (and center aligned :P) function.
It might not actually hang, clinkster is quite CPU heavy and takes a good while to render the music (on my i7 it takes just under 15 seconds), so if you have a slower CPU you might need to be quite patient.

I should run the music generation in a separate thread and maybe run the starfield AND the precalc-text while it does it's thing so it's clear it hasn't just crashed :P

Kirl

Ah yes, seems I was too impatient...  :whack:

Very nice, especially for a 1st, liked it a lot!  :clap:
Good luck getting it down to 4k, nearly there already.
www.kirl.nl
Challenge Trophies Won:

ttemper

great 1st win32 intro, well done.

Faun

So it's not supported on x64? Running Windows 8.1 x64 and it froze upon start.  :-\
"If car technology had advanced as quickly as computer technology, a Dodge Viper would cost $3.99, get a million miles per gallon, and explode twice every year."

Kirl

Faun I had the same thing, but if you give it a good couple of seconds it may become responsive again.
www.kirl.nl
Challenge Trophies Won: