This glass is one of a handful material types that we come in to contact with everyday. The chances that we will want our need to re-create it in some way for one of our scenes, well, it's probably quite high. What we need to do then is come and unhide first of all the object that we want to work with, the object we want to apply our glass material to. So let's come to the Layer Editor tab and we just want to come and unhide or make visible this glass layer. With the object in the scene, let's come up to the Window menu, let's come to Rendering Editors, and let's pull up the Hypershade window for ourselves, and if we just move this to the side, we can see our object once we create a new V-Ray material.
Instantly, we can come into the Attribute Editor and rename this Clear_Glass_2. We select our object and then right- click the material in the work area and use the Assign Material to Selection option. Now, that material is applied and we can work with its parameters, of course, we need to select it in the Hypershade first. Glass, of course, is another material that doesn't make use of the Diffuse Color controls in our V-Ray material.
Even when we have colored glass, it isn't these diffuse controls that provide color information. These particular controls are really for surface light interaction, whereas the coloration in glass comes from inside the volume. This is why we will need to work with the refraction controls in the V-Ray material to create believable glass for ourselves, both clear and colored. So let's scroll down in the Materials Controls and let's work with these Refraction Settings.
As with refraction, black means that refraction is essentially turned off, we have a completely opaque material and if we set this all the way to the other end of the scale, white will mean that we have a completely see-through material. Of course, the problem is glass is both reflective and refractive. So we are going to have to work with our reflection controls as well. So let's go back up and make certain we set our Reflection Color to White also. Now, let's take a render.
What we get though is not a refractive material at all but a completely reflective one, which possibly is not surprising as we now have a material that is completely reflective 100 % and completely refractive. The V-Ray material needs a way of determining which of these options it needs to render with, and we can do that by just using a simple parameter in the Reflection Controls. If we jus scroll down a bit, we have this Use Fresnel option. When we check this, the V-Ray material will be rendered according to the viewing angle.
So if we look at this object completely head on, then we will see through it, we will get the refractive properties of it. If however, we are viewing at glancing angles, we will see lots of reflection in the material. So again, we can just this time take a Region Render, and we can see that we have very nicely dealt with that particular problem. Of course, there are still issues with our glass, for one thing, we can see that things are a little bit bitty, a little bit broken up around the rim area here.
Of course, our V-Ray Image Sampling controls and the DMC Sampler options will take care of that, that will clean up very nicely if we increase the quality settings in there. We can hopefully see that we get a very obvious refraction effect, we can see through to the objects on the other side, we get distortion as light is bent, we can see that on the glancing angles, we are looking at reflections and not refractions, so everything is working very nicely in that department. However, we can see that light isn't penetrating through to our tabletop here and with clear glass that is exactly how we would expect things to be.
Well again, there is another parameter we need to work with, this time not in the Reflection Controls as this Use Fresnel one was, but all the way down in our Refraction Options. What we need to is enable this Affect Shadows control. Now, light will penetrate through to the bottom of our object very nicely and everything will look a little bit more natural. In fact, let's just take a very small region and demonstrate that to you. And we can see, that nicely deals with that. You can even see as the shadows are traveling away that they are looking much more realistic also, once we take a render of this area, we will see that all of the shadow is working as we would want it to.
Now, as with Reflections, when we come to our Refraction Controls, of course, we're using just a color swatch at this moment in time, but we could use a map type. We could apply a checker map as we did with our reflective object and we would get an object that has areas of complete refraction and areas that are completely opaque. Remember again though that the diffuse color would come into play in the opaque areas. Something else that we can do with refractions is to apply a blurriness to them. So let's come and set the value of 0.7 in our Refraction Glossiness, and let's just take a slightly big region, render here, and it will just show you how that effect will look.
And as you can see, that gives us a very nice quick and easy frosted glass effect. Of course, you will notice that our reflections are completely smooth. If we wanted to give the impression of a rougher surface here, we would have to add glossiness or blurriness into our reflection parameters as well. Now, one thing we haven't mentioned with regard to glass is the fact that the IOR value will control the strength of our refractive effect. So lower values will make the glass look thinner, higher values will, of course, make the glass look thicker, you will get more bending of light.
I am just going to go and set our Refraction Glossiness back to a value of 1 there, because really, that's all we need to do to create nice, clear glass for ourselves, but as you've seen, we can add some interesting effects and we can have that pseudo frosty glass look in there if we want to. Well, what if we wanted to recreate the look of colored glass? Well, let's do that in our scene. Of course, we're going to need to unhide another object, so I am just going to close Render View for this moment in time. Let's come to our Layer Editor and we just want to make certain that our Glass_Butterfly layer is visible.
We do, of course, need a new material, so let's go and open up our Hypershade window and I am just going to make certain that we clear our graph area at this moment in time, so left mouse- click and create a new V-Ray material. I am just going to select my object, right-click on the Material and use the Assign Material to Selection option. Now, if I make certain that the material is selected in the Hypershade, we can come back to our Attribute Editor and we can just rename this Coloured_glass.
Of course, we need to run through setting up our glass properties. So let's come up to the Reflection Controls and let's first of all set that to be completely reflective. Of course, as we come down these options, we want to select to Use Fresnel, down to our Refraction Options, let's set that to be completely refractive and turn on those Affect Shadow controls. Now, to create colored glass, all we need to do is work with these somewhat misnamed parameters inside of our Refraction Options and that is the Fog color, Fog multiplier and Fog bias.
Now, to create a colored glass effect, all we need to do is select our Color Swatch and we can just work with the -- let's create something along the lines of a nice burned orange and with that done, we can again pull up Render View and just take a render for ourselves. And what you can see is we get a very nice colored glass effect for ourselves. Where the geometry is thinner, we have less color; where it gets thicker, we have much more saturation. In fact, where we have our leg geometry, you can see it's almost clear glass in there, which is just the way that color glass behaves in the real world.
Now, these other two controls, the Fog multiply, really that is just a way of increasing the strength of our fog effect. If we increase that, we will get deeper color saturation in our colored glass. We can use the Fog bias to add color to even thinner parts of the geometry. If we increase this value, then even thin parts of geometry will receive more and more color saturation. So again, the V-Ray material makes the creation of dielectrics such as glass very easy to do, even when we want to add more complex effects in there such as if we're creating color glass or adding the frosty glass effect with blurry refractions.
Well time now to swap back to our tablecloth material. What we're on to do is add a little more of an organic or fabric feel to what we have at this moment. We want to just work at adding a bit of a translucency effect to that material.
Get unlimited access to all courses for just $25/month.Become a member
107 Video lessons · 34055 Viewers
94 Video lessons · 23780 Viewers
100 Video lessons · 4246 Viewers
83 Video lessons · 9294 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Your file was successfully uploaded.