Hi,
I just noticed that If I use Mix Material, rendering doesn't show bump properly with OpenCL. With CPU, it works as expected.
Bump of Mix Material not showing with OpenCL
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Bump of Mix Material not showing with OpenCL
- Attachments
-
- MixMaterial_Test.blend
- (911.34 KiB) Downloaded 127 times
- Egert_Kanep
- Posts: 237
- Joined: Tue Mar 13, 2018 10:34 am
Re: Bump of Mix Material not showing with OpenCL
That is because for opencl you have to put bump into mix material bump input
Re: Bump of Mix Material not showing with OpenCL
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.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
This is likely to be added in v2.3, just ping me if I forget.
Re: Bump of Mix Material not showing with OpenCL
Thanks for the response. I have a question though. How do you control the mix factor when you use mix material bump input?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
Re: Bump of Mix Material not showing with OpenCL
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
Perfect! Thanks B.Y.O.B.!
Re: Bump of Mix Material not showing with OpenCL
By the way, could LuxCore do this internally to hide this problem from the user?
Re: Bump of Mix Material not showing with OpenCL
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