Sub topic 9
Materials that work in both engines
This chapter assumes that you can create and assign a material, use the Principled BSDF shader, add lights and a camera, and render a still image. You should also know that EEVEE and Cycles may use the same material nodes even when they calculate the final pixels differently.
Build on shared shader nodes
A material describes how a surface responds to light. Both engines support Blender's node-based materials, so a material built from common shader nodes usually transfers between them without changes.
The Principled BSDF is the best starting point for a portable material. Its main inputs describe familiar surface properties:
| Input | Surface property | Typical range or value |
|---|---|---|
| Base Color | The main surface color | RGB color |
| Metallic | Metal-like versus nonmetal behavior | 0 to 1 |
| Roughness | How broad or sharp reflections are | 0 to 1 |
| Specular IOR Level | Strength of reflections on nonmetals | Usually the default |
| Transmission Weight | Glass-like light transmission | 0 to 1 |
| Emission Color | Light emitted by the surface | RGB color |
Keep the material logic simple when the same asset must render in both engines. Color textures can drive Base Color, grayscale textures can drive Roughness, and a normal map can drive the Normal input through a Normal Map node.
import bpy
# Create a portable Principled BSDF material.
material = bpy.data.materials.new("Shared_Material")
material.use_nodes = True
nodes = material.node_tree.nodes
bsdf = nodes.get("Principled BSDF")
bsdf.inputs["Base Color"].default_value = (0.12, 0.32, 0.8, 1.0)
bsdf.inputs["Metallic"].default_value = 0.0
bsdf.inputs["Roughness"].default_value = 0.35
# Assign it to the active object.
object = bpy.context.object
if object is None:
raise RuntimeError("Select an object before running this script.")
if object.data.materials:
object.data.materials[0] = material
else:
object.data.materials.append(material)Use textures and values consistently
Use the correct color space for each texture. A color texture, such as an albedo image, should use sRGB. Data textures, such as roughness, metallic, ambient occlusion, and normal maps, should use Non-Color data. An incorrect color space changes the meaning of the values and can make a material look wrong in both engines.
Keep roughness and metallic maps in the expected range. A roughness map that is too dark produces broad, polished reflections. A metallic map that is accidentally connected to Base Color can produce unnatural colors and reflections.
Procedural textures made from Noise, Voronoi, Musgrave-style patterns, and mathematical nodes generally work in both engines. However, the same pattern can appear different when lighting, shadow quality, or sampling changes. Judge the material under representative lighting rather than in an unlit preview.
Plan for engine differences
A material can be syntactically compatible but visually different. EEVEE uses approximations or screen-space methods for some effects. Cycles traces light paths, so reflections, refraction, indirect light, volumes, and subsurface scattering can show more physical detail.
Transparent and transmissive materials need extra testing. Check the material's blend or surface settings, the object's shadow settings, and the engine's ray or screen-space settings. Thin glass may look acceptable in EEVEE but reveal incorrect refraction or missing internal reflections when switched to Cycles.
Avoid relying on engine-specific nodes when portability matters. If you need one, isolate it behind a clearly named node group and provide a simpler fallback. Keep displacement expectations separate too: bump and normal mapping alter shading, while true displacement changes the surface geometry and may require different engine settings.
> callout tip > Test shared materials with a neutral gray object, a reflective object, and a transparent object. This exposes lighting and compatibility problems faster than testing only one hero asset.
Exercise
Exercise
A roughness image makes a material look glossy in both engines, even though the image should describe rough areas. What should you check first?
Show answer
Check that the image uses the Non-Color color space, that it is connected to Roughness rather than Invert or Base Color, and that its values are not accidentally inverted.