Sub topic 3
Alpha and transparency
This chapter assumes you can create a material, open it in the Shader Editor, and connect nodes to the Material Output. You should also know the main Principled BSDF inputs and be able to switch between the Eevee and Cycles render engines.
Alpha and transparency
The Alpha input controls how much of the surface is visible. A value of 1.0 is fully opaque, and 0.0 is invisible. Eevee needs a blend setting before it shows Alpha correctly, which is covered below.
Glass with Transmission
Set Transmission Weight to 1.0 and Roughness to 0.0 for clear glass. Set IOR to about 1.45 to match common glass.
Emission and glowing surfaces
Emission Color sets the glow colour. Emission Strength sets its brightness. Values above 1.0 make the surface bright enough to light nearby objects in Cycles.
Subsurface scattering for skin, wax and leaves
Subsurface Weight lets light enter the surface, scatter, and leave nearby. Subsurface Radius sets how far the light travels. Warm colours suit skin and wax.
Coat, Sheen and Anisotropy
Coat Weight adds a clear varnish layer. Sheen Weight adds a soft highlight for cloth. Anisotropic stretches highlights in one direction, as on brushed metal.
Material behavior in Eevee and Cycles
Cycles renders transmission and subsurface accurately but takes longer. Eevee is faster but approximates them. In Eevee, open Material Properties, then Settings, and choose a blend or render method for transparent surfaces.
import bpy
mat = bpy.data.materials.new(name="GlowGlass")
mat.use_nodes = True
bsdf = mat.node_tree.nodes.get("Principled BSDF")
bsdf.inputs["Transmission Weight"].default_value = 1.0
bsdf.inputs["Roughness"].default_value = 0.0
bsdf.inputs["Emission Color"].default_value = (1.0, 0.4, 0.1, 1.0)
bsdf.inputs["Emission Strength"].default_value = 2.0
obj = bpy.context.active_object
if obj is not None and obj.type == 'MESH':
obj.data.materials.append(mat)Scripting a material with Python
The script above creates a material, sets its inputs by socket name, and assigns it to the active mesh. Socket names follow Blender 4.0 and later.
Troubleshooting common material problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Object is invisible | Alpha is 0, or Eevee blend is off | Check Alpha and the Eevee blend setting |
| Glass looks solid | Transmission is 0 or Roughness is high | Set Transmission Weight to 1.0 and Roughness to 0.0 |
| Surface is black | Normals face inward or the scene has no light | Recalculate normals and add a light |
Exercise
Exercise
You want a half-transparent, glowing orange glass. Which two inputs must you set in addition to Transmission Weight?
Show answer
Set Alpha below 1.0 (for example 0.5) for transparency, and set Emission Color and Emission Strength for the glow.