News
LW Plugins
3D animations and images gallery
Textures
Download
Tutorials
On-line Store
Register a plugin
Subscribe to newsletter
Contact

TUTORIAL1 - STEP2
LeavesGenerator2 - basics.

I'll teach here how to create leaves on any tree using the LeavesGenerator2 plugin.

Put your tree to a foreground layer and disable background layers. Run LeavesGenerator from Additional pop-up menu.
Setting parameters is quite easy. You need to specify leaf size and quantity. You can also choose leaf type: single poly, two polys and rhombus. For most cases those three types is enough but you can also create a custom shape.
In this case I created 8000 leaves with 0.18x0.12m size.
When you makeing leaves on TreesDesigner object you will get additional settings. 'Use TreesDesigner vectors' - this option force LeavesGenerator to use information stored by TD about branches directions. If not checked LeavesGenerator will try to compute branches directions for proper leaves positions and angles. Check this option. You need to check 'Get TreesDesigner info' first to get access to this setting.
You can also use 'Leaf coverage' for setting leaves range.
  Instead using 'Leaf coverage' you can use any weight map. Leaves will be placed on polys where weightmap value is 100%. There will be fewer leaves when weightmap value is about 0% and there will be no leaves where weihtmap value is -100%. You can also simply select polys before LeavesGeneratos is started to tell plugin where leaves should grow.
Here you can set angle limitations for particular leaf.
Leave it unchanged.
Another useful setting is 'Size depends on polygon area'. When checked - on smaller polygons will grow smaller leaves. A branch in most cases has smaller polygons on its tip so there will be placed smaller (younger) leaves. Leave it unchecked for this example purpose.
Hit OK and wait few seconds for leaves. Now you have leaves and branches in the same layer and you will not be able to use clip maps. Cut and Paste leaves to next empty layer.

Your leaves don't look like leaves yet... you need to shape them. The best way to make a leaf shape is to use clip map. You will get perfect shape without making a lot of polygons. Run layout and load the tree with leaves. Select layer with your leaves. Open object properties panel and Clip Map from rendering tab. Simply set Projection to UV and choose UVMap. Find the name you specified in LeavesGenerator (probably leaf if you didn't changed it). Load any black and white image.

The same way you creating color, diffuse, specular etc. maps for your leaf.

For best results leaves should have slightly different colors. For that purpose LeavesGenerator creates second UV map which includes all leaves spreaded side by side.

Create image like any of this:

You can specify size of the array of leaves ('UV2 array size'). Leaves UV2 map coordinates are placed side by side on single map. Particular leaf will get different piece of your texture and get its color from it.


You can use this UV2 map for diffuse/luminosity channel as well.

 

 

< GO TO STEP 1 GO TO STEP 3 >