Help - Search - Members - Calendar
Full Version: Growing Tree
Zymic Webmaster Forums > Web Design & Development > Graphic Design > Animation (Flash, GIFs, etc)
bezz

Growing Tree

Just a little project I threw together this morning. The source code will be released with commenting soon.
Sickness
really amazing, the tree grow different way every time
Ed
Impressive. cool.gif
Cmain
Very neat. Nicely done.
XyberForce
Impressive indeed.

EDIT: Did you use random vars to make it do that?
Jack
Would certainly be a unique tutorial, pretty impressive.
bezz
Thanks for the positive feedback everyone.

QUOTE(XyberForce @ Oct 26 2007, 05:51 PM) *
Impressive indeed.

EDIT: Did you use random vars to make it do that?

It uses a programming technique called recursion, where a function calls itself. Each new branch is created off of its root branch at a 30 degree maximum variance and its id is stored into the root branch's array of child branches. With each frame, the dree is redrawn starting with the very root branch, and then each of it's children are processed, recursively until there are no more child branches.
Jack
Apart from a tree, what other creative things could you use this method for?
bezz
QUOTE(Jack @ Oct 27 2007, 09:36 AM) *
Apart from a tree, what other creative things could you use this method for?

Well, the method creates trees, not always actual trees of course. It could be applied to family trees, tracking the spread of a file (peer to peer), or really just about anything that spreads and branches off.
XyberForce
Cool, like for optimized random flash headers? That would be cool, I can imagine some nature website using a header like that. But with more spiced up graphics, of course.
EMOruffino
i could use this, not for a tree, but maybe some grunge lines.... wink.gif
llamafier
So cool watching it grow. tongue.gif
IamShipon1988
Its a very nice flash, simple but nice. The problem is, a person like me would get really irritated at the waiting part of it.
MrCracker
For some reason my leaf doesn't grow.. only thing it does is switch the leaf it starts with with another one.. but as for growing my tree is dead... don't know why
Cmain
QUOTE(MrCracker @ Oct 28 2007, 08:22 AM) *
For some reason my leaf doesn't grow.. only thing it does is switch the leaf it starts with with another one.. but as for growing my tree is dead... don't know why


You have to wait for it to grow...
bezz
Source code released! Check it out:
http://www.bezzmedia.com/swfspot/samples/i...using_Recursion
iamandy
all your flash work never fails to impress me Bezz!
forbes89
Bezz that link didnt work for me... dry.gif lol

I am very interested in that tree and would like to see how you did it, but that link wont come up in my browser
akila
I wish I got your brain and skills. lolz
XyberForce
hay Bezz, I think this guy used your tree for a pre-loader!

http://www.newgrounds.com/portal/view/408967
bezz
QUOTE(XyberForce @ Nov 8 2007, 10:44 PM) *
hay Bezz, I think this guy used your tree for a pre-loader!

http://www.newgrounds.com/portal/view/408967


Nah, that's something completely different. Looks cool. The movie is amazing.
XyberForce
Oh, well I guess the math concepts were practically the same, I'm guessing he used a movie clip and duplicated it>faded. Then just gave the command to keep duplicating until the strings = zero.

Har har I'm an actionscript math newb please forgive me.
gege
Hello Bezz,

Amazing source and fascinating to watch. Do you think you could make one with additional wind blowing in the branches, or give us a hint on how to do this?

Thank you in advance.

Best,
Gege
bezz
You could have a random variance on the angle at each frame to simulate wind. Give the thinner branches a larger random variance. The stored angle should always stay the same, this is just a temporary variance on the angle.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.