Skip to content

WebGL version of Glass

I’ve just posted my WebGL port of our old 64k intro, you can watch it online at: http://possan.se/junk/webglass/index.html (tested in chrome 10.0.648.6, build 72589 on a mac) - drill down the sourcecode at github: http://github.com/possan/webglass – or, if you’re still using windows, check the original thing, it’s only 64k you know :)

Some parts are a tad slow due to the fact that it’s using old glBegin/glEnd calls, and one effect was using too many of them per frame so i removed it, but the overall experience is the same, even the lovely music by h-ecs is there (using a html5 audio-tag).

The entire package is around 3.5mb with the music taking up 3.3 of those, so the javascript version is roughly 55 times bigger than the original thing, or 4-5 times if you exclude the music…

Feel free to contact me if you have any questions, about the code, the effects or whatever…

  • Cozmicboy

    aaaah the memories, had to go thru all our old crap. aaaaaaaaah the memories..

  • Alvaro Segura

    Very good! Adding an additional audio source in ogg format would be nice, so Firefox doesn’t stay silent. (works otherwise in FF 4 beta)

    • Anonymous

      good idea, i’ll try to do that this weekend

  • http://www.facebook.com/nordmark Daniel Nordmark

    Riktigt grymt!
    Funkar bra även på windows (senaste chrome). ;)

  • nemo

    Does the music really need to be so large? What if you did a check for Audio API and used that to synth it instead, if present?
    Wouldn’t that be closer to the original?

    • Anonymous

      i’m working on a javascript module player now, that should take the music down to it’s original file size… around 50kb or so, and that mozilla extended audio api is exactly what i’m looking for, right now i use a glitchy html5-audio tag hack for generating the music

  • nemo

    I notice the music uses mp3 instead of ogg, so no Firefox support – shame. Should be ogg with mp3 fallback src.
    Actually, should be audio api, which even Chrome has an alternate implementation of, now.

  • Brandt

    i just downloaded the sources from github….it does not work … ;-((

    yours sincerely
    markus


Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0