• Welcome to Dark Bit Factory & Gravity.
 

[XMAS_2013] Xmas Tree

Started by Jim, December 24, 2013

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Jim

Here's 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
Challenge Trophies Won:

combatking0

Nice spiral Christmas tree and I've noticed the music is procedural too. :xmas:
You are our 9001st visitor.
Challenge Trophies Won:

padman

Nice one! And I even got music in FF. Hurrah!  :xmas:
Challenge Trophies Won:

ninogenio

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:
Challenge Trophies Won:

Rbz

Works fine here on FireFox!
WebGl is also on my list to try out someday :)
Challenge Trophies Won:

Jim

Quoteis 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
Challenge Trophies Won:

ninogenio

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:
Challenge Trophies Won:

Raizor

Cool stuff Jim! I've not played with WebGL yet, but it looks pretty neat :) K++
raizor

Challenge Trophies Won:

Kirl

Cool webGL demo, nice fluffy tree and I love the tune!  :clap:
www.kirl.nl
Challenge Trophies Won: