Random Per Island/Math Node GPU Issue

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
BlenderBrit
Posts: 9
Joined: Thu Apr 15, 2021 7:19 pm

Random Per Island/Math Node GPU Issue

Post 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
User avatar
TAO
Developer
Developer
Posts: 851
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Random Per Island/Math Node GPU Issue

Post 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.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Random Per Island/Math Node GPU Issue

Post by Dade »

I need a test scene, a plane with your floor material.
Support LuxCoreRender project with salts and bounties
BlenderBrit
Posts: 9
Joined: Thu Apr 15, 2021 7:19 pm

Re: Random Per Island/Math Node GPU Issue

Post by BlenderBrit »

Sure, no problem. Here is the scene file, the textures have been packed.

https://drive.google.com/file/d/1I7U6OT ... sp=sharing
BlenderBrit
Posts: 9
Joined: Thu Apr 15, 2021 7:19 pm

Re: Random Per Island/Math Node GPU Issue

Post by BlenderBrit »

Added a github report of the error:
https://github.com/LuxCoreRender/BlendL ... issues/689
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Random Per Island/Math Node GPU Issue

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
TAO
Developer
Developer
Posts: 851
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Random Per Island/Math Node GPU Issue

Post 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.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Random Per Island/Math Node GPU Issue

Post 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.
Support LuxCoreRender project with salts and bounties
BlenderBrit
Posts: 9
Joined: Thu Apr 15, 2021 7:19 pm

Re: Random Per Island/Math Node GPU Issue

Post 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.
Post Reply