View Full Version : fractal tree

05-05-2004, 08:09 PM
Hi does any one have good information (source code) on drawing a 3D fractal tree?


05-05-2004, 10:32 PM
nVidia had a demo called TreeMark or something like that, for GF1-2 cards. It's still avabile on their site with source code.

05-06-2004, 11:32 AM
Thanks DarkWind. it is sure a very nice tree. A little too advance for me. :)

05-07-2004, 12:08 PM
I like the nvidia tree demo. Still looks neat to me. :D Too bad they are using the slowest possible way to render as i'm only getting 7 million poly/sec on my GeForce FX 5600 Ultra. Of course I can always fix that once I get the code to compile.

Here is another link to a pretty cool tree generator that is also open source. http://members.chello.nl/~l.vandenheuvel2/TReal/ I doubt the code is any simpler to understand than nvidia's tree demo but it's still a nice program.


05-07-2004, 01:34 PM
good paper on tree generation (used by TReal if i remember correctly (and many others as well)): 'Creation and Rendering of Realistic Trees' by Jason Weber & Joseph Penn ... looks like there is a copy available here (http://www.cs.duke.edu/education/courses/fall02/cps124/resources/p119-weber.pdf)

Not really fractal, but makes pretty nice trees, if you don't mind high poly counts :) It isn't too hard to tune them down to more useable ranges tho.

05-11-2004, 06:52 PM
Your question is not about how to draw a tree, but how to generate a tree, so it does not have anything to do with OpenGL ;) .

Creating such a tree is a fairly simple recursive algorithm: there is a line of a certain length and direction, at the end of the line, a random number of new lines are created which are smaller than the original line and which direction is rotated a little bit, and so on, and if a line's length is below a certain threshold value, you call it a leave. Varying the parameters of this (number of new lines, length reduction factor, rotation angles) will give a lot of different vegetation.

05-11-2004, 07:34 PM
GScape appears to have had a nice, procedural tree implementation. . . but it seems to have disappeared. All that's left of the site (www.gscape.com) is the documentation: http://www.gscape.com/Docs/

OT: Anyone know of a mirror to the editor? :)