LuxCore icon indicating copy to clipboard operation
LuxCore copied to clipboard

Cloth Material Error with CUDA GPU Rendering

Open rrubberr opened this issue 6 years ago • 5 comments

While converting a scene for use with LuxCore, I came across an error when switching to GPU CUDA rendering. Cloth materials seem to lose saturation in the applied color or texture. The issue is shown below.

The error (with GPU selected): Cloth_Error

The correct result (created by selecting only CPU device): Cloth_CPU

This result is also reproducible with the default cube scene: Default Default2

The issue persists with light tracing and PhotonGI cache enabled / disabled. The error also applies with color set to the warp or weft diffuse color, or both sockets. The error does not occur when the CPU device is selected.

Steps to reproduce:

  1. Load the default scene and apply the default cloth material to the cube.
  2. Select "GPU" device.
  3. Hit render.

LuxCoreRender 2.4 release and Blender 2.83.3 were used.

rrubberr avatar Jul 27 '20 09:07 rrubberr

I can reproduce it with the CUDA backend. It seems to be a CUDA-only problem, because I can't reproduce it with the OpenCL backend.

Theverat avatar Jul 27 '20 10:07 Theverat

I have also confirmed it on Windows 10 version 2004 with a GTX 1070.

betstick avatar Jul 27 '20 13:07 betstick

I can not reproduce the problem with v2.5. Can you reproduce the problem with v2.5 ?

Dade916 avatar Aug 02 '20 09:08 Dade916

Can you reproduce the problem with v2.5 ?

Yes, I can still reproduce it with 7a5724a8fa9b0d50caa1f1594b04c2637f061912 on Windows 10. Scene: cloth.zip

CPU: cpu

OpenCL: opencl

CUDA: cuda

OptiX: optix

Theverat avatar Aug 02 '20 10:08 Theverat

I was able to replicate the problem but only on Windows. The root of the problem was in CUDA for Windows considering ulong data type a 32 bits value while it is a 64 bits value in CUDA for Linux (and the rest of the universe...).

I should have fixed the problem.

Dade916 avatar Aug 03 '20 11:08 Dade916