Author Topic: tinted or coated glass  (Read 2480 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick Pugh

  • Newbie
  • *
  • Posts: 4
tinted or coated glass
« on: April 07, 2018, 08:30:46 am »
Hi All,

I am new to this forum but have been using Keyshot for 3 years and love it :D :D.

One thing I have been trying to do is apply a metallic or optical coating to glass like the reflective sunglasses in the attached photo. There are so many controls for glass density, refraction, color, etc but I can't find a way to add this type of property to the surface of the glass, is this possible? It would also be useful for automotive and architectural window tinting.

Thanks, Nick

Offline Esben Oxholm

  • KeyShot Beta
  • Hero Member
  • *****
  • Posts: 1673
  • esbenoxholm.dk/keyshot-video-course
    • Freelance CG Artist
Re: tinted or coated glass
« Reply #1 on: April 07, 2018, 11:35:54 am »
Hi Nick.

One solution is to use a color gradient set to view direction as the color.

You can see how here:

Offline Nick Pugh

  • Newbie
  • *
  • Posts: 4
Re: tinted or coated glass
« Reply #2 on: April 07, 2018, 02:04:44 pm »
Thanks for the video tip, it is close to what I need to do but not exactly right. The main thing thats missing with this approach is that the metallic side is totally opaque, if you notice in the photo ref you can see some of the girls skin and eye through parts of the glass that are shaded. This is important especially if the material is shown in dim conditions with lights inside it, such as an office building at dusk with metallic tinting. I am trying to get this effect on a car where the windows have a gold tint (like an astronauts gold solar face shield) but you can see some of the interior inside the reflections, thanks again!

Offline Nick Pugh

  • Newbie
  • *
  • Posts: 4
Re: tinted or coated glass
« Reply #3 on: April 07, 2018, 02:45:24 pm »
I guess the simplest way to ask the question is:

Is there a way to adjust the opacity of a metallic material like chrome or gold?

Offline bdesign

  • Hero Member
  • *****
  • Posts: 795
Re: tinted or coated glass
« Reply #4 on: April 08, 2018, 10:23:56 pm »
Hey Nick-

You can use a Color To Number node to control the opacity of a material. Set the "Output From" value to the desired opacity. In my example render, the opacity of the gold Metal material label is set to .4.

Cheers,
Eric




Offline Nick Pugh

  • Newbie
  • *
  • Posts: 4
Re: tinted or coated glass
« Reply #5 on: April 09, 2018, 06:54:00 am »
YES!!!  :D :D :D

Thanks Eric, thats the solution. The only thing I could not replicate on the screenshot you sent was the backside output mask node, where is that one hidden? Even without this I got the transparent metallic look I was hoping for, maybe this worked since my windows are solid with 2 sides and edges?

Nick

Offline bdesign

  • Hero Member
  • *****
  • Posts: 795
Re: tinted or coated glass
« Reply #6 on: April 09, 2018, 01:37:15 pm »
Hey Nick-

The lens model in my example is also a solid. I separated the outer convex surface by splitting with the Geometry Editor. The Surface Backside Mask is used here to apply the metal coating only to the front side of this split off piece. The inner concave surface and the edge have the Glass (Solid) material without the Metal label. The SBM is not necessary for the overall Opacity mapping to work, as you have discovered. If you are using KS7, you will need to edit the xml file to make the SBM available (see this thread: https://www.keyshot.com/forum/index.php?topic=20658.msg87522#msg87522 ). If using KS6, go to Edit>Preferences>Advanced and enable Experimental Features.

Cheers,
Eric
« Last Edit: April 09, 2018, 02:18:03 pm by bdesign »