11
$\begingroup$

example

I'm looking for a material node setup, which makes it possible to create plastic objects like this. I'm mainly interested in the shiny edges. The glass node is nearest but not perfect.

$\endgroup$

1 Answer 1

16
$\begingroup$

The problem with this kind of model is that the light needs to bounce around inside the glass many times to reach the edges and create the shiny edges.

A glass shader is what you need, but you also need to crank the number of Glossy bounces way up. See this comparison with the default number of Glossy Bounces (top) vs. the maximum number of Glossy Bounces (bottom):

enter image description here

Note that I also increased the total maximum number of bounces.

In the bottom image there is much more edge glow, however the rendering time has also increased by almost 70%. For larger models this effect will probably be even stronger since the light will bounce inside the glass for a longer time.
Be aware that if your model is so large or complicated that the light will need more than 1024 bounces to reach an edge you will not get shiny edges there.

The model I used in my example is just a scaled cube with a simple glass shader and an emission shader on one of the faces.

enter image description here enter image description here

EDIT 1:
Make sure the color of your glass shader is set to (almost) white. Otherwise every bounce will darken the reflected light and there won't be much left for shiny edges. Unfortunatly the default color of the glass shader is grey and the light will not bounce for long.

EDIT 2:
Here is another small test scene:

enter image description here

I gave the edges a slight roughness and used a texture for the displacement of the surface. You can download the .blend file as reference.

$\endgroup$
4
  • $\begingroup$ Any chance on getting the link back up? Thx a bunch. Arn $\endgroup$
    – user21439
    Commented Feb 1, 2016 at 17:47
  • $\begingroup$ @Arn Sure, I uploaded it again. $\endgroup$
    – maddin45
    Commented Feb 1, 2016 at 21:43
  • $\begingroup$ @maddin45 can you please upload the file to blend-exchange.giantcowfilms.com instead. On pasetall.org the file will be gone in a few months, and the answer will be incomplete again. Thanks. $\endgroup$
    – user1853
    Commented Feb 2, 2016 at 7:10
  • $\begingroup$ @cegaton I did not know this website, thanks for the info. I updated the download. $\endgroup$
    – maddin45
    Commented Feb 2, 2016 at 12:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .