THE COOKIE NETWORK

blender_render_cycles-glass_feature
ç Prev åNext

 Learn how to render realistic glass and other refractive materials in Blender with Cycles

Since the introduction of the Cycles render engine Blender users have had built-in access to physically correct glass rendering. Though it’s significantly faster and more accurate than what we’re used to with Blender Internal, refraction can still bog down render time and confuse us with it’s behavior. This tutorial is designed to be a relevant reference for anyone’s glass-rendering endeavors.

Join Citizen for this tutorial and many others for the cost of one fast food meal a month

WHAT YOU’LL LEARN:

Kent Trammell will walk you through the shading, lighting and rendering of refractive materials. First you will see how easy it can be to set up a basic glass shader with the Glass BSDF. Then you’ll see how to gain more control by building a custom glass shader with the Refractive and Glossy BSDFs. All along the way you’ll become familiar with optimizing Cycle’s render settings for best performance verses best result.  As a bonus you’ll be walked through a brilliant technique for faking believable caustics introduced by Bassam Kurdali on the Tube Open Movie blog.

video thumbnail
1

Working with the Glass Shader in Cycles

Download HD Video

(26:37)

video thumbnail
2

Creating Fake Glass in Cycles

Download HD Video

(26:11)

You must be logged in to upload images. Register

Discussion

63 Responses to “Rendering Glass and Other Refractive Materials in Cycles”
  1. Posts: 13

    Excellent to see more than simple poly-pushing tuts from you guys these days! Keep it up!

    #
    1
    Feb 11, 2013 at 11:05 am
    • Posts: 2971

      There’s lots more coming :)

      #
      1.1
      Feb 11, 2013 at 11:49 am
      • Posts: 6

        speaking of things to come, when do you think the super awesome tutorial of hard surface modeling will be released?

        #
        1.1.1
        Feb 12, 2013 at 3:31 am
  2. Posts: 35

    Just what I need? I did say this before and say it now You guys like magician always know what we need..

    Thanks

    #
    2
    Feb 11, 2013 at 11:09 am
    • Posts: 1

      Exactly! This tutorial is what I need this week. Not sooner, not later. They’re magicians!

      #
      2.1
      Feb 13, 2013 at 12:49 pm
  3. Posts: 85

    This’ll come in handy. Thanks Kent.

    #
    3
    Feb 11, 2013 at 11:49 am
  4. Allen Zayden
    Posts: 4

    Thanks guys for more great tuts!

    #
    4
    Feb 11, 2013 at 11:56 am
  5. Posts: 29

    Yes,great stuf you guys rock.:)

    #
    5
    Feb 11, 2013 at 11:59 am
  6. Posts: 12

    That was well done. I learned a lot about rendering glass in Blender from this. Thanks!

    #
    6
    Feb 11, 2013 at 12:10 pm
  7. Posts: 54

    Another citizen tutorial??? Oh wait, I am a citizen. ; p Sorry guys, couldn’t resist.

    #
    7
    Feb 11, 2013 at 12:49 pm
  8. Posts: 9

    it wont load :(

    #
    8
    Feb 11, 2013 at 1:49 pm
    • Posts: 2971

      You’ll need to either sign into your Citizen account or join Citizen in order to watch the tutorial. The black loading bar for non-Citizens is a bug right now that I’ve already reported to our web team.

      You can join Citizen here: http://cgcookie.com/membership

      Cheers,
      Jonathan

      #
      8.1
      Feb 11, 2013 at 2:18 pm
  9. Posts: 3

    Realy nice . learned a lot about rendering glass in blender

    #
    9
    Feb 11, 2013 at 2:41 pm
  10. Posts: 24

    yey :) I like Kent, good stuff mate, thanks

    #
    10
    Feb 11, 2013 at 2:50 pm
  11. Posts: 35

    Say you wanted to have “writing” in/on the glass (like a mason jar) Would you apply the text mesh before or after “turning it to glass”? Would there be inherent difficulties here?

    #
    11
    Feb 11, 2013 at 2:59 pm
    • Posts: 2971

      Unless you’re going for really close-up shots, this is something that would probably be best as a bump or displacement map.

      #
      11.1
      Feb 11, 2013 at 3:28 pm
    • Posts: 223

      Great question! What do you mean apply the text mesh? If I were you, I’d sew the text geo into the geo of the mason jar for rendering.

      #
      11.2
      Feb 11, 2013 at 3:40 pm
    • Posts: 4

      if you want it bumped i found the best way was to make a normal map and map that to the glass uv that is how i did the Jack daniels and Bottle sizes on the image that is in the galary above

      #
      11.3
      Mar 4, 2013 at 1:33 pm
  12. Posts: 1

    Now that’s just ace! Cheers Kent!

    #
    12
    Feb 11, 2013 at 3:28 pm
  13. Posts: 223

    Thanks so much everyone for the positive feedback! Very encouraging comments :)

    #
    13
    Feb 11, 2013 at 4:19 pm
  14. Posts: 5

    Come on paypal! Why does it take so long to get your money on it.. Either way, probably I will see this tomorrow, looks promising!

    #
    14
    Feb 11, 2013 at 4:40 pm
  15. To solve artifacs in coincident faces, instead of deleting faces in th glass, you’d better scale up the wine geometry, so its side faces lies inside the glass.

    Same result an you don’t lose geometry in the case you need to “put some more wine”.

    #
    15
    Feb 11, 2013 at 8:26 pm
  16. In facking caustics, if you multiply the ColorRamp o lose any color information (needed to get color caustics).
    An alternative to get overbright caustics areas is to set RGB values greater than 1 in the ColorRamp.

    #
    16
    Feb 11, 2013 at 8:43 pm
    • Posts: 223

      Great tips Adriano! I really like your idea for scaling the wine geo up :)

      #
      16.1
      Feb 11, 2013 at 9:54 pm
  17. Posts: 27

    Very nice! thx

    #
    17
    Feb 12, 2013 at 12:24 am
  18. Posts: 39

    Is it right the start blend bring the final scene loaded? :(

    #
    18
    Feb 12, 2013 at 6:48 am
    • Posts: 454

      Yes you can save a scene as default by pressing CTRL+U, then the scene will open when you start blender

      #
      18.1
      Feb 12, 2013 at 7:32 am
  19. Posts: 14

    Really great tut. I especially appreciate how you are trying to balance visual effect with render times. I wish more people would include render times with there scenes and/or tuts. Something else that would be very helpful for those of us who are trying to get up to speed with cycles is to know what equipment you are using. Not in general, but specific to that project. Thanks to all of you for the great tutorials.

    #
    19
    Feb 12, 2013 at 9:11 am
    • Posts: 223

      You make a great point. I regrettably never think to include that info. I’ll make an effort to always include that when addressing something Cycles-related.

      My machine is a MacPro3,1 Quad-Core Intel Xeon 2.8 GHz, 12 GB ram, with a Quadro FX 5600

      #
      19.1
      Feb 12, 2013 at 8:54 pm
  20. Posts: 24

    Wow quadrupled! This is absolutely brilliant and timed to perfection! I am creating some stained glass textures for a customer and trying to work out the caustics nearly had me in tears, and I’m not prone to crying (or screaming) …

    Thank you, Kent and of course the person who came up with it. This tutorial is so appreciated, I set my Citizen payments to repeat. I am now a citizen for life!

    #
    20
    Feb 12, 2013 at 9:51 am
  21. Posts: 9

    Where do you get your Enviroment Textures? I have been looking eveywhere and can’t find any good ones. Please help:)

    #
    21
    Feb 12, 2013 at 10:41 am
  22. Posts: 2

    Glad I watched this tutorial since there were so many things I had some knowledge of that were fleshed out and explained fully, particularly the optimisation and the mentions of using the lamp instead of the plane.

    #
    23
    Feb 12, 2013 at 2:52 pm
    • Posts: 223

      Thank you for the encouraging feedback. I’m glad you watched it too :)

      #
      23.1
      Feb 12, 2013 at 9:08 pm
  23. Posts: 21

    Thanks for the tutorial some interesting techniques, love the faking of caustics as my computer is no hero :)

    #
    24
    Feb 12, 2013 at 3:34 pm
  24. Posts: 5

    Kent, you’re a great asset to CG Cookie. Glad to have you doing tutorials. Very handy to have your expertise readily available.

    #
    25
    Feb 12, 2013 at 5:58 pm
  25. Posts: 96

    Cheers.

    Looking forward to watching this.

    #
    26
    Feb 13, 2013 at 6:05 am
  26. Posts: 55

    I’m a citizen again thanks to your awesome tutorial Kent :D

    #
    27
    Feb 13, 2013 at 6:24 am
  27. Posts: 3

    this was a great tutorial. well presented and with a lot of great tips.

    #
    28
    Feb 13, 2013 at 10:44 am
  28. Posts: 10

    Hi,
    This is nice, thank you. As with most video tutorials, I wish you talked a little slower and had a script.

    I am at about 4 min into the tutorial where you first open your render window. So far so good, then, my render window is bring pink. Where did this color come from? I started with your start blend file and hid everything using H, except for the table and the glass. I hid the light too. Mine renders, but its pink! Any ideas why and what I can do? Thx
    Joey

    #
    29
    Feb 13, 2013 at 7:55 pm
    • Posts: 223

      It sounds like your environment image isn’t sourcing correctly. Open your world properties and re-source the environment image (which is included with the source files)

      #
      29.1
      Feb 14, 2013 at 12:41 am
  29. Posts: 40

    This is a really interesting tutorial. The biggest challenge to me is to optimize my render times so I can use Blender in production.

    #
    30
    Feb 14, 2013 at 6:32 am
  30. Posts: 6

    Great tutorial and very educational! So thank you very much!

    #
    31
    Feb 14, 2013 at 11:43 am
  31. Posts: 71

    Good job.

    #
    32
    Feb 15, 2013 at 8:50 am
  32. Posts: 3

    Great tutorials, really useful. Great insight into how glass ‘works’. You have a very quick Mac! I noticed the theme you are using, it’s really nice, would be great to try. Is it available or is it a personal one?

    #
    33
    Feb 15, 2013 at 12:39 pm
    • Posts: 2971

      The theme is available in Blender via User Preferences > Theme > Modo :)

      #
      33.1
      Feb 15, 2013 at 12:57 pm
      • Posts: 3

        Thanks Jonathan, that’s much better! :)

        #
        33.1.1
        Feb 16, 2013 at 3:05 am
  33. Claiton
    Posts: 1

    I used to love blendercookie, but now you almost every tutorial is for those who pay for them, not against that, but now, for me, this website is dying little by little, god save the capitalism!

    #
    34
    Feb 17, 2013 at 8:25 am
    • Posts: 2971

      Hey Claiton,

      I can understand your disappointment, but rest assured many more free tutorials are coming :) Are there any particular topics you’re interested in?

      #
      34.1
      Feb 17, 2013 at 12:53 pm
  34. Posts: 1

    Thanks Kent, Clear and concise. I learned some basics from the free stuff on Blender Cookie. But today, I had to become a citizen!
    This stuff is great and lots of fun! I now know what an equirectangular image is and thanks to your tutorial, I have put my little space ship model into your cathedral image and the view through the ships curved glass canopy looks real! (A little wierd, unless you’re a “2001: a Space Odyssey” fan.) So, the big question: Is there a way to get this same glass effect with real video footage as the background? I’d like to land my ship in the field behind my house. (I’ve done this in the compositor even with realistic shadows but the glass canopy, of course, only reflects whats in the 3D world.)

    #
    35
    Feb 18, 2013 at 9:49 pm
    • Posts: 223

      I really appreciate the positive feedback and welcome to citizenship! :)

      You ask a great question. If it were me I’d first track the footage with the motion tracker, then use that as your backplate for capturing matching refractions through the glass. For the reflections I’d try to find a similar environment texture map as your backyard and use that for your world. Hope that makes sense and helps! :)

      #
      35.1
      Feb 21, 2013 at 11:38 pm
  35. Posts: 5

    Have been struggling with glass for a while, thanks Kent.

    #
    36
    Mar 2, 2013 at 8:39 am
  36. Posts: 2

    I love this tutorial! I have needed a tutorial on glass recently – I’m doing a lamp. Problem I’m having is that I am getting little white spots everywhere. Do you know how to fix this? Here is a screen grab of what I’m experiencing.

    http://i.imgur.com/RJLCGmr.jpg

    #
    37
    Mar 4, 2013 at 4:05 pm
    • Posts: 223

      In the render properties look for the ‘Sampling’ drop-down and change the ‘Clamp’ value to 1 or 1.1. That should help clear up those fireflies (white dots)

      #
      37.1
      Mar 4, 2013 at 5:37 pm
  37. Posts: 1

    This tutorial made me become a citizen. Totally worth it!
    Kent, you do explain really well – I could run video in the background just listening and following the instructions without watching it at some point.

    #
    38
    Mar 15, 2013 at 5:24 am
  38. Posts: 18

    Nice! I learn so much from this ones! “Looks like a venn diagram” that made me laugh haha so unexpected xD

    #
    39
    Mar 19, 2013 at 7:37 pm

Leave a Comment

You must be logged in to post a comment.

Close

"Must... Watch... More... Tutorials..!"