Open mandyxmq opened 1 month ago
Hi @mandyxmq
Thank you for the very simple reproducer.
I am able to reproduce the results you're seeing. I also noticed that when Mitsuba is compiled in DEBUG
mode, the error is visibly gone. I'm honestly stumped as to what could be the problem here. We'll need to dig into this more. But for now, if you need it to work correctly on the GPU, DEBUG
mode should do the trick (of course, it will be quite a bit slower though).
Summary
I wonder if the team might already be aware of this issue: when rendering the curve shape and hair BSDF, the CUDA variant seems to produce artifacts that are not present in either the LLVM or the scalar variants.
System configuration
System information:
OS: Ubuntu 22.04 GPU: RTX 4090 CUDA version: 12.2 NVidia driver: 535.183.01
I tested on both the stable version of Mitsuba and using the newest commit from the master branch, and I got the same behavior.
Description
The following images are rendered using the scalar_rgb, llvm_ad_rgb, and cuda_ad_rgb variants respectively. The artifacts are also there when evaluating the first reflection lobe of the hair BSDF. The problem seems to come from curve intersection on GPU.
Steps to reproduce
The following is the scene description to reproduce the results above, and I've attached the curve geometry file.
curves.txt