Page 2 of 2

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 5:41 pm
by kintuX
Finger prints on glass, using roughness:
fingersprint-crop.jpg
LC2_fingersprint_nodes.gif

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 6:28 pm
by Taka
From my testing as you can see at the beginning of this post, using rough option makes the glass quite darker.

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 6:33 pm
by kintuX
Taka wrote: Fri Apr 05, 2019 6:28 pm From my testing as you can see at the beginning of this post, using rough option makes the glass quite darker.
Yes, i too found it too strong at first. But that's why "Math Divide" node is there, to lessen the effect.

PS
Here I divided by 25 & set Glass Color to pure White:
fingersprintLight_side.jpg
fingersprintLight_frontish.jpg
& Divided by 50:
fingersprintLight_front50.jpg

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 7:26 pm
by Taka
Thanks kintuX,
Here is another test using rough option.
First image regular glass
Second image rough option enabled, roughness set to 0.001(lowest I can set)
As you can see, something is not right.

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 9:06 pm
by epilectrolytics
Why not mix glass with matte?
Also instead of a texture driving roughness directly the texture could mix clear glass with rough glass (instead of matte), minimising the darkening effect.
Screen Shot.jpg

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 10:39 pm
by Taka
epilectrolytics wrote: Fri Apr 05, 2019 9:06 pm Why not mix glass with matte?
Also instead of a texture driving roughness directly the texture could mix clear glass with rough glass (instead of matte), minimising the darkening effect.
That works well! Thanks

Re: Dirt/Fingerprints on Glass

Posted: Wed Apr 10, 2019 10:07 am
by Dade
B.Y.O.B. wrote: Fri Apr 05, 2019 5:15 pm On Nvidia GPU, it looks exactly like on your end (green with PathOCL, blue with RTPathOCL).
On Intel OpenCL CPU device, it's also wrong, see attached image.
Maybe a bug in LuxCore after all?
I should have fixed this problem: it was a bug when using glossy coating with pure specular materials (i.e. glass, mirror).

Re: Dirt/Fingerprints on Glass

Posted: Wed Apr 10, 2019 3:01 pm
by Fox
Dade wrote: Wed Apr 10, 2019 10:07 am
B.Y.O.B. wrote: Fri Apr 05, 2019 5:15 pm On Nvidia GPU, it looks exactly like on your end (green with PathOCL, blue with RTPathOCL).
On Intel OpenCL CPU device, it's also wrong, see attached image.
Maybe a bug in LuxCore after all?
I should have fixed this problem: it was a bug when using glossy coating with pure specular materials (i.e. glass, mirror).
Maybe this fix is not yet in BlendLuxCore, or it's another bug, or not bug at all.
The rough glass with roughness of 0.001 has very strong transmissino color. Set the reflection color to pure red, and roughness of 0.001.
Mixed with clear glass, you need mix factor of 0.000001 in favor of clear glass, to make the rough glass red transmissino color fade out.

Re: Dirt/Fingerprints on Glass

Posted: Wed Apr 10, 2019 3:04 pm
by B.Y.O.B.
There are no changes required in the Blender addon to use this fix.
However, the latest daily build does not yet contain the fix: https://github.com/LuxCoreRender/LuxCore/commits/master

Re: Dirt/Fingerprints on Glass

Posted: Wed Apr 10, 2019 3:31 pm
by Fox
B.Y.O.B. wrote: Wed Apr 10, 2019 3:04 pm There are no changes required in the Blender addon to use this fix.
However, the latest daily build does not yet contain the fix: https://github.com/LuxCoreRender/LuxCore/commits/master
I did build with last commit 6e4635d,
red test.jpg
The attachment red test.jpg is no longer available