Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating refractive surfaces

From: SketchUp Rendering Using V-Ray

Video: Creating refractive surfaces

As refractive objects are one of the handful of material types that we come into contact with pretty much every day, the chances that we will want or need to re-create them at some point, probably in a number of different ways, really are quite high. In this video, we are going to work at creating a couple of glass materials, really as a way of demonstrating how we create refraction inside the V-Ray Standard Material. Now one of the glass materials we want to create is for the glazing in our scene. Now, at this moment in time, we don't have our geometry available, so we do need to go up to the Window menu, select that, come down to the Layers option, and open the Layers dialog up.

Creating refractive surfaces

As refractive objects are one of the handful of material types that we come into contact with pretty much every day, the chances that we will want or need to re-create them at some point, probably in a number of different ways, really are quite high. In this video, we are going to work at creating a couple of glass materials, really as a way of demonstrating how we create refraction inside the V-Ray Standard Material. Now one of the glass materials we want to create is for the glazing in our scene. Now, at this moment in time, we don't have our geometry available, so we do need to go up to the Window menu, select that, come down to the Layers option, and open the Layers dialog up.

In here, we need to put a check in the Skylight Glass and Patio Glass layers, just to bring that geometry into the scene. Then of course we can close our Layers dialog. Now I am just going to middle-mouse-scroll out of our view, just so we can get a little bit of a better view of what is going on in scene. I am going to hold Shift key and hold down the middle-mouse button just to pan across. And now I just want to Ctrl+Click and select all of our glazing geometry in the scene, just so that we can add our material to it when we have created it.

With that done, of course we can go and reselect our Glazing camera. To create the first of our Glass Materials, we of course need to open up the V-Ray Material Editor for ourselves. You will once again notice that our start scene has been somewhat upgraded; not only do we have our diffuse components in place now, but also all of the reflective aspects of our materials are in situ. Of course, at this moment in time, we don't have any refractive materials set up in the scene, so let's go and add a glazing material for ourselves. So with the Scene Materials label selected, let's right-click, go to the Create Material option, and we will choose a Standard Material.

Now of course that's going to be added to the bottom of our Materials List, so let's scroll down, select the material, right- click, and use the Rename Material option. Sticking with descriptive names, I'm going to call this Glazing. Now with the geometry still selected in the scene, we can simply right-click and use the Apply Material to Selection option. Now Glass of course is a material that doesn't really have any Diffuse coloration. Even should we want to create colored class, it wouldn't be the Diffuse slot in our V-Ray Standard Material that provides the color information.

These controls are really just for surface light interaction, whereas the coloration in glass comes from inside the volume, and we'll see how to handle this inside the V-Ray Standard Material in just a little while. This doesn't mean, however, that we can just completely ignore our Diffuse layer. Essentially, in order to create a glass material, we need to disable the Diffuse component of this material. Now, you may wonder why this is a necessary step. Well, if we just go to our Glazing material, right-click, go to the Create Layer option, and create a Refraction layer for ourselves, you'll see that it sits underneath the Diffuse layer.

This means with Diffuse information inside our Diffuse controls, we are not actually going to see the effects of any refraction in our material. This is why we need to disable the Diffuse layer. Now the easiest way to do this is to set our material to be completely transparent, using the Transparency controls. However, there is a problem if we just use the default color swatch. If I just click on that, set our Color value all the way to pure white, which would make it completely transparent, and click OK, you can see our scene objects actually disappear.

Now, thankfully we have them selected at this moment in time, but if they weren't, we perhaps wouldn't even know that they were there in the scene. So clearly this method of adding transparency could have some potential problems with it. Thankfully, there is another way. Let's just go and set our Transparency color back to black so that our scene objects reappear, and we can instead use the Map slot. So if we click on the Map button to bring up the Texture Editor and in the dropdown list, if we use the first option, this TexAColor option, we can now go and set this to be white.

This of course will control the transparency on our Diffuse layer. You see our scene objects remain unchanged. They will, however, be completely transparent at render time. This then is typically a much better way to set our Diffuse layer to be completely transparent, or in real terms, we've disabled the color information from this particular layer. Of course, we still don't have a Glass Material as of yet. There are other components we need to add--specifically Reflection. Glass is, as well as being a refractive material, a highly reflective material.

So let's go to our Glazing Material, right-click, go to Create Layer, and this time we want to add a reflection layer. As you may recall from our reflection lesson, by default, the Reflection layer comes in with full reflectivity enabled; this white value ensures that. And if we scroll down to our Refraction layer, you'll see that it does the same. It uses the same control mechanism for handling refraction. So we now have a fully reflective, fully refractive material. And if we just use the Preview Render option, it perhaps won't be any surprise to us the reflectivity wins out.

It is, after all, the top-level layer. We need then to be able to tell our material that it is both reflective and refractive. We can do this by adding a Fresnel map into the Maps slot for the Reflection layer. So again, let's click on the Map button; in the dropdown, let's choose TexFresnel; and in this instance the defaults of white and black for Perpendicular and Parallel and the IOR values of 1.55 will work very nicely for us. So again, let's accept that and click OK.

Now V-Ray knows that the Reflection versus Refraction options will be determined by the viewing angle of the camera. If we view one of our windows straight on, we will get lots of refraction, so we will see through the material. If we view our glass at a very sharp angle then we will get lots of reflectivity. And again, if we use the Preview button inside of our Material Editor, you will see that we do indeed now have a refractive and reflective material. In fact, better still, let's go and take a render of the scene, so we can see how our glazing is working out.

What we now have is a very nice glass material that has both reflective and refractive properties. And you can see, as the viewing angle becomes deeper, the reflectivity becomes more and more pronounced. With our glazing working nicely then, we can see that creating a clear glass material is a pretty easy thing to do, using the V-Ray Standard Material. What, though, if we wanted to create that colored glass that we mentioned earlier? Well, let's do that inside of our scene right now. The first thing we are going to do is switch camera. We are going to focus in on our garden ornament, our butterfly, and let's see if we can turn it into a beautiful piece of colored glass.

Now, as we're simply creating a variation of our glazing material, there really is no need to go through the whole process from scratch. Instead, let's open up our V-Ray Material Editor. We'll find our Glazing material. Right-click on it, and we will just use the Duplicate Material function. Now if we scroll down, you can see we have a Glazing1 material. We of course are going to want to rename this, so let's right-click and go to Rename Material, and we'll call this, very descriptively, Butterfly Glass.

Now, if we go and select our object in the scene, we can right-click on our material and use the Apply Material to Selection option. Of course rendering at this point would simply reveal that we have a clear glass statue. That's the type of material that we created for our glazing. So how do we create our coloration? Well, we have already stated that we don't use our Diffuse components to create colored glass. Instead, we want to make use of some controls found in our Refraction layer. Specifically, we want to make use of these Fog controls.

These will allow us to add a coloration to the volume of our Glass object. To set the color, all we need to do is click on our color swatch and then choose the RGB values that we want to work with. In this instance, we have got some very specific values we just want to use, so we are going to use a Red value of 141, a Green value of 40, and in the Blue channel, we are going to leave everything set to zero. So we get this nice burnt-orange look. With that applied, let's take a test render and see how things are looking.

What we get from that very small parameter tweak is a very nice colored glass effect, one that, as you can see, actually takes into account the density of the geometry when it comes to determining the coloration that it applies. You can see where the body of our butterfly is. The thicker geometry, we get a much deeper color, where we get the thinner part, we get a much less saturated version of the color. If we wanted to increase the strength of the coloration effect here, if we just come back to our Material options, you can see we have this Multiplier option, which really acts as a strength control for the Fog effect.

So we've seen then how we can create refractive materials inside of the V-Ray Standard Material, and remember the steps that we have gone through here to create glass can just as easily be used to create water that could be applied to our pool geometry. We've even seen just how very easy it is to add a coloration effect to the volume of our refractive object. Time now to move away from working with hard surface materials and take a look instead at our tablecloth geometry. In the next video, we are going to show you how we can create a nice translucency effect using nothing more than a couple of V-Ray Standard materials and a V-Ray Two Sided material.

Show transcript

This video is part of

Image for SketchUp Rendering Using V-Ray
SketchUp Rendering Using V-Ray

33 video lessons · 6199 viewers

Brian Bradley
Author

 
Expand all | Collapse all
  1. 4m 30s
    1. Welcome
      1m 14s
    2. What you should know before watching this course
      2m 33s
    3. Using the exercise files
      43s
  2. 7m 52s
    1. Installing V-Ray
      2m 27s
    2. Locating V-Ray tools and features
      5m 25s
  3. 39m 2s
    1. Creating natural daylight with the V-Ray Sun and Sky
      7m 41s
    2. Using the Omni Light
      7m 9s
    3. Exploring the Rectangle Light
      6m 2s
    4. Exploring the Spotlight
      4m 37s
    5. Exploring the IES light type
      5m 0s
    6. Setting up image-based lighting
      8m 33s
  4. 29m 40s
    1. Working with irradiance mapping
      12m 8s
    2. Creating a light cache solution
      6m 14s
    3. Using the DMC engine
      11m 18s
  5. 23m 11s
    1. Overview of the physical cameras
      5m 16s
    2. Understanding the Exposure controls
      6m 23s
    3. Handling perspective correction
      3m 4s
    4. Setting up for a depth-of-field effect
      8m 28s
  6. 44m 59s
    1. Introduction to V-Ray-specific materials
      9m 41s
    2. Creating diffuse surfaces
      9m 44s
    3. Creating reflective surfaces
      8m 2s
    4. Creating refractive surfaces
      9m 53s
    5. Creating translucent surfaces
      7m 39s
  7. 44m 8s
    1. Using fixed-rate sampling
      10m 21s
    2. Working with the Adaptive DMC engine
      11m 48s
    3. Controlling the Adaptive Subdivision sampler
      10m 15s
    4. Exploring subdivs and the DMC Sampler controls
      5m 52s
    5. Manipulating color mapping
      5m 52s
  8. 33m 39s
    1. Adding displacement to materials
      10m 48s
    2. Using caustic lighting effects
      7m 37s
    3. Creating occlusion effects
      8m 13s
    4. Creating a non-photorealistic render (NPR) with the Toon material
      7m 1s
  9. 1m 21s
    1. What's next?
      1m 21s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed SketchUp Rendering Using V-Ray.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.