We wanted some new trees for the racing game we have in progress, so I started experimenting with creating a tree generator from scratch. I took a very simple and functional approach so I was able to get results fast. And after some tweaking, it is producing some pretty trees! Its even possible to get them into the terrain engine with a quick export/import.
One of my main focuses with this tree generator is allowing low poly counts. The example tree shown in the screenshots is about 2400 triangles which is completely reasonable for a tree model of this size.
From the included readme:
...[the tree generator] is not stand alone and has no GUI. It requires Unity to work, and uses already existing GUI elements in Unity for user control. Trees are made by creating a hierarchy of objects in a scene with the Hierarchy pane, then tweaking the properties of each object in the hierarchy in the Inspector.
The generator steps through the hierarchy, and creates a finite fractal tree with the splitting points defined by the hierarchy of objects...
Here are some screenshots:





19 comments:
Nice work as usual Forest!
Excellent works. I am newbie in Unity. How am I going to do with this package? how to change the leave and bark texture? Sorry for this question. Do you have any short tutorial?
Thank for sharing and developing those package.
Its fine to ask, I don't mind.
This package is designed for people who already know to use and understand the inspector and hierarchy panes in Unity. There are some good video tutorials about Unity's interface here: http://unity3d.com/support/documentation/video/
You can change the leaf shape and texture by creating a new leaf texture in photoshop and modeling a new leaf model in a modeling app, then import them into Unity by saving them to the assets folder. Then you find the place within the tree hierarchy where there is an object with a mesh renderer and replace that with your new mesh. You could try it with the built in cube model and make a cube-tree.
You can change the bark texture by creating a new bark texture in photoshop, importing it an dragging it into the texture slot of the bark material.
Try some things and you will probably figure it out.
Thank for the enlightenment.
I just figure it out. :-)
I understand how to use the hierarchy and inspector windows, but I can't for the life of me figure out how to use this tree generator.
I looked at the example that comes with it and I sort of get the general idea of how it works, but thats not nearly enough for me to be able to use it. Where do you start? Do I have to create all these trunk and branch objects myself, and the program will just arrange them into a tree? And how do I "run" the scripts to begin with? Can you even run a script in unity without the actual game engine running? And which script do I run anyway?
I know this is free and all and you're giving it away out of the goodness of your heart so I'm not trying to demand answers as though they're owed to me or anything. But hot damn, I was so excited about finally finding a way to get some other tree besides that damn palm tree into my terrain, and then I realize I don't have the slightest clue how to use it.
I agree. Unfortunately, this package doesn't seem to be easy to use, even when familiar with the said systems. I can't seem to produce anything at all with it, besides errors of null object references. Still, nice work with the trees.
I hope that you can end this quick, you know I'm a race video game player, but I have some problems with the tree generator in need for speed underground II, all the time I end in a f!#$%^& tree.
Coach Factory Outlet
Coach outlet online Leading American designer and maker of luxury lifestyle handbags and accessories.Large market in Europe and Canada,UK,USA etc.Welcome to Order!2011 New Style arrive,Free Shipping!
As a Coach Factory Outlet Online, you get paid several ways. The primary way is resale - here is where you sell a product thru your company's Coach Factory Outlet Online. The 2nd way is membership sale - you can sell a club membership and you'll get paid unearned income each time the customer renews their Coach Factory Outlet Online.
You will never buy fashion and cheap Coach Handbags. These benefits, Coach Factory Outlet are the best shopping place for most women. They are the first choice for women.orthent
Your success is my inspiration.Indeed, it is wonderful !!
the article is interesting Coach Factory Outlet although there is a small mistake in the chart.
the article is very interesting..Good!!thank you!!
Coach Outlet Online Build a network monitoring long-term mechanism of action to rectify the vigorous national network finally come to an end.
Making sure your legs are covered is just the first step on Coach Outlet the exciting road to choosing the right morning dress trousers for you.
Phony custom made designer bags outsell the original elements in China and tiawan with a staggering percentage of more than 20:
Phony custom made designer bags outsell the original elements in China and tiawan with a staggering percentage of more than 20:
Coach Outlet Online maybe a good handbag store, that I see women carrying in every city that I visit.
Post a Comment