Author Topic: First win32 intro  (Read 6403 times)

0 Members and 1 Guest are viewing this topic.

Offline shinmai

  • ZX 81
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
First win32 intro
« on: August 20, 2014 »
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).
« Last Edit: August 20, 2014 by shinmai »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: First win32 intro
« Reply #1 on: August 20, 2014 »
Very good :) I like the rasterbar and Letters in background :)

Under 5k?  Nice one!  :clap:

Well Done for your First Demo :)

Offline Gore Motel

  • C= 64
  • **
  • Posts: 45
  • Karma: 18
    • View Profile
    • Gore Motel
Re: First win32 intro
« Reply #2 on: August 21, 2014 »
Looks great, I like it!

Offline Knurz

  • Atari ST
  • ***
  • Posts: 121
  • Karma: 25
    • View Profile
    • GitHub Repository
Re: First win32 intro
« Reply #3 on: August 21, 2014 »
Really nice one for your first intro... the music is quite addictive :)
Remember what the dormouse said: Feed your head

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1219
  • Karma: 230
    • View Profile
    • Homepage
Re: First win32 intro
« Reply #4 on: August 21, 2014 »
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:

Offline shinmai

  • ZX 81
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: First win32 intro
« Reply #5 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

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1219
  • Karma: 230
    • View Profile
    • Homepage
Re: First win32 intro
« Reply #6 on: August 21, 2014 »
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:

Offline ttemper

  • Amiga 1200
  • ****
  • Posts: 267
  • Karma: 7
    • View Profile
Re: First win32 intro
« Reply #7 on: August 23, 2014 »
great 1st win32 intro, well done.

Offline Faun

  • ZX 81
  • *
  • Posts: 15
  • Karma: 6
    • View Profile
Re: First win32 intro
« Reply #8 on: August 31, 2014 »
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."

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1219
  • Karma: 230
    • View Profile
    • Homepage
Re: First win32 intro
« Reply #9 on: August 31, 2014 »
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: