Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: Jim on December 24, 2013

Title: [XMAS_2013] Xmas Tree
Post by: Jim on December 24, 2013
Here's (http://members.iinet.net.au/~jimshaw/webgl/xmas.html) my xmas demo.

It's my first attempt at webgl, so be nice :)

Unfortunately it's plagued by drawing order issues and needs a bit of a restructure to sort that out.

Works on IE11, FF, Chrome.  You only get music if you're using Chrome or a nightly of Firefox.

I used gl-matrix.js to do all the geometry, and chiptune.js/libxmp.js to play the sound.

Cheers, and Merry Christmas everyone!

Jim
Title: Re: [XMAS_2013] Xmas Tree
Post by: combatking0 on December 24, 2013
Nice spiral Christmas tree and I've noticed the music is procedural too. :xmas:
Title: Re: [XMAS_2013] Xmas Tree
Post by: padman on December 24, 2013
Nice one! And I even got music in FF. Hurrah!  :xmas:
Title: Re: [XMAS_2013] Xmas Tree
Post by: ninogenio on December 24, 2013
i get the music too!

nice first play around jim. i have been having a good look at web gl these past few days, is it very different too coding in c/c++ targeted at windows?

anywho merry christmas mate  :cheers:
Title: Re: [XMAS_2013] Xmas Tree
Post by: Rbz on December 24, 2013
Works fine here on FireFox!
WebGl is also on my list to try out someday :)
Title: Re: [XMAS_2013] Xmas Tree
Post by: Jim on December 24, 2013
Quote
is it very different to coding in c/c++ targeted at windows?
WebGL is basically OpenGL ES 2.0 with a slightly different syntax and no pointers.  So a PITA but also really powerful.

I've come to love javascript over the last year, it's an amazing language.  As simple as BASIC but with some great quirks.  The performance increases recently are incredible.  Also the libxmp.js I am using is straight up compiled from the original C code to js.  How funky is that?

Glad it's working OK for you all.

Happy Xmas,

Jim
Title: Re: [XMAS_2013] Xmas Tree
Post by: ninogenio on December 24, 2013
i have actually wrote a few small test apps tonight in webgl and i am floored at the simplicity of it all. i just ripped some stuff from one of my projects converted in notepad too java/html. c & p'd the glmatrix code into a js file next too my html, and *bam* job done  :)

i imagine debugging will be a nightmare though.. cheers jim  :cheers:
Title: Re: [XMAS_2013] Xmas Tree
Post by: Raizor on December 26, 2013
Cool stuff Jim! I've not played with WebGL yet, but it looks pretty neat :) K++
Title: Re: [XMAS_2013] Xmas Tree
Post by: Kirl on December 31, 2013
Cool webGL demo, nice fluffy tree and I love the tune!  :clap: