How to use alpha maps to render trees in LuxRender and Blender 3D

Since I wrote an article suggesting a collection of free textures of trees and shrubs, I have received a few messages asking me how to use those textures in LuxRender or YafaRay. Today I`m going to show how to use alpha maps in textures, to render cutout trees and people in LuxRender, which is a great way to add vegetation to external renderings for architectural visualization, because we will need only a flat plane to represent the trees instead of 3d geometry.

The first thing to do is select two texture files to use in our example. In LuxRender we can`t use transparent PNG files to create alpha maps. To do that, we need a texture for the diffuse channel and other file in black and white, where the black areas will become transparent.


The secret to setup this material in LuxBlend is to use a Mix material where one of them is a matte material and the other is a null. A null material can make parts of the objects transparent. Create a plane at the 3D View and add a texture using UV Mapping in Blender. In LuxBlend setup the material to make it looks like the image below:


Choose a mix material and change the second material (mat2) type to be a null. Then right below the material preview, find the amount parameter and press the little “T” button on the right of a numeric slider. This will enable the use of a texture file to control the Mix material. Choose imagemap and set the 2Dmap as uv, and to finish the setup add the path to the opacity map file. Set the amount to 1 and that`s it!

For this scene, I have created a single plane and created a few copies of the object around a simple scenario.


If we render the scene using a Sunsky environment and a sun light, this will be the result.


The planes will show the textures with the alpha maps and we will have realist trees that will be a nice addition to any external view for architectural projects. The same technique can be used with 2d cutout people. Notice that trees can even cast shadows based on the alpha map.

Blender 3D Architect Pro


  • Tobey

    Thanks for this nice tut, hope I’ll be able to use it for my scenes one day.

  • Luvim

    plz help me to do something like that

  • Allan Brito

    Hi Luvim,

    How can I help?


  • David

    Thank you, good sir, I was quite on the verge of losing my mind, trying all the combinations possible to have transparency.

    My world domination plan is now complete.

  • Allan Brito

    I’m glad to hear that david. To know that you can work with tranparency now, not the world domination plans of course. 🙂

  • Marc


    a bit late as a comment, but I found your article very usefull.
    Still, I seem to have noticed that in LuxBlend, if you happen to hit any other setting than “repeat” for the texture/mask (that is, if you click “clamp”, “black”), the effect won’t work in LuxRender. Can’t find if it’s a bug or a bad setting I made somewhere.

    I’m using LuxBlend 0.6 and LuxRender 0.6

    Did you notice the same?
    Fortunately, it is not too annoying as you’ll usually want to render a sinle tree or a single person cutout, so you’ll size the plane mesh right in order not to have repeated texture.

  • Osmodivs

    Can you teach us how to compose/add Alpha textures in Metal, Glass and other materials in Blender2.6-Luxrender0.9? I can’t follow this tutorial because it’s a little bit old, and alpha textures are as not as easy in Luxrender as in Blender’s way.
    Thank you.

  • luxB

    can you show us how to add an alpha texture on glass material? is it possible in luxrender?

    thank you.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blender 3D Architect Newsletter

Receive free assets, news, and resources for architecture

We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, address, email, etc.) to any third party. Nor will we send you unsolicited email.