KeyShot Forum

Technical discussions => General discussion => Topic started by: ldichiara on May 10, 2021, 07:43:44 AM

Title: Label applications on Clear (Glass or Plastic) materials
Post by: ldichiara on May 10, 2021, 07:43:44 AM
Hi All..
I wanted to throw this out to the community to see how others tackle and/or approach this issue...
When it comes to rendering - I do a lot of bottles - usually constructed out of clear glass or plastic. A challenge that frequently comes up is when applying a label - (in many cases a logo) more often than not I get a doubling effect which is undesired and not what I want as a final output. This is because of the front and back surface of the material and how it is treated.
One approach I have used is to apply a different color to may external surface in my CAD application (Solidworks) so when it comes into keyshot it is treated as a different surface OR I will go to my material graph and apply an occlusion setting on the material to pull back the doubling effect that way.

In both cases, I think there are tradeoffs and was wondering if anyone else does this differently or had a better approach. This usually presents itself with direct logos applied to glass or plastic like you would see on a liquor or cosmetic bottle application...regular "labels" are fine.

L
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: INNEO_MWo on May 10, 2021, 09:12:58 AM
Attached you'll find a scene with 3 labels on a solid glass.
The top label is mapped planar with a depth of 0, so you'll see it on the backside and in a reflection, as well.
The middle one has a depth of 0,01 (mm), so it is only noticeable in the inner reflection.
The bottom label has an experimental feature (Ray mask) applied, so that is not visible in the reflection. But if you move the camera on the back, you won't see the label.


Hope that helps

CheerEO
Marco

PS: written in short form, see attached scene for detailed information.
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: DerekCicero on May 10, 2021, 10:56:31 AM
Here is a Quick Tip we just posted on this topic. Subscribe to our YouTube channel as we post these every week.

KeyShot 10 Quick Tip - Adding Textures and Materials to Labels (https://youtu.be/HPvNygFmfts)
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: ldichiara on June 10, 2021, 04:24:06 PM
Thanks Marco - so you are saying to try using planar mapping even on a cylindrical surfaces?
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: INNEO_MWo on June 11, 2021, 12:07:32 AM
You can use the cylindrical mapping as well.

Attached you'll find a scene with 2 similar solutions.
But the surfaces of the glass body are not split.

Hope that helps to find your best practice.

CheerEO
Marco
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: ldichiara on June 11, 2021, 04:35:02 AM
Marco
This is great. Thank you. I've been using an occlusion mask but I wasn't sure if it was compromising the overall visual as it seemed to have compromised the quality of the logo but it may be that that is not the case.

One last question - I'm on Keyshot Version 10 - and I don't see the experimental features checkbox in the preferences where it used to live; do you know where the toggle settings are to turn it on or perhaps it's incorporated already in the latest version to get the ray mask feature.

Thank you for the help.

Lenny
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: INNEO_MWo on June 11, 2021, 08:21:20 AM
Hello Lenny.

To activate the experimental features, just follow some simple steps:
- Close KeyShot
- Open the ks10settings.xml from your resources path with a text editor
- search for "experi" and you'll find the parameter <experimental_features bool="false"/>
- change the value into <experimental_features bool="true"/>
- close and save the ks10settings.xml
- restart KeyShot

In the material graph you'll find the ray mask as a utility node.


CheerEO
Marco
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: ldichiara on June 14, 2021, 04:20:25 AM
Thank you for this Marco. Appreciate the help!

Best,
Lenny
Title: Re: Label applications on Clear (Glass or Plastic) materials
Post by: tomlai on September 08, 2021, 08:58:23 PM
Does the "ray mask" work the same way in GPU Mode?
I am able to see functionality in CPU mode and not GPU mode.