Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Raytracing support of Terrain?

Discussion in '2022.2 Beta' started by unity_FD81F80059821D3FE57A, Nov 9, 2022.

  1. unity_FD81F80059821D3FE57A

    unity_FD81F80059821D3FE57A

    Joined:
    Nov 9, 2022
    Posts:
    2
    Hi there, Unity 2022.2 seems to have Ray Tracing Terrain support in HDRP so I'm trying to enable the features on my levels, however, the terrain props do not cast ray-traced shadow and ray-traced ambient occlusion just same as older versions.

    "Enable Ray Tracing" checkbox is enabled on the terrain component. Am I missing something to enable the feature?

    The left one is placed as regular prefab, and the right one is placed as Tree prop by terrain. Obviously the right one does not cast shadow and AO. Non-raytraced shadow and SSAO perfectly works with terrain props so I assume that its only happening with raytracing.

    RTX_Terrain.jpg
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,843
    Howdy! So, circled this with the HDRP team and have some insight. At this time, only basic Terrain Raytracing is supported, what we call Raytracing support for Terrain Heightmap. As for when it'll support trees and details objects, there is no ETA at this time.
     
    LeonhardP likes this.
  3. unity_FD81F80059821D3FE57A

    unity_FD81F80059821D3FE57A

    Joined:
    Nov 9, 2022
    Posts:
    2
    Hi, thank you for giving it insight! Good to know that what's supported by Terrain RayTracing at this moment. Hopefully trees and details will be addressed by future updates.
     
  4. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    961
    Can I just voice my displeasure with the way this is being handled?
    Raytracing was launched in 2020. Many couldn't use it because it lacked terrain support. It took almost three years to add terrain support, and now it's limited again because trees are still missing.

    Why isn't this being pushed to completion? It's not like someone has been working on terrain support for three years, so it's a planning issue.

    Certain objects not being reflected looks incredibly jarring, so we're still stuck with SSR.
     
    newguy123 likes this.
  5. sniperisa

    sniperisa

    Joined:
    Sep 20, 2015
    Posts:
    18
    Oh my...
    This is so frustrating!

    First I cheered, that unity supports ray tracing.
    Then I discovered that Terrain is not reflected.

    The 2022.2 comes out with "Terrain supports raytracing". I cheer again!
    The I discovered that Trees are not reflected....

    Could you please release something properly?
     
    JarekKaa94 and newguy123 like this.
  6. Spikebor

    Spikebor

    Joined:
    May 30, 2019
    Posts:
    289
    @sniperisa
    For now the ways to has raytraced environment are:

    1- Convert your terrains from using terrain trees to prefab trees. Can use a script to automate this: for each terrain tree, spawn the tree prefab at that place, then disable terrain tree rendering.
    Automate is fun.
    2- Manually place Reflection probes for your terrains. Set your raytracing setting for reflection to Ray missed: use Reflection Probes.
    Manual is no fun. I know.

    No reflection probe forest
    upload_2023-3-10_13-0-17.png

    Yes reflection probe forest
    upload_2023-3-10_13-0-35.png
     
    sniperisa likes this.
  7. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,281
    Preview of Final 2023.1.0b7 Release Notes:
    • HDRP: Added Ray Tracing Terrain support for HDRP.
    Does this mean terrain, and everything on it, like trees, details, grass etc, is now fully supported in Raytracing / Pathtracing?
     
    JarekKaa94 likes this.
  8. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    961
    Prefab trees will destroy your CPU. Occlusion culling in particular can't handle having that many objects.
     
  9. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    961
    Went and tested it, but no. Just the terrain still.
    They added support for including instanced objects in the ray tracing acceleration structure in 2023.1, so hopefully soon.
     
  10. Spikebor

    Spikebor

    Joined:
    May 30, 2019
    Posts:
    289
    Life finds a way.
    There is store asset like GPUI that has feature will let you turn trees around player to prefab trees.
    Terra world pro also has same functionality.
    That's some of assets I know, likely there's more.
    There's many reasons for people want to have prefab trees around player, now raytracing is another added reason for it.
     
  11. Spikebor

    Spikebor

    Joined:
    May 30, 2019
    Posts:
    289

    Would be nice if they support HDRP but not for now.
    GPUI on the other hand support all pipelines