This doesn't look right… is something wrong with my glass refraction?

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.
Post Reply
happysmash27
Posts: 20
Joined: Sun May 06, 2018 2:36 am

This doesn't look right… is something wrong with my glass refraction?

Post by happysmash27 »

I noticed that glass looks weird inside of this modification of a downloaded vehicle. Even after I removed the accidental duplicate plane I made and connected the two planes of glass, it still looked weird:

Image

I made an additional plane to check, just in case some weird modelling escaped me, but it looks weird as well:

Image

Does anyone know what might have gone wrong? I am using Blender 2.79b LuxCore 2.0 rc1 on Gentoo Linux. Even if everything is behaving correctly, I know something must be off, because I'm pretty sure that vehicle glass does not refract in a way that only shows the sky normally…
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: This doesn't look right… is something wrong with my glass refraction?

Post by B.Y.O.B. »

Have you made sure that the windows have thickness and that the normals are pointing in the right directions?
The easiest way to add thickness to a plane is to add a solidify modifier.
happysmash27
Posts: 20
Joined: Sun May 06, 2018 2:36 am

Re: This doesn't look right… is something wrong with my glass refraction?

Post by happysmash27 »

Yes; the car window had two planes which I connected to make a solid, and the experimental one is just a cube which has been thinned along one axis.
happysmash27
Posts: 20
Joined: Sun May 06, 2018 2:36 am

Re: This doesn't look right… is something wrong with my glass refraction?

Post by happysmash27 »

Anyone?
happysmash27
Posts: 20
Joined: Sun May 06, 2018 2:36 am

Re: This doesn't look right… is something wrong with my glass refraction?

Post by happysmash27 »

Ooh, this is interesting... It appears that if I get a cube, scale it, then add material, it works fine, but if I add material then manually modify it, it has the bug...

Image
happysmash27
Posts: 20
Joined: Sun May 06, 2018 2:36 am

Re: This doesn't look right… is something wrong with my glass refraction?

Post by happysmash27 »

I made the glass slightly thicker and now it doesn't happen anymore on the manually modelled one. What is going on here?

Image
happysmash27
Posts: 20
Joined: Sun May 06, 2018 2:36 am

Re: This doesn't look right… is something wrong with my glass refraction?

Post by happysmash27 »

Specifically, I changed the distance from the centre from 5mm to 1cm...
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: This doesn't look right… is something wrong with my glass refraction?

Post by B.Y.O.B. »

The glass sheet is probably so thin that it causes numerical precision issues.
If you use the latest alpha version, there is an "Advanced LuxCore Settings" button in the scene properties, unit panel.
You can try to lower or raise the "min. epsilon" value and see if that helps. (E.g. try to lower it to 0.000001 first).

Another option is to make the glass sheet thicker.
Attachments
2018-08-31_09-50-52.png
Post Reply