Forum

#1 2018-02-25 17:16:32

MegaComputeur
New member

SSS trough doubleSided Glass shader

Hello everybody,
I have a character with glasses, the shader is a glass in doubleSided mode, because I want a deformation trough the glass (with IOR), but this shader "cancel" the SSS of the character. Have I missed something ?

Here's the character with trensparent mode in the Glass shader (the SSS is ok):

https://preview.ibb.co/njnmqx/sss_Test_Thin_Glas.png

Here's the character with doubleSided mode in the Glass shader  (no SSS):

https://preview.ibb.co/fhSaiH/sss_Test_DSGlas.png

And here's a test with a simple scene ( with doubleSided glass > no SSS):

https://preview.ibb.co/gwJecc/sssTest.png

EDIT : The thinGlass mode in the glass shader also override the SSS.

Thank's !
Leo Brunel, megaComputeur

Last edited by MegaComputeur (2018-02-25 17:33:51)

Offline

 

#2 2018-02-28 18:10:38

Ben
Guerilla dev, the guy to hug

Re: SSS trough doubleSided Glass shader

Hi,

This is related to the SSS Approximation Depth of the Surface/Surface2 shader.
This basically switch the SSS to a basic diffuse above a bounce limit, to improve render time.

In the case of transparent glass, the glass does not do refraction but uses opacity, so this does not change the behaviour of SSS, while using other modes will do proper refraction (even Thin Glass, because of roughness) and the SSS will automatically switch back to diffuse after a refraction.

Just increase the SSS Approximation Depth to 2 or more to get rid of this.

Ben


Benjamin 'Ben' Legros
Guerilla developer
http://www.guerillarender.com

Offline

 

#3 2018-02-28 18:27:06

MegaComputeur
New member

Re: SSS trough doubleSided Glass shader

Hi !
Thanks, it works smile

Leo Brunel, megaComputeur

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB