Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Blender 4.2: Precise Modeling Workshop
Learning Resources →

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.

blender-3d-luxrender-alpha-map-trees-architecture-01.jpg

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:

blender-3d-luxrender-alpha-map-trees-architecture-02.jpg

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.

blender-3d-luxrender-alpha-map-trees-architecture-03.jpg

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

blender-3d-luxrender-alpha-map-trees-architecture-04.jpg

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 4.3 for Complete Beginners (Workshop)
Previous

More tutorials and examples of interior design with Blender 3D and YafaRay

Next

Precision modeling with Blender 3D: Script Lengthen

9 comments

  1. 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.

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

  3. Hi,

    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.

  4. Hello.
    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.

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

    thank you.

Leave a Reply

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

Check Also

Clicky