I was using the sapling simulator to generate the trees for a nature scene. Currently the leaves I am using are rectangular and have an image texture with an alpha map.
I used the same texture on a plane, and the alpha map was working fine. But when I use the same texture with the leaves on the tree, I constantly get rectangular leaves without the alpha map!
Can’t figure out what I am doing wrong. Please check out the leaves I got after the texture and the node diagram of the texture.
It seems your leaves are not mapped properly. There are zoomed portion of you texture onto the leaves, then you can’t see the whole leaf nor the transparent part.
Thats true MarcoG_ita…well i understand the root of the problem…the issue being the mapping…but its just that I cant effectively unwrap all the leaves onto the image and get a single square to map my leaf texture…that leaves me to use the generated mapping…which i am using…bt it doesn’t seem to work on the leaves…bt works on regular objects like planes and all…I am kinda new to nodes and UV mapping…so need some urgent help here!
I never played much with sapling Tree and I don’t know how it’ll be but try this:
select the foliage - hit tab to enter edit mode - select all with A - press “u” for unwrap and click on “Reset” - now in your uv editor all the squares will be on top of each other and aligned. Load the texture and give a test.
Note that what i said is suited for foliage with just square-non subdivided leaves. Cause it takes all the face of your mesh and it leaves them onto each other perfectly squared and aligned.
If you have leaves subdivided or exagonal i’m pretty sure it fails because this process would “destroy” them.
I guess if you use the leavesgeometry for dupliverts (make just a single leave and distribute it over the leavesgeometry of the saplingplugin) then you also save VRAM because the single leave geometry is instanced this way.
I saw this method by another user, I’ve not tested if it really uses less VRAM.
See here how to setup the tree with Dupliverts: tree_to_save_VRAM_00_150812.zip (1.24 MB)
With this method you can also get some color variety on your leaves by using this material setup:
/uploads/default/original/3X/7/2/72d1a1958bee09aedf673ecbb643a4fda696e031.zipd=1342431975
@Alain…Thanks!! that might do the trick! will it work for groups…similar to a particle system?? that way i can have more than one variety of leaves i guess…
@Alain… Found sumthing interesting…checked out a nature academy video and found a really nice tool for trees! Arbaro 3D! really good for nature scenes!