Glass Material
By Neil Blevins
Created On: June 19th 2002
Updated On: Dec 11th 2024
Software: Blender or 3dsmax (vray)

Here's a tutorial on how to create a basic glass material.

Reference

Here's a casserole dish in my old kitchen. Notice this glass is tinted glass.

Glass

Software Agnostic Material

The basic ingredients are as follows:

Ways to make it more realistic:
Remember, half of what makes a material look like a particular material is the environment it's in, especially if it's highly reflective. A wise person once said reflections only look as good as the environment the object is reflecting, keep that in mind.

Blender Example

Here's the shader for Blender...



Since Blender has its own specialty glass BSDF node, this is the one to use, and hook it up to your Material output.

Then the Color is set to white (fully refractive and reflective).

The Roughness is set to 0.0 (unless you want frosted glass). IOR is set to 1.5.

Here's the resulting render.



To get tinted glass, just modify the color, adding a slight tint to it.



Here's the blend file, Blender 4.2: glass_blender.zip

3dsmax (vray) Example

I start with a VrayMtl.

Set the Diffuse Color to black.

For the Specular Reflection, set the Reflection Color to white, keep gloss at 1 (unless you want frosted glass) and set the IOR to 1.6. This will create slightly glossy medium intensity reflections.

For the Refraction, set the Color to white, leave gloss at 1.0, set IOR to 1.6, and check affect shadows so the refraction affects your shadows.

One final note, there's two "Max depth" values, this is the number of times a light ray bounces around inside a refractive object before it stops. High values are more realistic but take longer to render. I usually reduce mine a bit, but put them where you'd like.



Here's the resulting render.



And here's a tinted glass alternative. Set the Reflection and Refractions colors to any color other than white.



Here's the resulting render.



Here's the max file, 3dsmax 2022: glass_3dsmax_vray.zip

This site is ©2024 by Neil Blevins, All rights are reserved.
NeilBlevins.com TwitterMastodonBlueskyInstagram CaraBloggerFacebookLinkedIn ArtStationKickstarterGumroadYouTube IMDB