Page 1 of 1
Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 10:44 am
by juangea
HI there.
So I'm trying to create some curtains, this is the material:
CPU Render:
OpenCL Render:
Exact same material, exact same object, exact everything.
@dade @B.Y.O.B. Any ideas of what is happening? something is not working or is broken with OpenCL right now.
Re: Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 11:00 am
by Dade
Mixing a solid material (like Disney) with a transparent one (like glossy translucent) can be a recipe for a lot of troubles: does it happen if you use the glossy translucent material alone ?
Re: Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 11:33 am
by juangea
Yes, it seems the problem is the mix of translucent and disney, there is a difference in brightness when you mix that, I have not tested with velvet or matte, will do.
How can I achieve a translucent curtain feeling without breaking laws of physics? hahaha
Re: Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 11:37 am
by Dade
Have you tried to use Disney with just some transparency (or opacity, I don't remember how it is called in BlendLuxCore, it is a generic material setting available for all LuxCore materials) ? It would, by far, the fastest solution to render.
Re: Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 11:40 am
by juangea
It's what I'm doing right now, but it looses the effect of the ligth scattering that make you perceive the window border, but in a blurred/diffuminated way, like in some real curtains, with transparency in the end we get the hard border of the window, so the effect is not the same
Re: Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 12:02 pm
by juangea
Confirmed, Disney + Translucency does somethign weird in OpenCL
OpenCL:
CPU:
Shader:
Blend file:
http://pasteall.org/blend/index.php?id=52783
Re: Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 4:44 pm
by Dade
I should have fixed the problem: it was a bug in OpenCL code when mixing transparent and not transparent materials.
Re: Something is off with translucency in OpenCL
Posted: Wed Jan 15, 2020 4:59 pm
by juangea
Awesome! Thanks @Dade