Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Procedurally Generate Low Poly Trees

I am looking for an algorithm or product that will generate low poly trees. Doesn't matter the language. I have searched all over and there are plenty of "tree generation" algorithms but they cater to more realistic looking trees not the opposite.

Here is the type of tree I'm looking to generate on the fly: Low poly examples

Even just algorithms to generate blobs that look like the top part of the tree would be helpful.

like image 571
utahwithak Avatar asked Mar 31 '15 18:03

utahwithak


1 Answers

I have put together something with unity. It generates solids with a Quickhull algorithm which is pretty easily explained and found around the web.

This will generate Convex Hulls of the input points. So I randomly generate points inside of a tree-shape.

Then after the blob is generated I can then shift around the vertices adjusting the normals accordingly. Things to keep in mind is to get the object the "low poly" look you need make sure each triangle has it's own vertex and normal and all three on the triangle are the same.

This solution is solidly 1.0 and only allows for one tree chunk but its what i'm currently using and is up on the asset store for anyone interested. Low Poly Tree Generator

like image 71
utahwithak Avatar answered Oct 22 '22 05:10

utahwithak