Page 1 of 2

Dirt/Fingerprints on Glass

Posted: Thu Apr 04, 2019 5:27 pm
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

Re: Dirt/Fingerprints on Glass

Posted: Thu Apr 04, 2019 6:05 pm
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.

Re: Dirt/Fingerprints on Glass

Posted: Thu Apr 04, 2019 7:08 pm
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.

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 12:38 am
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

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 4:10 pm
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?

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 4:22 pm
by B.Y.O.B.
Can you upload the scene?

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 4:41 pm
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.

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 4:41 pm
by Taka
Here you go! Thanks for checking it!

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 5:15 pm
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?

Re: Dirt/Fingerprints on Glass

Posted: Fri Apr 05, 2019 5:32 pm
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