Wciow's Tree[d] Tutorial
Tree[d] is a free program for the creation of 3d trees. It vastly speeds up creating trees and bushes for Glest tilesets as it does all the modelling and uv work for you, turning what used to be hours of work into minutes. However in order to use your creations they must be exported via Blender as G3d models. This tutorial shows you how.
1. Create your tree in Tree[d]
Once you have played around with Tree[d] and understand the options you can begin making trees for Glest. Trees for Glest should ideally be below 200 polygons.
2. Set up the textures
Once you have finished your tree note down the textures used by your model. This should usually be one for the leaves/branches and one for the trunk/limbs. Create a new folder and copy the used textures from the Tree[d] directory to your newly created folder.
3. Export to Blender
On the file menu hit export OBJ and export to the directory containing your textures from the previous step. Now fire up Blender and go to File>Import>Wavefront (Obj). You should now be presented with your fully textured creation in Blender.
4. Set up your model
In object mode rotate your model 90 degrees clockwise so that the trunk lines up along the Y axis in Blender.
Switch to edit mode and select all vertices (ctrl+a) then convert to quads (alt+j) and then triangles (ctrl+t).
5. Split your model
In object mode select your tree and copy it (ctrl+d), then hit G followed by X and slide the copied model away along the X axis. Now in edit mode select the first model and click any vertex on the trunk. Hit L followed by (ctrl+i) to invert selection and then delete the canopy part of the model. Again in edit mode select the second model and delete the trunk. In object mode select the trunk and slide it back to its correct position on the X axis.
6. Assign materials
Both objects in your model (trunk and canopy) will automatically share a material. Select the trunk and go to the assigned texture for the material. Make sure it is set correctly as the trunk texture. Now select the canopy object and assign a new material to it. Add an image type texture and assign the correct leaf texture.
7. Final checks
Check to make sure that alpha is set to 1 for both parts of your tree.
Make sure the canopy of your tree is set to single sided.
Check that animation is set to 1 frame.
8. Export the G3D
Select both parts of your model and export as g3d into the directory where the textures for your tree are located. If all has gone well the model should load properly in G3dviewer.