Title: TreeMaker Post by: Kali on November 01, 2012, 06:24:45 AM I love making trees so I wrote this simple Fragmentarium script you can download here (http://www.fractalforums.com/fragmentarium-b210/treemaker/msg53716/#msg53716)
It is based on my always almost finished KDIFS script ;D - For the animation I used Tglad's idea for fractally animating fractals. https://dl.dropbox.com/s/6j1eah1gajynnm4/tree.swf Title: Re: TreeMaker Post by: taurus on November 01, 2012, 10:54:20 AM Man, you're a never ending source of innovation, Kali. :ok:
the icing on the cake would be a real seamless loop. Anyhow fantastic job! Title: Re: TreeMaker Post by: KRAFTWERK on November 01, 2012, 11:20:20 AM This is so nice, love the movement too! :beer:
Title: Re: TreeMaker Post by: Kali on November 01, 2012, 03:22:00 PM Thanks for the comments, guys!
the icing on the cake would be a real seamless loop. Anyhow fantastic job! Yep, but I guess is a bit difficult to do... the movements are fractal, each generation of branches oscillates at different rates (the speed and amplitude are scaled at each iteration). I didn't do the math, but I intuitively think that the tree never (or almost never) will return to the same exact starting configuration. One solution could be to smoothly force the initial position of the branches, using a buffer to pass the position data between frames. Another good option is to fade in and out the oscillation amplitude at the start and end of the loop, so the tree alternates between being still and being moved by a gust of wind. Title: Re: TreeMaker Post by: weavers on November 01, 2012, 03:45:09 PM _______________________________________________________________________________________________________________________ _____ Greetings and Salutations Master Kali The year of the 12 dies, in it much have you done that pleases us, Master! Continue in the grace of the force Master Come wave me, come wave me, come tree be I. Live I come touch for I am the tree of life! Yes, in the spring fruits will I to you will give, in the summer I will shade you from the hot sun, enjoy my shade, in the winter, when ice cold threaten your warm heart, fear not, born to give and serve you me, to you take me, my child of Fractals, my wood will keep thee warm, so another day you will see, and another child of thee will be born, So in the beginning, So in the end, when when when, the nasty wind blows, fear not, hold on to me! When the floods, fear not, come climb up to my top, and if the storms wave overcome me and rip my roots out of the soil, you will not drown my child, take hold of my body and float on me fractal to fractal be us! In the beginning in the end infinitely Thanks master teacher The Fractal forums the possibilities are infinite . Title: Re: TreeMaker Post by: cKleinhuis on November 01, 2012, 07:16:16 PM wonderful, the movement gives a great impression, of a naturally blown tree, lol i hope you have params for the strength ;)
Title: Re: TreeMaker Post by: Syntopia on November 01, 2012, 07:38:11 PM Great stuff as usual, Kali.
One idea: create a field of trees using domain repetition and seed variation, see e.g.: http://alice-yang.com/cis565/FinalPresentation.pptx Shouldn't be that much slower. Title: Re: TreeMaker Post by: hobold on November 02, 2012, 01:18:49 AM the movements are fractal, each generation of branches oscillates at different rates (the speed and amplitude are scaled at each iteration). I didn't do the math, but I intuitively think that the tree never (or almost never) will return to the same exact starting configuration. Seems to me that the overall movement is analogous to a superposition of overtones, i.e. a sum of sine waves of increasing frequency and decreasing amplitude. So one way to enforce an overall periodic animation would be to ensure that all participating wavelengths divide the overall animation length without remainder.Title: Re: TreeMaker Post by: Kali on November 02, 2012, 02:14:40 AM Thanks for the comments!
@Syntopia: Nice idea, I'll give it a try @hobold: I see what you mean, I guess that it could be done by choosing specific scale factors to somehow harmonize the movements, but maybe the result is a less chaotic and less realistic movement? Title: Re: TreeMaker Post by: Kali on November 02, 2012, 04:49:53 AM For some reason I had minor DE problems using mod function for tiling (i.e. missing parts when viewing from certain angles), so I tried with fract function in this way:
p.xy=fract(p.xy/c.xy)*c.xy-c.xy/2; and works fine: (https://dl.dropbox.com/s/brcvnv8yew4kr1h/treedomain.jpg) Now I'll work on the variations... Title: Re: TreeMaker Post by: hobold on November 02, 2012, 12:04:00 PM but maybe the result is a less chaotic and less realistic movement? No promises. One way to find out. :)Title: Re: TreeMaker Post by: Sockratease on November 02, 2012, 12:10:46 PM Looking Great!
Now I'll work on the variations... Yup, it needs some apples. And a couple people. And a serpent... No, wait - that's been done before and we all know how that turned out O0 Title: Re: TreeMaker Post by: taurus on November 02, 2012, 12:34:17 PM @hobold: I see what you mean, I guess that it could be done by choosing specific scale factors to somehow harmonize the movements, but maybe the result is a less chaotic and less realistic movement? don't know much about the underlying math, but i think I'm a skilled observer and in front of my office window are various trees. So here some of my obsevations about slightly moving trees in the wind:
When i look at your animation, the difference of movement between inner thicker structures and outer thinner structures is a bit weak. the small branches move much faster and at a higher amplitude than the big ones in reality. This makes your animation still look a bit like rubber oscillation. I hope you forgive my that unscientific wandering from the subject :dink: Title: Re: TreeMaker Post by: Kali on November 02, 2012, 01:52:52 PM @Sock: Haha... no serpent, ok... but implementing some apples should be very easy, thanks for the idea :) @Taurus: Thanks for your observations. The fact is that this animation is just the natural consequence of oscillating the rotation angle of the branches, scaling the rate and amplitude of movements in the same way the size of the branches is scaled, so even I didn't have to think on how a real tree moves to produce this. But off course some adjustments can be included for trying to approximate better the real movement, so I'll take your advice :dink: |