Page 1 of 2

Normal map render with OpenCL

Posted: Fri Jun 19, 2020 9:37 am
by Dmi3ryd
Hi there.

I am having trouble rendering normal map.
If I select CPU as Device, the card renders normally and is similar to the one in the viewport.
If I switch Device to OpenCL it is practically invisible. What could be the problem and how to solve it?

Unfortunately, I can’t provide the image, because this is a personal project.

Thanks.

Re: Normal map render with OpenCL

Posted: Fri Jun 19, 2020 10:48 am
by Dade
What version are you using ?

Re: Normal map render with OpenCL

Posted: Fri Jun 19, 2020 11:33 am
by Dmi3ryd
2.3

Re: Normal map render with OpenCL

Posted: Fri Jun 19, 2020 11:47 am
by Dade
Dmi3ryd wrote: Fri Jun 19, 2020 11:33 am2.3
Try with v2.4, the problem is likely to have already been fixed.

Re: Normal map render with OpenCL

Posted: Fri Jun 19, 2020 11:56 am
by Dmi3ryd
Could you please help me with links?
Where can I find latest dev build?

Re: Normal map render with OpenCL

Posted: Fri Jun 19, 2020 12:10 pm
by Dade
Dmi3ryd wrote: Fri Jun 19, 2020 11:56 am Could you please help me with links?
Where can I find latest dev build?
Here: viewtopic.php?f=9&t=736

Re: Normal map render with OpenCL

Posted: Fri Jun 19, 2020 12:16 pm
by Dmi3ryd
Thank you!

Re: Normal map render with OpenCL

Posted: Tue Jun 23, 2020 6:38 am
by Dmi3ryd
Version 2.4 did not solve my problem!

I found the source of this problem.
If you use the material (with normal map) directly, when you turn on OpenCL, everything works correctly.
If you mix one material (with normal map) with greyscale image mask, then in this case something happens to the normals.
It feels like they are getting blurry.

Everything is displayed correctly in the viewport, but when rendering through OpenCL, a problem is visible.
With CPU no problem.

Tested on version 2.4 updated yesterday.

Re: Normal map render with OpenCL

Posted: Tue Jun 23, 2020 8:46 am
by Dade
Can you post a test scene showing the problem ?

Re: Normal map render with OpenCL

Posted: Tue Jun 23, 2020 11:32 am
by Dmi3ryd
Yes sure.

Here is the video in which I show the problem:
https://youtu.be/vNm_WlZtlvs

If the video is of poor quality, please wait a while, as currently encoding is in HD quality.

Project files here:
https://www.dropbox.com/sh/2yra3awtwp7j ... LkE8a?dl=0