Dirt/Fingerprints on Glass

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

Re: Dirt/Fingerprints on Glass

Post by kintuX »

Finger prints on glass, using roughness:
fingersprint-crop.jpg
LC2_fingersprint_nodes.gif
Taka
Donor
Donor
Posts: 65
Joined: Wed Mar 20, 2019 7:24 pm

Re: Dirt/Fingerprints on Glass

Post by Taka »

From my testing as you can see at the beginning of this post, using rough option makes the glass quite darker.
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

Re: Dirt/Fingerprints on Glass

Post 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
Taka
Donor
Donor
Posts: 65
Joined: Wed Mar 20, 2019 7:24 pm

Re: Dirt/Fingerprints on Glass

Post 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.
Attachments
GlassTest_RegularGlass.jpg
GlassTest_RoughGlass.jpg
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: Dirt/Fingerprints on Glass

Post 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
Taka
Donor
Donor
Posts: 65
Joined: Wed Mar 20, 2019 7:24 pm

Re: Dirt/Fingerprints on Glass

Post 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
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Dirt/Fingerprints on Glass

Post 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).
Support LuxCoreRender project with salts and bounties
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Dirt/Fingerprints on Glass

Post 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.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Dirt/Fingerprints on Glass

Post 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
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Dirt/Fingerprints on Glass

Post 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
Post Reply