Author Topic: [XMAS_2013] Xmas Tree  (Read 3352 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
[XMAS_2013] Xmas Tree
« on: December 24, 2013 »
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
« Last Edit: December 25, 2013 by Jim »
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [XMAS_2013] Xmas Tree
« Reply #1 on: December 24, 2013 »
Nice spiral Christmas tree and I've noticed the music is procedural too. :xmas:
You are our 9001st visitor.
Challenge Trophies Won:

Offline padman

  • Senior Member
  • Pentium
  • ********
  • Posts: 990
  • Karma: 260
    • View Profile
Re: [XMAS_2013] Xmas Tree
« Reply #2 on: December 24, 2013 »
Nice one! And I even got music in FF. Hurrah!  :xmas:
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: [XMAS_2013] Xmas Tree
« Reply #3 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:
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2748
  • Karma: 492
    • View Profile
    • http://www.rbraz.com/
Re: [XMAS_2013] Xmas Tree
« Reply #4 on: December 24, 2013 »
Works fine here on FireFox!
WebGl is also on my list to try out someday :)
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [XMAS_2013] Xmas Tree
« Reply #5 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
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: [XMAS_2013] Xmas Tree
« Reply #6 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:
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1153
  • Karma: 174
    • View Profile
Re: [XMAS_2013] Xmas Tree
« Reply #7 on: December 26, 2013 »
Cool stuff Jim! I've not played with WebGL yet, but it looks pretty neat :) K++
raizor

Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1215
  • Karma: 230
    • View Profile
    • Homepage
Re: [XMAS_2013] Xmas Tree
« Reply #8 on: December 31, 2013 »
Cool webGL demo, nice fluffy tree and I love the tune!  :clap:
www.kirl.nl
Challenge Trophies Won: