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

Bug VR and Physically based sky doesn't work well together

Discussion in 'High Definition Render Pipeline' started by DriesVrBase, Jul 10, 2023.

  1. DriesVrBase

    DriesVrBase

    Joined:
    Mar 24, 2020
    Posts:
    61
    Hi,
    On Unity 2022.3 and also 2023 Beta, there are some issues when using VR.
    The most notable issue is when using Physically based sky in your scene.

    I have a building scene where I play around with the lighting in the scene in build. When I set the lighting to morning, like the sun coming in from a low angle, the environment gets kinda orange. Which is okay. Once I set the lighting back to midday ( sun coming from above), The environment keeps having a kinda orange tint to it. Once I disconnect from the game and join again (Loading directly into the scene) The lighting is good again. Once I repeat everything ( setting lighting to morning and back to middag) It happens again.

    Doesn't seem to happen with a regular camera, only in VR.
     
  2. DriesVrBase

    DriesVrBase

    Joined:
    Mar 24, 2020
    Posts:
    61
    Would also like to add that the same issue appears when loading from one scene to another scene. When coming from a scene where it's morning lighting (or even from a scene without a physically based sky) and going to a midday scene, the same issue is visible. Only when directly loading into a scene, everything looks fine
     
  3. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    543
    Sounds like the ambient probe capture colour, in physically based sky you have a ground colour, this is only a single colour and I think for many unity versions was a very orange tone. Typically you'd set the the rough or average colour of the ground of your scene, but it typically shades clouds too so something that works cohesive with your scene.

    If you're PBS is static you need to be aware of what the static mode is capturing for the ambient probe, if it's dynamic, it'll capture that colour.

    Also if you're working with time of day. Be sure to also update the directional lights colour temp accordingly as this also affect indirect lighting/baked direct lighting.
     
  4. DriesVrBase

    DriesVrBase

    Joined:
    Mar 24, 2020
    Posts:
    61
    Yeah but it's dynamic so it should update properly right? I don't really change the color temp accordingly but the thing remains that when I load in the scene directly all looks right again.