There are several ways to set up materials and backgrounds as transparencies for post-processing and compositing in Blender. Below, we explore each way and walk you through the process.
Blender Transparent Fire
There are a number of ways to generate or create transparent materials in Blender. For real-time, live or game-related content creation (Eevee Render Engine), transparency is typically achieved through use of a separate mask image, or more commonly, the alpha channel of a standard compatible RGB image (Red/Green/Blue), that is the A component (/Alpha) of a typical 24 bit RGBA image. New to Blender, and I’m a bit of soft-brain. Apologies in advance for the dumb question. How do I make a mesh appear semi-transparent? I’m succeeding at making it pretty well translucent, but I’m wanting to scale it back a bit. Basically, I’m wanting to make a bowl appear ghosty. I'm using a model exported from Blender to Mixamo and into Hitfilm. But when I'm at the import settings screen for HF I can see through my model partially, and even when I click ok and import my model to my scene, my model is still partially transparent.
Contents
Transparent BSDF
The Transparent BSDF node is at its core designed specifically for achieving transparency. Simply put, this material node allows you to control different types of transparency depending on the requirements. Like an Emission node, it can easily be inserted in a node tree within a Mix Shader and a Principled BSDF node.
Alpha Transparency
An alpha transparent material can be achieved in a similar way, with the difference being that the alpha channel of an RGBA image (BMP or PNG files) drives the transparency. It is applied using an Image Texture node and used as a masking image to the alpha input of a BSDF node.
Blender Transparent Bsdf
By linking the color output to the Base Color of a Principled BSDF and the alpha output into the Shader or Factor input of a Mix Shader node, you can easily create these images using photo-manipulation software such as Photoshop or GIMP.
These kinds of materials that make use of images to visualize levels of transparency should be able to render without any issues in either of Blender’s internal engines, Eevee or Cycles, but their results may vary due to factors specific to the engine being used. The Alpha Transparency process is usually preferred in Eevee compared to Cycles.
Material Properties
Once you construct and unwrap the UV of your object in the viewport, you can begin to apply materials to it. How it renders out depends on whichever Blender rendering engine you prefer.
Materials in Cycles are built in the Material Properties tab, with the same setup as those in Eevee.
Start with a new Principled BSDF and build a node tree consisting of an Image Texture node connecting the Color output to the Base Color. The BSDF output is then sent to the surface of a Material Output node.
Select your object in the viewport if a material is not yet set up or assigned, go to the Material Properties tab and click New to make a new node setup with the Principled BSDF and Material Output nodes.
If you’re using the Image Texture node as the Base color, choose an image with a RGBA texture to apply to the object.
How to Make a Material Transparent in Blender
When your BSDF material is ready to go, and your selected image is applied on the object in the viewport, how do you make it transparent?
The next step is to add a Transparent BSDF node to the tree by selecting Add (Shift+A) and locating it in the Shader submenu. After that, you need to add a Mix Shader node, which can also be found in the Shader submenu.
Connect these nodes into the node tree by plugging in the Transparent BSDF’s output into the Mix Shader’s top shader input and dragging the Mix Shader node in between the link that connects the Principled BSDF and Material Output node so that the Mix Shader passes through the two nodes to the output. You will soon see that the transparency effect is visible on your object in the viewport.
Link the two new nodes to the node tree.
- BSDF output (Transparent BSDF) to Shader input (Mix Shader)
- BSDF output (Principled BSDF) to Shader input (Mix Shader)
Then, link the Shader output (Mix Shader) to the Surface input (Material Output).
Transparency Control
When using either Cycles or Eevee, you can control material transparency by changing the color of Transparent BSDF’s Color vector, which changes the transparency of the image mapped to the Image Texture node. You can also change the Alpha vector of Principled BSDF, which affects the material’s overall transparency.
Once you have set up the node tree, you need to set the Blend Mode. You can find this in the Material Properties tab. At the bottom of the panel, you will find the Viewport Display options with a Settings subsection. From the Settings drop-down menu, Blend Mode will appear and you can adjust the transparency’s behavior, using the options Alpha Blend, Alpha Clip, or Alpha Hashed.
You should be able to visibly see the materials take a transparent form in the 3D Viewport.
How to Make a Background Transparent in Blender
Setting a background to be transparent is actually quite simple and an identical practice in Cycles and Eevee.
In the Render Properties tab, you will find the Film drop-down menu. Underneath the Pixel Filter subsection, there is an unchecked Transparency option. By default, this option is not activated. However, it’s the fastest way to make your scene’s background transparent in the viewport by creating an Alpha channel in your render that can then be used for compositing.
Using the UV Map Node for Transparency Map Export
Just for fun, here’s a quick tip that game designers can use. For Blender users who are more inclined to make functional game-related assets and content, or produce items used in other software like Unreal Engine or Unity, these kinds of materials can be made quickly and easily in Blender after mapping it on an object or mesh using UV mapping.
There are many ways to map objects, but one of the easiest and fun ways to do it within Blender is with the UV Map node.
In the Shader editor, click Add (Shift+A) and search for UV Map. Since the UV Map node has no input, it’s meant to be exclusively used as an output. The best place to add it is at the far left of your node tree in the vector input of your Image Texture node. Left-click to set it in place, then click the UV coordinates to be used for mapping selector and choose UV Map from the drop-down list.
Blender Makes It Easy to Set up Transparent Materials and Backgrounds
Setting up your materials and backgrounds as transparencies for post-processing and compositing in Blender is relatively easy, especially since both Cycles and Eevee share the same node-based material system (most notably, the Principled BSDF node). However, the two rendering engines do have distinct differences in overall functionality. To learn more about which engine is ultimately the best option for your project, be sure to head over to our comparison of Blender’s three built-in rendering engines: Workbench, Cycles, and Eevee.
Happy Rendering!
1. Preliminaries
As well as anything related to raytracing with Blender, because of the supplementary calculus time required by your computer, raytracing is only an option that you should feel free to activate and deactivate. This is done by the mean of the Render menu. The Shading panel shows an option labeled Ray Tracing you will have to activate in order to use raytracing in your pictures.
2. Setting transparency
In the Material menu, you can define the base color of your object within the Diffuse panel tab thanks to the color picker, just like usual. In the Transparency panel, you will find the Alpha parameter whose value ranges from 0.000
(object totally invisible) through 1.000
(object totally visible). Blender can use not less than three different methods to handle transparency:
- 'World' based transparency
- Z-Depth based transparency
- Raytraced transparency
Only the latest is considered modern and realistic, but the two others are cheaper, computation timewise. The second method is a good compromise between results (at a given distance) and computation times.
2.1 'World' based transparency
This is the most primitive type of transparency. Basically, it blends the Diffuse material color with the World menu's World colors (textures included) according to the opacity Alpha value. Unfortunately, depending of the World settings, such a render will give you a ghostly material, which will be disappointing if you want to achieve some realistic results, unless you have no blocking objects in the view behind the transparent surface (some outdoor scenes, for example).
Apart from setting any Alpha value in the Transparency panel, you don't have anything else to do to enjoy this method. For example, with an opacity Alpha value of 0.250
, the object will have a mix of only 25% (Alpha x 100 %
) of the Diffuse color, and 75% (the complementary part: (1-Alpha) x 100 %
) of the World color. Obviously, you can somehow cheat even in closed environments by adding a texture to the World, which will reduce the ghostly effect.
2.2 Z-Depth based transparency
Unfortunately, most of time, there are blocking objects in the background and their colors DO matter and have to be viewed throuh the front transparent object. Luckily, as a scanliner, Blender virtually stores the distances of any surface point from the camera in a depth buffer called the Z-buffer, so it is very easy for it to sort the surfaces from the point of view of the scene. Basically, when deciding the color of a given pixel from the final rendered image, if it belongs to a transparent surface, the scanliner will pick the color of the next surface immediately behind it in the Z-buffer and mix it according to the opacity of each materials. For example, still with an Alpha value of 0.250
, the rendered pixel would have a color made from 75% of the color of the object standing behind it and 25% of the Diffuse color of the transparent object.
With this method, the results are better looking, and easily take into account multiple transparent surfaces. Unfortunately, the transparent surfaces seem to lack thickness and density of some sort, as show in the following picture.
In order to benefit from this technique, in the Transparency panel, you have to make sure that Transparency option is ticked , and to activate the Z Transparency button.
2.3 Raytraced transparency
When you look through a glass, a bottle, an ashtray, or any fancy glass object, you will see that the background environment is deformed by the thickness and the curves of the object. This phenomenon is called refraction, and simulating it would add a lot of realism to the render. It currently can only be done using raytracing: a ray in sent from the camera ; when it reaches a transparent surface, instead of showing what is exactly behind it on the same trajectory, the ray will be defelected by the curves of the transparent surface according to its density, then showing a slightly different part of the environment.
In order to set this behavior, go back into the Transparency panel and activate the Raytrace button. As for the Z Transparency test case, the glass object will show the objects standing behind it, and not anymore the background set in the World menu. But in order to get the image distorsion through the transparent surface, you have to set the density of the material.
You will notice that the ZTransp and Ray Transp buttons are mutually exclusive. The first depends on scanline calculations, while the second depends on raytracing calculations. The second is the most physically accurate method, the first one being just an approximation, faster to compute, though! Obviously, nothing prevent you from mixing the two methods within a single scene, in order to optimize calculation times where realism would not be noticeable enough, from the actual point of view of the scene.
2.3.1 IOR
Setting the density is as simple as increasing the value of the IOR slider beyond 1.000
in order to witness the refraction phenomenon. Jump to 3.1 Light refraction, hereafter, for more information on this, but two values are very useful and should be known by any serious 3D enthusiast: 1.52
for glass and 1.33
for water.
2.3.2 Depth
This button lets you set the 'depth' of the transparency, that is, the number of transparent surfaces stacked behind each other along the ray direction, and that will be effectively rendered as transparent materials. The transparent materials in excess of this threshold will be rendered plain and solid, according to their base shader.
From upper left to bottom right: Depth values of 1, 2, 4 and 10
2.3.3 Fresnel, Fac
By default, the material is rendered with a transparency level even on all its surface. By increasing the Fresnel value, you can artificially make the material more plain and solid on the outer edges, and using the Blend button, you can fine-tune the Fresnel effect. Behavior is quite close to Fresnel effect applied to reflective materials.
3. Hints to know about
Even if you know have a fair basic knowledge of transparency, you will most probably come to some more questions about its usage, and you will find the proper answers hereafter.
3.1 Light refraction
You certainly have been surprised when looking through a drinking glass (or any other glass object, with curved surfaces) and when you saw for the first time a distortion of the objects located in the background of it. In fact, with transparent objects, like glass, the path of the light is no more linear, but is deflected according to the curvature of the object and its density. This phenomenon is called light refraction. In Blender, you can simply reproduce it by activating the Raytrace option in the Transparency panel, and then setting the IOR slider (Index of Refraction) with a density value greater than 1.00
.
Of course, choosing the good values for the Index of Refraction is not easy, but there are many documents containing whole lists of materials with their associated IOR, based on the density of the material. Here's a short abstract from them, with some common values.
* Air 1.0002926
* Alcohol 1.329
* Amber 1.546
* Amethyst 1.544
* Diamond 2.417
* Emerald 1.576
* Glass 1.51714
* Oxygen (gas) 1.000276
* Oxygen (liq) 1.221
* Plastic 1.460
* Plexiglas 1.50
* Quartz 1.544
* Topaz 1.620
* Turquoise 1.610
* Water (gas) 1.000261
* Water 100'C 1.31819
* Water 20'C 1.33335
* Water 35'C (Room temp) 1.33157
3.2 Shadows cast by transparent objects
Now we delete the texture of the ground and give the lamp a different orientation, in order to be able to see shadows in the foreground. We can notice that all the objects (cube, spheres, glasses, etc.) have solid shadows, while if we carefully look at the shadows of a real glass on a table, for example, we will see that they should be lighter. Blender can easily take into account the transparency of the material in order to cast more or less solid shadows (and even provide the shadow a hue depending of the color of the transparent surface). For this, you have to adjust the shader of the object , and not the shader of the object emitting the shadow: this is the only tricky step of this tutorial. In order to conclude on this topic, let's select the ground of the scene, and go to the Material menu, in the Shadow panel. Then acitvate the Receive Transparent tick option and notice how the shadows look different now.
Without and with the option Receive Transparent activated
3.3 Blurry refractions
The very same way blurry reflections has been implemented, you can settle blurry refrections for transparent objects. For example, in the following picture, the Gloss value has been set at 0.850
. This property is very interesting for the simulation of depolished, frosted or smoked glasses, with the proper shaders. The other properties (Samples and Threshold) work the same as for the blurred reflections tutorial.
3.4 Colored glass
A lot of the glass objects in our surroundings are colored. This is the case for vases, bottles or any fancy glass objects. Try to give to the material a classic 'bottle green' color:
Blender Transparent
The result is not satisfactory, because the hue is very feint, while the colors of the background are dominant. In order to achieve the illusion of colored glass, you will have to use the Filter parameter. The values close to 1.000
makes the base color of the material to be dominant, while the values close to 0.000
makes the background colors to be dominant.
Blender Make Model Transparent
From top left to bottom right, Filter values of 0.250, 0.500, 0.750 and 1.000
Article written on December the 26th, 2004.
Updated on November the 23rd, 2008 for Blender 2.48a. Comments re-initialized.
Updated on June the 14th, 2010 for Blender 2.50 Alpha 2.