Search Unity

Feedback NVIDIA OptiX AI Denoiser

Discussion in 'Global Illumination' started by julingwenhua, Dec 2, 2019.

  1. julingwenhua

    julingwenhua

    Joined:
    Mar 28, 2019
    Posts:
    3
    I use rtx2070super GPU for baking. When the lightmap is 1K, it is normal to reduce the baking noise, but I set the lightmap to be greater than 2k to reduce noise, and there will be many black spots. what is the reason?
     
    Last edited: Dec 2, 2019
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Black spots in the lightmap might be NaN values, can you please confirm by opening the generated lightmap .exr file and inspecting the black pixel values?
    If you file a bug report we can investigate, thank you!
     
    ROBYER1 likes this.
  3. julingwenhua

    julingwenhua

    Joined:
    Mar 28, 2019
    Posts:
    3
    I'm not sure what caused it, and I haven't reported an error. I will send you a test plan, hope to help me solve this problem, thank you!

    When I use a 2K lightmap and turn off OptiX, it returns to normal, and I suspect that OptiX is causing the appearance of dark spots.

    Version Unity2019.2.2, graphics card RTX2070Super, graphics card driver 441.41

    upload_2019-12-2_20-24-53.png
    upload_2019-12-2_20-25-2.png
    upload_2019-12-2_20-25-8.png
     

    Attached Files:

  4. julingwenhua

    julingwenhua

    Joined:
    Mar 28, 2019
    Posts:
    3
    This issue has been resolved, this is caused by the graphics driver, thank you.
     
  5. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    Reproduced at Case 1203538, what did you do to fix it with the graphics driver? I am using Nvidia Studio Driver 441.28 with an RTX 2070

    @KEngelstoft please check the bug report if you have time!
     
  6. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Did you try driver version 441.41?
     
  7. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Which version did you upgrade to?
     
  8. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    I noticed that 441.41 isn't available as a 'DCH' driver but it is available as a 'Standard' driver, my work laptop has DCH installed by default. I went to test the exact same scene on another machine at home with the same driver version 441.28 and the scene bakes fine with the exact same lighting/bake settings.

    The only difference GPU and Driver wise is

    Laptop with RTX 2070 using DCH driver 441.28 - Bakes with the Black box artifacts
    Computer with GTX 1070 using Standard driver 441.28 - Bakes fine

    I am installing 2020.1.0a15 as we speak as that has a LOT of mentions of Lightmapping fixes including implementation of A-trous Lightmap filtering which might help if it is as performant? I will report back.
     

    Attached Files:

  9. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    Same issue on 2020.1.0a15 and Nvidia Driver 441.28 :confused:
    ugh.PNG
     
  10. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    Was this issue reproducible with Case 1203538?
     
  11. uy3d

    uy3d

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    187
    We got a repro for this. Internal tests show that the artifacts don't occur with driver version 430.86, but newer nvidia driver versions seem to exhibit this issue.
     
  12. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    1,454
    Thankyou for reporting back, going to hold off baking much until a fix is out, glad my case was useful
     
  13. theunsigned

    theunsigned

    Joined:
    Nov 15, 2018
    Posts:
    33
    Is there any solution to this? I'm running a RTX 2080 with 8 gb and can't get a good bake to save my life. Any suggestions would be appreciated.
     
    Last edited: Feb 3, 2020
  14. Jesper-Mortensen

    Jesper-Mortensen

    Unity Technologies

    Joined:
    Mar 15, 2013
    Posts:
    232
    Optix denoiser was broken in NVIDIA driver version 436.02. In Unity 2019.3 and 2020.1 I added a workaround for this issue. NVIDIA is releasing a fixed driver in February. It only applies to Turing devices. Hope this helps.
     
    Bordeaux_Fox, ROBYER1 and Mauri like this.
  15. theunsigned

    theunsigned

    Joined:
    Nov 15, 2018
    Posts:
    33
    Thank you, would you mind specifying the workaround? I'm new to this and don't have the knowledge-base to fully understand what I can do to improve the lighting.

    Right now, even when deactivating Optix and changing resolution (which does help a bit), I'm getting a result that looks like this:

    https://drive.google.com/file/d/1rHLfkydmS5nRx0lJqqW01PxBHr34ogJW/view?usp=sharing
     
    kartoonist435 likes this.