I made my first tree generator!

So I got a lot of extra time because of how ahead I got in English for having read the needed chapters yesterday (a whole hour and a half), so I went and worked on my first tree generator.

I am really happy how it turned out. I basically based it off of this model by leates.

Used in:

2 Likes

Nice! I’ve always wanted to make a tree generator but I never know where to start :emo-angst:

I haven’t looked at it, but I just find it nerdily-humerours to joke about the rotation of the leaves.

-- generate tree bark
-- generate leaves
-- loop leaves
leaf.CFrame = leaf.CFrame * CFrame.Angles(math.random(),math.random(), math.random())

Just because that’s what it appears like at first glance :stuck_out_tongue:

Nice trees. I think that this tree generator is what got me in these forums (and some friends making a post about it).

@Basswobble, just start somewhere. The tree generator that I made did not start with all the variables it has now (i think there are over 20 or 25 variables). You can always add more later. I can think of at least two more variables that would be useful in my generator to make trees a little more realistic.

Anyway, those are some nice trees, they look really good :slight_smile:

Start by studying the way trees grow. If you know how, why and when branches are made etc you will have a relatively easy time coming up with an algorithm that suits the anatomy of trees.