Glass
How to make convincing glass: the Glass layer, what it needs to look good, and how it behaves in After Effects.
Glass is a layer of the material stack (the "effects" layer; one per material). It refracts what is behind the object, blurs it, adds reflections and color fringes.
The settings#
| Setting | Range (default) | Effect |
|---|---|---|
| Amount | 0–1 (1) | How much glass: 1 is full glass |
| Refraction | 1–6 (1.5) | Index of refraction. 1.5 is ordinary glass; higher bends the image more |
| Thickness | −10–10 (0.5) | The thickness, as a fraction of the object. A thickness that is too large distorts the image behind a lot: start between 0.2 and 1 |
| Blur | 0–10 (1) | Frosted glass. 0 to 1 is clear glass, 2 to 6 is frosted |
| Aberration | 0–100 (0) | Color fringes at the edges, like a prism. At 100 the fringes are very strong |
| Roughness | 0–1 (0.5) | Roughness of the surface |
| Metallic | 0–1 (0) | Metalness |
| Reflectivity | 0–5 (0.5) | Strength of the reflections. Above 0.5 a bright rim appears on the edges |
What makes good glass#
- Glass only shows what is behind it. On a plain background it looks almost invisible. Put a colored or gradient surface behind it (a Backdrop or Plane), colored objects, or a colored scene background.
- Opacity is not glass. Lowering a layer's opacity makes the object transparent, with no refraction and no reflections. Use the Glass layer.
- Give it something to reflect. Turn on the Sky or add a Matcap or Environment layer above the glass.
- Clear glass: Blur 0 to 1, Roughness close to 0. Frosted glass: Blur 2 to 6 and a higher Roughness.
- Overlapping glass is supported: glass objects that overlap on screen are rendered in layers, back to front, so a glass in front of another glass refracts it (up to 5 layers). Glass sees opaque objects and, through the layering, other glass objects.
- Glass is expensive, because it needs several images accumulated to look smooth. The viewport takes a bit longer to settle on a scene with a lot of glass; use 3D Draft while you work.
The Environment layer: glass with its own panorama#
An Environment layer placed in the stack gives that material its own panorama: it lights the material and is reflected by it, instead of the scene sky. With Own light on, the material also gets its own light (direction, height, color, ambient and shade) and stops receiving the lights of the scene. The Glass folder of the Library uses exactly this to give you finished glass looks that need no scene set-up. See Material library.
Glass in After Effects#
For the glass to see (and refract) the layers under the Polly3D layer — a video, a text — tick Layers Below Interact in the effect's Output group. This turns the layer into an adjustment layer whose input is the composition below. Reflections of type Shape (the Reflection layer) see them too. See Output modes.
Without it, glass refracts only what is inside the Polly3D scene.
Common problems#
| Symptom | Likely fix |
|---|---|
| The glass is invisible | Put colored or gradient objects or a backdrop behind it |
| It looks flat and dull | Turn on the Sky, or add a Matcap / Environment layer above |
| The image behind is too distorted | Lower Thickness and Refraction |
| Frosted glass looks grainy while editing | It refines as frames accumulate: wait, or raise Accumulation frames in the Render tab |
| Glass does not show the footage under it in After Effects | Tick Layers Below Interact |