Bump of Mix Material not showing with OpenCL

Use this forum for general user support and related questions.
Post Reply
Taka
Posts: 41
Joined: Wed Mar 20, 2019 7:24 pm

Bump of Mix Material not showing with OpenCL

Post by Taka » Mon Apr 29, 2019 11:03 pm

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 14 times

User avatar
Egert_Kanep
Posts: 119
Joined: Tue Mar 13, 2018 10:34 am

Re: Bump of Mix Material not showing with OpenCL

Post by Egert_Kanep » Tue Apr 30, 2019 7:12 am

That is because for opencl you have to put bump into mix material bump input

User avatar
Dade
Developer
Developer
Posts: 2807
Joined: Mon Dec 04, 2017 8:36 pm

Re: Bump of Mix Material not showing with OpenCL

Post by Dade » Tue Apr 30, 2019 8:37 am

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

Re: Bump of Mix Material not showing with OpenCL

Post by Taka » Tue Apr 30, 2019 4:28 pm

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: 2809
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. » Tue Apr 30, 2019 5:01 pm

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
fixed_cpu.png
CPU
fixed_ocl.png
OpenCL
Support LuxCoreRender project with salts and bounties

Taka
Posts: 41
Joined: Wed Mar 20, 2019 7:24 pm

Re: Bump of Mix Material not showing with OpenCL

Post by Taka » Tue Apr 30, 2019 6:19 pm

Perfect! Thanks B.Y.O.B.!

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2809
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. » Tue Apr 30, 2019 6:30 pm

By the way, could LuxCore do this internally to hide this problem from the user?
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Developer
Posts: 2807
Joined: Mon Dec 04, 2017 8:36 pm

Re: Bump of Mix Material not showing with OpenCL

Post by Dade » Tue Apr 30, 2019 7:26 pm

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