This an how-to page for creating a custom trunk mesh in an external program and then importing it into SpeedTree in order to grow branches and foliage from the trunk.
Once the mesh for the trunk is created in an external program, you need to then export it as an ‘OBJ’.
1. It is important to map the UV texture in the external program because once the mesh is imported and defined as a ‘Mesh Frond’, the material assigned to the mesh will not have a capability for UV texture editing, only ‘Displacement’ property controls will be applicable.
2. Also, making sure that the mesh is centered at origin, so that when it is imported into SpeedTree, the mesh will have the origin and pivot point at 0.
In SpeedTree, open a new file and in the ‘Generation editor’ create a ‘Mesh Frond’ node.
1. Under the ‘Meshes’ tab, there is an icon with a plus sign. Click the icon and browse and select the ‘OBJ’ file. Depending on the orientation of the program you used, you may have to change the ‘Orientation’ property in this tab window, so that the mesh trunk is ‘Z’ up. (‘Z’ up is SpeedTree’s orientation unless you set it up to match 3D Max or Maya)
|For example, ‘Y’ up in Maya will have the ‘Orientation’ setting of ‘Z’ up right-hand or left-hand.|
2. Do the same for the material bark texture in the ‘Materials’ tab. Also, make sure to assign a color set for the bark material.
3. Then click the ‘Mesh Frond’ generator, go to the property bar on the left hand side, and under the ‘Materials’ group, click the plus icon in the ‘Frond’ group. This will allow you to indicate the ‘Geometry’ (the mesh trunk) and the ‘Material’ (the bark texture for the trunk) you wish to use.
Any generators and leaf meshes from then on will function normally.