Dirt/Fingerprints on Glass

Use this forum for general user support and related questions.
Taka
Posts: 41
Joined: Wed Mar 20, 2019 7:24 pm

Dirt/Fingerprints on Glass

Post by Taka » Thu Apr 04, 2019 5:27 pm

Hi there,
Can anybody tell me how to achieve dirt/fingerprint effects on the glass material? I can use "Rough Glass Material" and feed a texture to the roughness slot but then glass gets much darker, even with lowest roughness setting of "Roughness 0.0010".
First image: regular glass
Second image: rough glass - Roughness 0.001
Thanks
Attachments
Glass_Regular.jpg
Glass_Rough.jpg

User avatar
Dade
Developer
Developer
Posts: 2770
Joined: Mon Dec 04, 2017 8:36 pm

Re: Dirt/Fingerprints on Glass

Post by Dade » Thu Apr 04, 2019 6:05 pm

May be, you could try to use glass material and apply the texture with the finger prints to bump map slot :idea:

The texture should probably have noise inside the finger prints.
Support LuxCoreRender project with salts and bounties

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

Re: Dirt/Fingerprints on Glass

Post by Taka » Thu Apr 04, 2019 7:08 pm

Dade,
Thanks for your reply. Your suggestion sort of gives me a look I'm after viewing from far, but not close view. So far, mixing Glass material with Glossy Translucent(with fingerprint texture for Roughness) gives similar look I'm looking for without darkening the glass.

I have another question. (Maybe I should make a new post...but)
When I link objects that have particles applied, say a tree with leaves as particles, I see the leaves in viewport but disappear in the renderings. Is this a normal behavior of LuxCore? Appending works as it should.

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2809
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Dirt/Fingerprints on Glass

Post by B.Y.O.B. » Fri Apr 05, 2019 12:38 am

You could try glossycoating over the glass, with textured roughness.
Taka wrote:
Thu Apr 04, 2019 7:08 pm
I have another question. (Maybe I should make a new post...but)
When I link objects that have particles applied, say a tree with leaves as particles, I see the leaves in viewport but disappear in the renderings. Is this a normal behavior of LuxCore? Appending works as it should.
This is a limitation of the addon, I will try to fix this after 2.8 port.
https://github.com/LuxCoreRender/BlendL ... issues/228
Support LuxCoreRender project with salts and bounties

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

Re: Dirt/Fingerprints on Glass

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

B.Y.O.B. wrote:
Fri Apr 05, 2019 12:38 am
You could try glossycoating over the glass, with textured roughness.
Thanks B.Y.O.B.
But when I use Glossy Coating over the glass, I get a weird result with open cl. View port rendering shows blue material and final shows green material. It is supposed be a clear glass?? Seems fine with cpu rendering though. Am I doing something wrong?
Attachments
Glass_with_GlossyCoating.JPG

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2809
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Dirt/Fingerprints on Glass

Post by B.Y.O.B. » Fri Apr 05, 2019 4:22 pm

Can you upload the scene?
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Developer
Posts: 2770
Joined: Mon Dec 04, 2017 8:36 pm

Re: Dirt/Fingerprints on Glass

Post by Dade » Fri Apr 05, 2019 4:41 pm

Taka wrote:
Fri Apr 05, 2019 4:10 pm
But when I use Glossy Coating over the glass, I get a weird result with open cl. View port rendering shows blue material and final shows green material. It is supposed be a clear glass?? Seems fine with cpu rendering though. Am I doing something wrong?
It smells like a driver bug, what GPU are you using ? Have you tried to updated your drivers ? Unfortunately, vendors often release broken OpenCL drivers.

A good crosscheck is to run with the OpenCL CPU device, if it works, 99.99% of the times is a driver bug.
Support LuxCoreRender project with salts and bounties

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

Re: Dirt/Fingerprints on Glass

Post by Taka » Fri Apr 05, 2019 4:41 pm

Here you go! Thanks for checking it!
Attachments
Materials_Base_LuxCore.blend
(8.11 MiB) Downloaded 23 times

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2809
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Dirt/Fingerprints on Glass

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

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

Re: Dirt/Fingerprints on Glass

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

NVidias, using 419.67 drivers.

GTX 1060
gtx1060.jpg
Q M5000
Q M5000.jpg
Both
GTX+Q.jpg
Both + CPU OCL
GTX+Q+CPU.jpg
CPU Path
CPU.jpg

Post Reply