3D Christmas tree (aka the “Merry Christmas” post)

3D, Math, Particles, actionscript 3

Hi there,

lot of time without posting some code. I have been working three months on a Disney project, which will be on-line soon and makes me very proud, but almost drained all of my energies.

Here is my Christmas card/gift for my readers, in less than 80 lines of code. Obviously with source code. The lights are vector graphics in the attached FLA’s library to make it easy to customize or animate.

Nothing too fancy here about the code, just some trigonometric math. You can have a look at the correctOrientations function which can be interesting to avoid lights deformations due to the FP10 native 3D.
Download source code.

I wish you all great winter holidays, and an awesome beginning of 2010!
And make me smile by leaving a greetings comment ;)

Watch the running example:
Click to start (mouseX affects rotation)
xmas2009

5 Responses

  1. jeanphilippe  •  December 24, 2009 @2:15 pm

    hi,
    it’s really nice but source don’t run…

  2. Pierluigi Pesenti  •  December 24, 2009 @2:50 pm

    For me works well. What kind of error are you given?

  3. Synercoder  •  December 24, 2009 @8:50 pm

    Very nice done! RESPECT and a merry christmas

  4. kires  •  December 27, 2009 @2:18 pm

    Cool! this is very interesting and really good effect. Cheers

  5. Darrin Massena  •  December 28, 2009 @7:51 pm

    Lovely!

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>