Bump of Mix Material not showing with OpenCL

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
Taka
Donor
Donor
Posts: 65
Joined: Wed Mar 20, 2019 7:24 pm

Bump of Mix Material not showing with OpenCL

Post 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.
Attachments
MixMaterial_CPU.png
MixMaterial_OpenCL.png
MixMaterial_NodeSetup.JPG
MixMaterial_Test.blend
(911.34 KiB) Downloaded 127 times
User avatar
Egert_Kanep
Posts: 237
Joined: Tue Mar 13, 2018 10:34 am

Re: Bump of Mix Material not showing with OpenCL

Post by Egert_Kanep »

That is because for opencl you have to put bump into mix material bump input
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Bump of Mix Material not showing with OpenCL

Post 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.
Support LuxCoreRender project with salts and bounties
Taka
Donor
Donor
Posts: 65
Joined: Wed Mar 20, 2019 7:24 pm

Re: Bump of Mix Material not showing with OpenCL

Post 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?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Bump of Mix Material not showing with OpenCL

Post 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:
Attachments
2019-04-30_19-00-19.png
CPU
CPU
OpenCL
OpenCL
Taka
Donor
Donor
Posts: 65
Joined: Wed Mar 20, 2019 7:24 pm

Re: Bump of Mix Material not showing with OpenCL

Post by Taka »

Perfect! Thanks B.Y.O.B.!
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Bump of Mix Material not showing with OpenCL

Post by B.Y.O.B. »

By the way, could LuxCore do this internally to hide this problem from the user?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Bump of Mix Material not showing with OpenCL

Post 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 :!:
Support LuxCoreRender project with salts and bounties
Post Reply