Dirt/Fingerprints on Glass

Use this forum for general user support and related questions.
kintuX
Posts: 477
Joined: Wed Jan 10, 2018 2:37 am

Re: Dirt/Fingerprints on Glass

Post by kintuX » Fri Apr 05, 2019 5:41 pm

Finger prints on glass, using roughness:
fingersprint-crop.jpg
LC2_fingersprint_nodes.gif

Taka
Posts: 42
Joined: Wed Mar 20, 2019 7:24 pm

Re: Dirt/Fingerprints on Glass

Post by Taka » 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.

kintuX
Posts: 477
Joined: Wed Jan 10, 2018 2:37 am

Re: Dirt/Fingerprints on Glass

Post by kintuX » Fri Apr 05, 2019 6:33 pm

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
Posts: 42
Joined: Wed Mar 20, 2019 7:24 pm

Re: Dirt/Fingerprints on Glass

Post by Taka » Fri Apr 05, 2019 7:26 pm

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

User avatar
epilectrolytics
Donor
Posts: 597
Joined: Thu Oct 04, 2018 6:06 am

Re: Dirt/Fingerprints on Glass

Post by epilectrolytics » 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.
Screen Shot.jpg
MBPro 15" 16GB i7-4850HQ GT750M, MacOS 10.13.6 & Win10Pro PC 16GB Ryzen 2700X, 2 x RTX 2070

Taka
Posts: 42
Joined: Wed Mar 20, 2019 7:24 pm

Re: Dirt/Fingerprints on Glass

Post by Taka » Fri Apr 05, 2019 10:39 pm

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
Posts: 3398
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Dirt/Fingerprints on Glass

Post by Dade » 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).
Support LuxCoreRender project with salts and bounties

Fox
Posts: 318
Joined: Sat Mar 31, 2018 11:17 am

Re: Dirt/Fingerprints on Glass

Post by Fox » Wed Apr 10, 2019 3:01 pm

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
Posts: 3016
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Dirt/Fingerprints on Glass

Post by B.Y.O.B. » 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
Support LuxCoreRender project with salts and bounties

Fox
Posts: 318
Joined: Sat Mar 31, 2018 11:17 am

Re: Dirt/Fingerprints on Glass

Post by Fox » Wed Apr 10, 2019 3:31 pm

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.7z
(63.29 KiB) Downloaded 27 times
red test.jpg

Post Reply