Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Issues enabling DXR

Discussion in 'High Definition Render Pipeline' started by RyanKeable, Apr 12, 2021.

  1. RyanKeable

    RyanKeable

    Joined:
    Oct 16, 2013
    Posts:
    62
    I am running a 3060 on Windows 10 (latest drivers and updated) and I cannot enable DXR.

    I cannot get past this error:

    upload_2021-4-12_20-49-54.png

    Additionaly. I am required to force unity to booth in dx11 moce otherwise Unity crashes or the editor renders black

    And advice would be most welcome!
     
  2. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    697
    Hello @RyanKeable, when you try to fix this step, is there some console error being thrown that could prevent you for fixing it ?
    This "DXR resources" fix depends partially on this static variable SystemInfo.supportsRayTracing.
    As you can see in the doc, for this to be "true", multiple things have to be correct (GPU, OS Version, Correct DX12 api, drivers etc...)
    What you can check is to verify what this variable returns in your case, that might help narrowing down the issue.
    Also what HDRP / Engine version are you using ?
     
  3. RyanKeable

    RyanKeable

    Joined:
    Oct 16, 2013
    Posts:
    62
    Thanks for replying! I cannot open that project today in either forced d3d11 mode or 12 (it just crashes everytime in force d3d11 or renders as below)

    That's ok it was just the HDRP example project, so I started a fresh one.

    I am on HDRP: 10.3.2 and Unity 2020.3.1.f

    SystemInfo.supportsRayTracing returns False!
    This is my current system:

    AMD Ryzen 9 3900X 12-Core Processor 3.79 GHz
    Nvidia GeForce RTX 3060 (Latest Drivers and DX installed)
    32GB Ram
    Windows 10 Pro 19042.906 (not currently activated though as we are getting new seats at work)


    This is what my Editor looks like when it runs in d3d12:
    upload_2021-4-13_10-45-43.png
     
  4. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    697
    Thanks, this variable is true if the GPU supports ray tracing, Windows 10 version is 1809 RS5 or newer is installed and has latest recent graphics drivers and of course you're using DX12.

    Since your windows version seems newer, and your GPU support raytracing, this is likely a driver problem or a directX one, especially if everything render black with DX12.
    I'd suggest to reinstall a clean version of those and make sure DX12 rendering works before enabling ray tracing in the project !
     
  5. RyanKeable

    RyanKeable

    Joined:
    Oct 16, 2013
    Posts:
    62
    Got it working, thanks!
     
    chap-unity likes this.
  6. GregBahm

    GregBahm

    Joined:
    Jul 1, 2014
    Posts:
    11
    I'm running into the same issue. What fixed it?
    I can run ray tracing in Unity 2019.4.11f1 without issue but when I switch to DirectX12 in Unity2021.1.7f1 I get the DXR error and can't see anything in the editor viewports or render view.
     
  7. GregBahm

    GregBahm

    Joined:
    Jul 1, 2014
    Posts:
    11
    Never mind. Upgrading from Unity 2021.1.7f1 to Unity 2021.1.11f1 fixed my issue.