Okay, here is how you add glass effects in Blender, incorporating the information from the provided reference.
Adding realistic glass effects in Blender typically involves creating a material with specific properties related to light transmission and refraction. The exact steps might vary slightly depending on the rendering engine you plan to use (Cycles or Eevee).
You can create a glass material using the standard Shader Editor. The most common approaches use either the Principled BSDF shader or the dedicated Glass BSDF shader.
Method 1: Using the Principled BSDF (Recommended)
This is the most versatile shader and often the easiest way to get good glass results.
- Select your object: In the 3D Viewport, select the object you want to turn into glass.
- Create a New Material: Go to the Material Properties tab (red sphere icon) in the Properties editor. Click the "New" button to create a new material.
- Open the Shader Editor: Switch one of your workspace windows to the Shader Editor. You should see a Principled BSDF node connected to a Material Output node.
- Adjust Properties: In the Principled BSDF node, modify these key settings:
- Metallic: Set to
0
. - Specular: Set to
0.5
(default is fine, but you can adjust slightly). - Roughness: Set to
0
for perfectly smooth glass, or a small value (e.g.,0.05
-0.1
) for slightly frosted or imperfect glass. - Transmission: Increase this value to
1.0
. This is the most crucial step for transparency. - IOR (Index of Refraction): This value controls how much light bends when passing through the material. For standard glass, a value between
1.45
and1.55
is common. Water is around1.33
. Adjust this based on the desired material.
- Metallic: Set to
| Principled BSDF Setting | Value for Glass Example | Description |
| :---------------------- | :---------------------- | :-------------------------------- |
| Metallic | 0 | No metallic properties |
| Specular | 0.5 | Standard reflection intensity |
| Roughness | 0.0 - 0.1 | Smoothness (0 = perfect, >0 = frost) |
| Transmission | 1.0 | Allows light to pass through |
| IOR | 1.45 - 1.55 | Controls light bending (refraction) |
Method 2: Using the Glass BSDF
This is a simpler, dedicated glass shader.
- Select your object and create a material: Follow steps 1 and 2 from Method 1.
- Open the Shader Editor: Switch to the Shader Editor.
- Replace Principled BSDF: Delete the default Principled BSDF node.
- Add Glass BSDF: Press
Shift + A
to add a node, go toShader
, and selectGlass BSDF
. - Connect Node: Connect the BSDF output of the Glass BSDF node to the Surface input of the Material Output node.
- Adjust Properties:
- Color: Set the color of the glass (usually white or slightly tinted).
- Roughness: Similar to Principled BSDF,
0
for perfect, slightly higher for frost. - IOR: Set the Index of Refraction (e.g.,
1.45
-1.55
).
Previewing the Glass Effect
Once you've set up your material, you need to switch to a viewport shading mode that can display materials and rendering effects.
- Hold the
Z
key: As shown in the reference, you can hold down theZ
key in the 3D Viewport to bring up a pie menu. - Select a mode: Choose either Material Preview or Rendered from this menu.
- Material Preview: Uses Eevee to give you a quick, near-real-time preview of materials and lighting.
- Rendered: Uses the currently selected render engine (Cycles or Eevee) to show the final rendered result, including complex lighting, reflections, and refractions.
By switching to one of these modes, "You will see a nice glass material."
Renderer Considerations (Eevee vs. Cycles)
The reference specifically points out that the glass material setup "doesn't necessarily work in EV" (Eevee) right out of the box, even though it might look good in preview modes. This is because real-time renderers like Eevee require specific settings enabled for advanced effects like refraction.
- Cycles: This is a physically-based ray-tracing engine that handles realistic light bounces, reflections, and refractions automatically. Glass materials created with either Principled BSDF or Glass BSDF will generally look correct in Cycles without extra steps beyond the material setup.
- Eevee: This is a real-time rasterization engine designed for speed. To make glass refract and appear transparent in Eevee, you need to enable additional features:
- Go to the Render Properties tab (camera icon).
- Under Screen Space Reflections, check the box to enable it.
- Expand the Screen Space Reflections panel.
- Check the Refraction box within the Screen Space Reflections settings.
Without enabling Refraction in the Eevee render settings, your glass material might look reflective but appear solid or black instead of transparent when you preview or render in Eevee, which is likely what the reference was indicating by saying it "doesn't necessarily work" in Eevee by default.
By following these steps and ensuring the correct renderer settings (especially for Eevee), you can successfully add realistic glass effects to your objects in Blender.