Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Official Unity Experimental HDRP DXR

Discussion in 'HDRP Ray Tracing' started by SebLagarde, Apr 4, 2019.

  1. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    image (13) (1).png

    Unity release today a github project named Experimental DXR project to be able to play with DXR.
    https://github.com/Unity-Technologies/Unity-Experimental-DXR

    This repository contains the Experimental DXR project.

    You can clone the repository using the tool of your preference (Git, Github Desktop, Sourcetree, ...).

    | IMPORTANT |
    | ------------------------------------------------------------ |
    | This project uses Git Large Files Support (LFS). Downloading a zip file using the green button on Github **will not work**. You must clone the project with a version of git that has LFS. You can download Git LFS here: <https://git-lfs.github.com/>. |

    Project zip with all files (including LFS files) can be downloaded from the release section https://github.com/Unity-Technologies/Unity-Experimental-DXR/releases.

    The Experimental DXR project is a Unity custom version with binaries based on the 2019.2a5 version of Unity, enhanced with DXR support and version 5.8.0 of HDRP enhanced with DXR support. It is a Windows 10 (64 bit) only version with DX12 API.

    This project is a sandbox in which you can play with real time ray tracing features in Unity. This is a prototype and the final implementation of DXR will be different from this version. This project can not be used to do any production work.

    Requirements:
    - NVIDIA RTX series card with the latest drivers [here](https://www.nvidia.com/Download/index.aspx?lang=com)
    - Windows 10 RS5 (Build 1809) or later


    Install step:
    Download the project from Github in the release section, unzip.
    Launch Unity.exe
    Create a new project and select DXR High Definition RP (Preview)

    See usage here: https://github.com/Unity-Technologi...ation/The Experimental DXR project manual.pdf

    Unity Forum Link: https://forum.unity.com/threads/unity-experimental-hdrp-dxr.656092/

    FAQ:
    - I get " this application wont work on this computer" when running Unity.exe

    You don't have all the files from the repository. This project uses Git Large Files Support (LFS). Downloading a zip file using the green button on Github **will not work**. You must clone the project with a version of git that has LFS. You can download Git LFS here: <https://git-lfs.github.com/>.

    - When installing the DXR project template I get this error:

    <img src = "https://github.com/Unity-Technologies/Unity-Experimental-DXR/blob/master/documentation/Error0.png" >

    This is due to Windows limitation that can't handle more than 260 character for filename.
    Please use a shorter folder and project name to allow the template to install correctly. Like "C:\DXR"1
     
    Last edited: Apr 11, 2019
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    screenshot:

    looks nice, was surprised about low performance though (with rtx 2080 ti) *i know its early test but still
    upload_2019-4-4_22-59-34.png
     
  3. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Be sure you are not CPU bounds (which seems the case here). Note that CPU performance of this current experimental version is bad. We are aware of this.
     
  4. sirakg_nait

    sirakg_nait

    Joined:
    Jan 18, 2018
    Posts:
    1
    tigerleapgorge likes this.
  5. coldpizzapunk

    coldpizzapunk

    Joined:
    Aug 20, 2014
    Posts:
    30
    Is there a setting (or way) to enable multiple bounces for reflections. I am looking at more non-real-time art stuff so not too concerned with the performance. See screenshot of what I see in my game view-port currently. The small reflection of the sphere should show the gray floor. I was using the Unreal RTX earlier this week and they have this feature exposed and working. Just curious if this is possible now.
    Reflection Grab.jpg
     
    tigerleapgorge and SLASH24 like this.
  6. LarryTheBrave

    LarryTheBrave

    Joined:
    Nov 20, 2016
    Posts:
    24
    I don't have Nvidia, I have Intel HD but I have 8gb and Core i5, does that mean I can still experiment with this but it might run slow? Is this like the EEVEE mode of Blender? I can run that so why not this?
     
    tigerleapgorge likes this.
  7. spacemarine

    spacemarine

    Joined:
    Mar 28, 2013
    Posts:
    14
    This version of unity won't run, even I upgraded windows 10 build version from 1805 to 1809.
    How can I solve this? Thanks in advance :)
     
    tigerleapgorge likes this.
  8. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi, this isn't currently possible in this version.
     
    tigerleapgorge and SLASH24 like this.
  9. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Nope, it only work with NVidia RTX capable hardware
     
    tigerleapgorge and SLASH24 like this.
  10. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Sorry, you don't provide enough information to get an answer :), GPU ?
     
    tigerleapgorge and SLASH24 like this.
  11. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,965
    No. NVIDIA is the only company that currently supports Microsoft DXR. Having a good processor means nothing when you're trying to do raytracing. Saying it would "run slow" wouldn't do it justice. Performance would likely be measured as "seconds or minutes per frame" rather than "frames per second". We would have had it years ago if it were that easy.

    No. EEVEE is not a raytracer. EEVEE is basically the same approach to rendering as a traditional game rendering pipeline like Unity's built-in and it's scriptable render pipeline.
     
    Last edited: Apr 5, 2019
    tigerleapgorge likes this.
  12. auzaiffe

    auzaiffe

    Unity Technologies

    Joined:
    Sep 4, 2018
    Posts:
    255
    It is actually possible to get a similar result, but in a different way.
    upload_2019-4-5_10-40-41.png

    Make sure that your material is flagged like this (SurfaceType Transparent and Renderpass Raytracing, setting the alpha to 1 behaves as opaque)

    upload_2019-4-5_10-41-42.png

    You also need to enable primary visibility on your raytracing environment

    upload_2019-4-5_10-43-8.png

    The maximal depth being the recursion level of the raytracing

    upload_2019-4-5_10-44-59.png
     
  13. spacemarine

    spacemarine

    Joined:
    Mar 28, 2013
    Posts:
    14
    RTX 2080Ti, and installed latest nvidia geforce display driver today:)
     
    tigerleapgorge and SLASH24 like this.
  14. DonPepe

    DonPepe

    Joined:
    Jun 5, 2013
    Posts:
    11
    For me as well the Unity build won't even start. I'm just receiving a Windows error prompt like this


    I'm on a Razer Blade Stealth Win10 v1809 i7-8550U, and will be connected with an external 2070. I don't have the eGPU with me right now and just wanted to take a peak.

    Are you checking for Hardware Specs on launching the Editor already?
     
    tigerleapgorge and NeatWolf like this.
  15. INedelcu

    INedelcu

    Unity Technologies

    Joined:
    Jul 14, 2015
    Posts:
    169
    You should clone the github repository. Make sure you have the large file extension installed too - https://git-lfs.github.com/ before cloning it.
     
    tigerleapgorge, SLASH24 and NeatWolf like this.
  16. fuzzy3d

    fuzzy3d

    Joined:
    Jun 17, 2009
    Posts:
    228
    +1
    Windows 10 Home 1809, i7-8750H, RAM 16 GB, RTX 2070 Max-Q (HP Omen)
    Unity-Experimental-DXR-0.0.1.zip downloaded, unzipped. When running Unity.exe then "This app cant run on.." when run as admin then "System cannot find ... \Unity.exe"
    Please help.

    Edit:
    "You should clone the github repository. Make sure you have the large file extension installed too - https://git-lfs.github.com/before cloning it."
    = I need to install git+ LFS= .zip file not working?

    Trying add PATH variable. Not working.
     
    Last edited: Apr 5, 2019
    tigerleapgorge likes this.
  17. INedelcu

    INedelcu

    Unity Technologies

    Joined:
    Jul 14, 2015
    Posts:
    169
    Unfortunately github does not support LFS: https://github.com/git-lfs/git-lfs/issues/903. The only way I know to get the large files is to install the git client with LFS extension and clone the repo.
     
    tigerleapgorge likes this.
  18. nbfp

    nbfp

    Joined:
    Jul 30, 2015
    Posts:
    23
    When creating new project, I only have 2D and 3D options for template (no DXR). Any idea why?
     
  19. fuzzy3d

    fuzzy3d

    Joined:
    Jun 17, 2009
    Posts:
    228
    O.K., you need to change install instructions then- change all "download" to "clone". Next, you need to tell us to turn on lfs BEFORE (?) clone (or not?). After standart GitHub Desktop installation, clone, running Unity.exe, new project I dont see DXR template.
    Becouse com.unity.template.dxr-1.0.0-preview.tgz not unpacked!?

    Edit: https://git-lfs.github.com/ installed BEFORE clone. Still no DXR template for new project...
    Edit: unpacked com.unity.template.dxr-1.0.0-preview.tgz manually. No DXR template...
    Edit: unpacked com.unity.template.dxr-1.0.0-preview.tgz manually, delete com.unity.template.dxr-1.0.0-preview.tgz . Got DXR template (be sure you are to create project for Unity 2019.2.0a5).
    Edit by BFU:

    Edit: delete local repositiry, restart, restart, restart, clone, no manipulation with com.unity.template.dxr-1.0.0-preview.tgz , got DXR template, new project.
    Edit: No PC, Mac & Linux Standalone module loaded. Can not build.
     
    Last edited: Apr 5, 2019
    tigerleapgorge and keeponshading like this.
  20. NeatWolf

    NeatWolf

    Joined:
    Sep 27, 2013
    Posts:
    924
    Oh, that's why.
    That Unity.exe of 134KB with no icon was actually pretty weird to look at - that was quite a lightweight version of Unity to be only 400MB :p

    I was only curious to test it out. Any chance to get either a binary of the demo scene, or the direct download of the full package as it is right now? #instalazypeople :p
     
  21. Maitom

    Maitom

    Joined:
    Mar 9, 2015
    Posts:
    3
    I've tried an alembic animated mesh and none of the different ray casting modes seems to work properly. The only ones that cast any shadows for that object seem to cast it from the meshes original position and then self-shadowing for example if the mesh moves below its original location in the animation. I assume this is just a current limitation with it being an alembic mesh. But hopefully it will work in the future.

    Or am I overlooking an option that would fix this.
     
    n12901 and gasanoff like this.
  22. pleribus77

    pleribus77

    Joined:
    Jul 9, 2013
    Posts:
    36
    On a RTX 2080 Ti, latest drivers, I'm seeing really poor performance when looking at the lights and bottles (glass / refraction).

    I've set the viewport to 1920 x 1080.

    Up close < 5fps ,at a distance 15fps, then between 30 and 60 fps when light objects aren't in camera view.

    What I am noting though, is that it's the same with the ray tracing options turned off, poor performance in vanilla HDRP when looking directly at the light objects with refraction.

    I know this is experimental, but what sort of performance should we be expecting on top of the line consumer RTX hardware?

    UPDATE: Just watching the stats window, I'm seeing the CPU main render times spike from 14ms with no lights in camera view up to 350ms when close to the light.

    Seems to be a CPU bound issue rather than the RTX card. I'm running an i7-6700k @ 4GHz
     
    Last edited: Apr 6, 2019
    SLASH24 likes this.
  23. yamashin0429

    yamashin0429

    Joined:
    Oct 2, 2016
    Posts:
    1
    Hi.
    I tried the project but I get the following error.

    Please fix all the compilation errors for Raytracing Shader "RaytracingAreaShadows"!
    Please fix all the compilation errors for Raytracing Shader "RaytracingReflections"!

    Also, I set the material's Render Pass to RayTracing, but it just appears black.
    It seems that reflection is not normal on the scene.
    Can i solve this?

    Also, can I use Skinned Mesh Renderer ?

    GPU is RTX2080.
     

    Attached Files:

    Last edited: Apr 6, 2019
    Robmymhealth likes this.
  24. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,539
    Nvidia stated they'll be rolling out a driver update this April to bring DXR support to Pascal 10 series GTX cards. Will requiring an RTX card still remain true due to something specific about Unity's implementation here?
     
  25. LIVENDA_LABS

    LIVENDA_LABS

    Joined:
    Sep 23, 2013
    Posts:
    377
    This should be part of the Standard Pipeline not just HDRP.

    Also, the number of rays being used is way too much even on 2080Ti, don't expect stellar performance without reducing these.
     
    Last edited: Apr 7, 2019
    soleron and SLASH24 like this.
  26. wenzy

    wenzy

    Joined:
    Nov 17, 2015
    Posts:
    44
    -----------------------------------
    I met the same problem.Did anyone solve it now?
    I have created an issue https://github.com/Unity-Technologies/Unity-Experimental-DXR/issues/9
     
    SLASH24 likes this.
  27. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    Unless plans have changed, I'm under the impression that the standard pipeline has no future when it comes to major new graphics rendering features.

    Anyway, thanks to Unity for the experimental release, I have found it useful to play with at this early stage.
     
    LIVENDA_LABS likes this.
  28. valarnur

    valarnur

    Joined:
    Apr 7, 2019
    Posts:
    438
    Will AMD's gpus get support for Unity's DXR?
     
    createtheimaginable likes this.
  29. Cynicat

    Cynicat

    Joined:
    Jun 12, 2013
    Posts:
    290
    DXR is directX raytracing, it's windows specific, it's not Nvidia specific. However AMD have said they won't include DXR hardware acceleration untill most games are using DXR. Meaning, yes it works, but it's slow af on AMD cards.

    So... kinda? =/
     
    SLASH24 and keeponshading like this.
  30. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    They probably can't afford to lose money on a feature they probably have already internally, but didn't seem to be a marketing pull enough after nvidia announced it. Nvidia though can burn money as market leader.
     
  31. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
  32. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    some find outs not without pain during clone and project setup....

    besides

    GIT LFS install
    Windows kb4482887 update Windows 10 1809 for DXR support
    Nvidia RTX Card

    - use git lfs clone https://github.com/Unity-Technologies/Unity-Experimental-DXR.git
    - git clone https://github.com/Unity-Technologies/Unity-Experimental-DXR.git did not work for me
    - full checkout has 9,57 GB (10.285.807.584 Bytes)

    - clone to shortest path e.g C:\

    - connect Unity-Experimental-DXR/Unity.exe with Unity Hub
    - create New Unit Project with DXR High-Definition RP (Preview) Template in Unity Hub
    - choose project location with shortest path e.g. C:\DXR

    shortest path actions because of
    com.unity.template.dxr-1.0.0-preview.tgz
    could not be fully extracted and manged because of very long filenames on Windows

    e.g
    Unity-Experimental-DXR\Data\Resources\PackageManager\ProjectTemplates\com.unity.template.dxr-1.0.0-preview\package\ProjectData~\Assets\3D MODEL\PROPS\Meeting_Room_Cradenza_01\New\Meeting_Room_Cradenza_01_Meeting_Room_Cradenza_01BaseColor.png

    count is 241 charakters. windows max is 260 without hacking registry. only 19 left to run .)
     
    Last edited: Apr 7, 2019
    Lex4art likes this.
  33. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    At the point AMD support this will be when AMD cards are naturally fast enough with memory/ALU to not require dedicated hardware, and I think that does make sense but off topic. On topic, I hope Unity's new path tracer will not be GPU specific.

    (and I would like decent realtime GI but that's another subject not for here).
     
    AlanMattano likes this.
  34. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    sorry for going little off.
    My hope is that the new drivers which add DXR support for Pascal GPU´s
    allow working with Unity-Experimental-DXR for Non-RTX cars too.
    At least working... not performing.)
     
  35. pleribus77

    pleribus77

    Joined:
    Jul 9, 2013
    Posts:
    36
    Can anyone from Unity side talk to the CPU bound problems facing performance when looking at the glass lights and glass bottles.

    Wondering if this is known issue, or something that will be addressed.

    Is there a minimum spec on CPU for this sample scene? 3 - 5 fps isn't really workable (which is occuring when glass objects take up portion of screen. Significant drops when anything glass in frame, otherwise running 50+ fps.

    Issues noted on a i7-6500k @4Ghz + RTX 2080 Ti.
     
  36. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    The CPU issues are a known issue. This April 4th release is only for playing with the new features in development, a glimpse for people with latest GPUs who want to try while the API is under dev.

    It's really fun but 100% not yet for production. See Seb's note from before:

     
    AlanMattano likes this.
  37. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    Played serveral hours with this and i am totally amazed.
    Where others show nice demos on youtube and o.5 fps generated movies, Paris delievers.

    Looks great in pure HDRP and the additional integration of DXR effects is mind blowing.

    The post processing stack did also a great progress. DOF feels finally production ready out of the box (please add some default autofocus on frame center, (yebis for unity has an great one));
    and Bloom does finally what it should.

    Next Level for Realtime Vis and Realtime Movie generation.
    Must be fun to optimize this.

    Hope there is some easy multi gpu scalability possible.
     
    Last edited: Apr 8, 2019
    RomBinDaHouse and hippocoder like this.
  38. pleribus77

    pleribus77

    Joined:
    Jul 9, 2013
    Posts:
    36
    Thanks, did manage to miss that note above.

    So I imagine the BMW sample was running on better CPU given all the glass on the car? New Razer blade laptops must pack a punch.

    We're very excited for this tech as we work with a number of auto clients in the interactive space.

    Looking forward to updates.
     
    hippocoder likes this.
  39. m0nsky

    m0nsky

    Joined:
    Dec 9, 2015
    Posts:
    257
    Same here, absolutely loving it so far. I bought an RTX card just for Unity and have been actively following all PR's ever since DXR support was announced. Would love to see some performance gains or some more supported light types(?)



     
    Last edited: Apr 9, 2019
    Matjio, wm-VR, Gametyme and 12 others like this.
  40. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    Nice. I know this bike.) Are you working in the FIZ. Munich?
     
  41. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    Detox-a-Fontainebleau.jpg

    Predictive Analysis for Fontainebleau.
    HDRP on. PP V3 on. DXR all in.
    Sorry for that.)
     
    Last edited: Apr 9, 2019
    wm-VR, Gametyme, fablemaker and 15 others like this.
  42. ArnoldCarterWong

    ArnoldCarterWong

    Joined:
    Sep 26, 2017
    Posts:
    31
    I got these errors too, I am using a rtx2070.
    Some .raytrace shaders can't compile at all due to they can't include BSDF.hlsl and ImageBasedLighting.hlsl from SRP core's ShaderLibrary folder


    One of the console error, the BSDF.hlsl does exist, also the unity editor crashes every time right after creating the project or reimporting all the stuffs:

    Shader error in 'RaytracingIndirectDiffuse.raytrace': Compilation failed [0x80004005 - Unknown error.] 'HLSLSource:14:10: fatal error: 'Packages/com.unity.render-pipelines.core/ShaderLibrary/BSDF.hlsl' file not found
    #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/BSDF.hlsl"
     
    Last edited: Apr 10, 2019
  43. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    The car glass of the greenhouse you should fake. Performance loss is too big and needed for the rest of the car. Even with over 1000 Core CPU Realtime Path Raytracing you fake this. Render at last position on layer.

    Modern Frontlights need Raytracing Depth around 15 and Backlights around 30 for photoreal vis.
    So there still is a long way to do this in DXR.
    It s worth it to create Light Fixtures and additionally bake light prisms.
    https://blogs.unity3d.com/2019/02/05/create-high-quality-light-fixtures-in-unity/.

    Think even with an DGX station thats the way to go for now. Performance is needed for the rest.
     
    Last edited: Apr 9, 2019
    pleribus77 likes this.
  44. adibzrachid

    adibzrachid

    Joined:
    Mar 6, 2019
    Posts:
    3
    Is this motorcycle engine included in the project for free?
     
  45. TJaenichen

    TJaenichen

    Joined:
    Oct 12, 2014
    Posts:
    29
    Wanted to check it out and also keep getting the "can't run this app" message. I cloned from git with lfs
     
  46. jrkd

    jrkd

    Joined:
    Jan 27, 2018
    Posts:
    1
    Can anyone here (perhaps unity have some benchmarks internally?) comment on the max-q RTX cards in recent laptops being able to handle this demo well, or more generally how well they run unity?

    Cheers
    Jono
     
  47. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    Last edited: Apr 10, 2019
  48. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Yeah totally, I don't even own an RTX but the images coming from HDRP tracing are amazing. Please keep them coming so I can drool more!

    I hereby give everyone 100% permission to spam your HDRP RTX images big or small :)
     
  49. keeponshading

    keeponshading

    Joined:
    Sep 6, 2018
    Posts:
    937
    Please prefer DXR extended HDRP.) Hope Vulcan will come soon.
    RTX speeds it up most for now.

    first raytracing GPU. love. allows spectral raytracing without bvh.

    Screenshot_20190410-235931.png
     
    Last edited: Apr 10, 2019
    AlanMattano and hippocoder like this.
  50. m0nsky

    m0nsky

    Joined:
    Dec 9, 2015
    Posts:
    257