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

Dirt/Fingerprints on Glass

Post by Taka »

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

Re: Dirt/Fingerprints on Glass

Post by Dade »

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

Re: Dirt/Fingerprints on Glass

Post by Taka »

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

Re: Dirt/Fingerprints on Glass

Post by B.Y.O.B. »

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

Re: Dirt/Fingerprints on Glass

Post by Taka »

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

Re: Dirt/Fingerprints on Glass

Post by B.Y.O.B. »

Can you upload the scene?
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 »

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

Re: Dirt/Fingerprints on Glass

Post by Taka »

Here you go! Thanks for checking it!
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. »

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
kintuX
Posts: 810
Joined: Wed Jan 10, 2018 2:37 am

Re: Dirt/Fingerprints on Glass

Post by kintuX »

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