Page 1 of 1

Random Per Island/Math Node GPU Issue

Posted: Fri Jun 04, 2021 3:34 pm
by BlenderBrit
Hey Guys,

I'm having an issue with GPU rendering on a particular material setup. Basically a RandomPerIsland material for distributing floorboards. It works flawlessly on CPU rendering but completely falls over on GPU, with either OPENCL or CUDA.

Information:
Blender 2.93LTS
LuxCore 2.6 Daily (Downloaded same day as this post)
RTX 3090 (Latest Drivers)

Images:
The node setup:
nodes.jpg
CPU Render (Correct result):
CPU.jpg
GPU Render (hmmm....):
GPU.jpg

Re: Random Per Island/Math Node GPU Issue

Posted: Fri Jun 04, 2021 3:54 pm
by TAO
That's the same issue I see with the math node on GPU that already report in the past. With CPU there is no problem but with GPU the material going to be dark and black in some parts as you can see in your final render too.
Same behavior with 3dsmax plugin and LuxCoreRender stand-alone version.

Re: Random Per Island/Math Node GPU Issue

Posted: Fri Jun 04, 2021 4:03 pm
by Dade
I need a test scene, a plane with your floor material.

Re: Random Per Island/Math Node GPU Issue

Posted: Fri Jun 04, 2021 4:45 pm
by BlenderBrit
Sure, no problem. Here is the scene file, the textures have been packed.

https://drive.google.com/file/d/1I7U6OT ... sp=sharing

Re: Random Per Island/Math Node GPU Issue

Posted: Sat Jun 05, 2021 10:11 am
by BlenderBrit
Added a github report of the error:
https://github.com/LuxCoreRender/BlendL ... issues/689

Re: Random Per Island/Math Node GPU Issue

Posted: Sat Jun 05, 2021 11:22 am
by Dade
BlenderBrit wrote: Fri Jun 04, 2021 4:45 pm Sure, no problem. Here is the scene file, the textures have been packed.

https://drive.google.com/file/d/1I7U6OT ... sp=sharing
Actually, it is a problem related to bump mapping, if you disconnect the floor bump map, CPU and GPU rendering is the same. I'm checking what is going on.

Re: Random Per Island/Math Node GPU Issue

Posted: Sat Jun 05, 2021 11:53 am
by TAO
Dade wrote: Sat Jun 05, 2021 11:22 am
BlenderBrit wrote: Fri Jun 04, 2021 4:45 pm Sure, no problem. Here is the scene file, the textures have been packed.

https://drive.google.com/file/d/1I7U6OT ... sp=sharing
Actually, it is a problem related to bump mapping, if you disconnect the floor bump map, CPU and GPU rendering is the same. I'm checking what is going on.
Exactly, it appears in bump map, and the problem will show up in GPU render and not CPU.viewtopic.php?f=4&t=2995
file.jpg
I remember if I use Non-Color Data image for bump there was no problem with GPU renderer.

Re: Random Per Island/Math Node GPU Issue

Posted: Sat Jun 05, 2021 12:16 pm
by Dade
Dade wrote: Sat Jun 05, 2021 11:22 am
BlenderBrit wrote: Fri Jun 04, 2021 4:45 pm Sure, no problem. Here is the scene file, the textures have been packed.

https://drive.google.com/file/d/1I7U6OT ... sp=sharing
Actually, it is a problem related to bump mapping, if you disconnect the floor bump map, CPU and GPU rendering is the same. I'm checking what is going on.
I should have fixed the problem, it was affecting Add/Subtract texture nodes when used for bump mapping. The fix will be included in the next automatic build.

Re: Random Per Island/Math Node GPU Issue

Posted: Sat Jun 05, 2021 3:28 pm
by BlenderBrit
Excellent, I'll check out the new auto build when it pops out.

Thanks for the quick turnaround time on this! Quite new to LuxCore and this is very encouraging to see.