Page 1 of 1

shading errors on opencl

Posted: Thu Sep 06, 2018 11:06 am
by lacilaci
I've noticed this behavior when rendering using path+opencl
It was discussed in some threads somewhat before. Long triangles are rendering dark. However on cpu it's not a problem, why is that?

Also raising min epsilon helps a bit but in my example rough glass is somewhat darker anyways. And in other cases with some cad files backfaces render dark/not black using gpu but on cpu it's ok.
Which can be pretty annoying when everything looks ok and then I switch to cpu+gpu and suddenly all kinds of artifacts appear. Is this something that can be fixed?

Attached also a primitive example scene(just use any hdri with it)

Re: shading errors on opencl

Posted: Thu Sep 06, 2018 11:20 am
by lacilaci
rough glass, cpu+gpu vs gpu only. 20 sec. rendering

Re: shading errors on opencl

Posted: Thu Sep 06, 2018 11:25 am
by Sharlybg
put minimum epsilon value to 0.0001 instead of 0.00001 :
dgr.jpg
dgr.jpg (19.43 KiB) Viewed 3265 times

Re: shading errors on opencl

Posted: Thu Sep 06, 2018 11:32 am
by lacilaci
maybe for better illustration, cpu vs gpu roughglass.
cpu roughglass is also extremely slow to compute.

Re: shading errors on opencl

Posted: Thu Sep 06, 2018 11:35 am
by lacilaci
Sharlybg wrote: Thu Sep 06, 2018 11:25 am put minimum epsilon value to 0.0001 instead of 0.00001 :

dgr.jpg
I've mentioned this in my first post..
This doesn't help always, and it makes problem less visible not gone completely in other cases(and problem is not visible on cpu only). Also, rough glass is rendering differently with gpu than on cpu.