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. Dismiss Notice

Question How to render local volumetric clouds over everything else?

Discussion in 'High Definition Render Pipeline' started by lordchirpy, Aug 7, 2023.

  1. lordchirpy

    lordchirpy

    Joined:
    May 24, 2022
    Posts:
    1
    I'm trying to create an airship game with flight simulator aspects using the HDRP local volumetric clouds but I'm encountering an issue where the HDRP ocean (alongside any other terrain or objects beneath the clouds) creating weird renders when the camera is in the clouds

    how it looks with ocean disabled:
    upload_2023-8-7_11-44-30.png

    how it looks with ocean enabled:
    upload_2023-8-7_11-45-4.png

    furthermore any object inside of the clouds such as an airship is rendered through the clouds as shown
    upload_2023-8-7_11-47-36.png

    to my understanding this isn't an error in rendering and it makes sense in terms of lighting but I was wondering if it is possible to make the clouds render on top of everything else such that you cant see aircraft concealed inside the cloud or see the terrain below when hidden by the clouds

    i greatly appreciate any help
     

    Attached Files:

  2. mgeorgedeveloper

    mgeorgedeveloper

    Joined:
    Jul 10, 2012
    Posts:
    242
    lordchirpy likes this.
  3. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    692
    Hey, if you are using the 2022 LTS, it's expected that the ocean is rendered on top of the volumetric clouds. It's a limitation since Water and clouds are both transparent, they have troubled being sorted correctly and this case wasn't taken into account on this version yet.

    This has been taken care of starting 2023.2.0a18 with a refactor of how transparency is rendered.
    Now, from this version, you can sort properly refractive transparents (like water) with transparent in the pre-refraction queue (like clouds).

    This can be helpful when trying to render a transparent object that is crossing the water line for example.

    More info:
     
  4. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    692
    For this object, I subpect it is a transparent, right ? If yes, then it's the same treatment as the water surface :/