Page 1 of 1

Bump of Mix Material not showing with OpenCL

Posted: Mon Apr 29, 2019 11:03 pm
by Taka
Hi,

I just noticed that If I use Mix Material, rendering doesn't show bump properly with OpenCL. With CPU, it works as expected.

Re: Bump of Mix Material not showing with OpenCL

Posted: Tue Apr 30, 2019 7:12 am
by Egert_Kanep
That is because for opencl you have to put bump into mix material bump input

Re: Bump of Mix Material not showing with OpenCL

Posted: Tue Apr 30, 2019 8:37 am
by Dade
Egert_Kanep wrote: Tue Apr 30, 2019 7:12 am That is because for opencl you have to put bump into mix material bump input
Yup, it is one of the very few features not supported by GPU rendering: it doesn't support mix/coating/etc. of bump/normal mapping.

This is likely to be added in v2.3, just ping me if I forget.

Re: Bump of Mix Material not showing with OpenCL

Posted: Tue Apr 30, 2019 4:28 pm
by Taka
Egert_Kanep wrote: Tue Apr 30, 2019 7:12 am That is because for opencl you have to put bump into mix material bump input
Thanks for the response. I have a question though. How do you control the mix factor when you use mix material bump input?

Re: Bump of Mix Material not showing with OpenCL

Posted: Tue Apr 30, 2019 5:01 pm
by B.Y.O.B.
Taka wrote: Tue Apr 30, 2019 4:28 pm How do you control the mix factor when you use mix material bump input?
You use a mix texture (Add -> Utils -> Math, switch to "Mix") like in the following setup:

Re: Bump of Mix Material not showing with OpenCL

Posted: Tue Apr 30, 2019 6:19 pm
by Taka
Perfect! Thanks B.Y.O.B.!

Re: Bump of Mix Material not showing with OpenCL

Posted: Tue Apr 30, 2019 6:30 pm
by B.Y.O.B.
By the way, could LuxCore do this internally to hide this problem from the user?

Re: Bump of Mix Material not showing with OpenCL

Posted: Tue Apr 30, 2019 7:26 pm
by Dade
B.Y.O.B. wrote: Tue Apr 30, 2019 6:30 pm By the way, could LuxCore do this internally to hide this problem from the user?
I doubt, you could have all kind of chains of mix(s) with all kind of bump/no bump combinations. I doubt it is possible to sort out the thing automatically; it would require to dynamically generate images with all connected problems (i.e. at what resolution, etc.). It is probably easier to just add complete bump support to OpenCL recursive materials :!: