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

Unity 5.4: Global fog now flips transparent objects when using single pass.

Discussion in 'General Graphics' started by hoesterey, Sep 4, 2016.

  1. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Global fog now flips the location of transparent objects when using single pass rendering.

    Notice the circled objects in the pic below.

    UnityBugFogOff.PNG

    Now with global fog on:
    notice that particles and the gui object are flipped.
    UnityBugTransparentFlip.PNG

    The setup has 3 cameras. One depth 0, one depth 1, one depth 2. The flipped particles, the flipped ui and the fog are all rendered on the depth 0 camera. The depth 1 and 2 cameras render the close up cockpit and overlayed gui respectivly. They are unaffected, Turning the top two cameras off the same problem exists, so it seams this happens with a single camera setup as well.

    Turning off single wide rendering fixes the issue.


    Any help would be appreciated, we use custom image effects based on the stock Global fog, sadly with stock global fog broken our custom effects are also broken.

    Test global fog setup:
    UnityBugFog.PNG
     
  2. robinb-u3d

    robinb-u3d

    Unity Technologies

    Joined:
    Jul 13, 2015
    Posts:
    20
    Hi

    We've got a few bugs related to this (non are currently public so not on the issue tracker) but are still looking into why it happens.

    Cheers

    Robin
     
  3. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Happy to here it's being worked on. It'd be good to get this in the issue tracker so others can avoid spending time trying to figure out why there transparent objects are not rendering correctly.
     
  4. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Any ETA on this fix? Fog is an important visual effect for us and its hard for us to tighten up our our art style and polish our levels without it. Thanks for any help.
     
  5. KellyJelly

    KellyJelly

    Unity Technologies

    Joined:
    Sep 29, 2016
    Posts:
    12
    Hi, I'm the Unity dev working on fixing up fog for VR. there's a fix for the flipping in 5.6 right now, but it hasn't been backported to 5.5 yet. I'm working on another fix to fog with asymmetric frustums (vive/openVR) that I'm going to combine with the flip fix before I port it to 5.5 Shouldn't be too long now. So maybe look for the fix to fog in the next couple of 5.5 betas.
     
  6. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Great thanks!
     
  7. _dns_

    _dns_

    Joined:
    Sep 6, 2013
    Posts:
    15
    Hi, GlobalFog inverses the screen upside down since we upgraded to 5.5.0p1 (DX9 & PS4). Previous shader version (from 5.4) with 5.5.0p1 inverses the screen too. Is this a known bug ?

    EDIT: bug reported (859900)
     
    Last edited: Dec 9, 2016
    Classic-Niall likes this.
  8. Classic-Niall

    Classic-Niall

    Joined:
    Apr 16, 2013
    Posts:
    3
    Yea, I've got the same issue with 5.5.0f3. As soon as I apply the Global Fog to my Main Camera, the game flipped.
     
  9. DevCake_

    DevCake_

    Joined:
    Dec 8, 2015
    Posts:
    5
    Same issue here
     
  10. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Make sure you reimport the effects. I noticed when you update unity the standard effects are not updated by default and you need to re-import them.
     
  11. sporkflips

    sporkflips

    Joined:
    Jun 14, 2014
    Posts:
    26
    I'm also encountering this issue in 5.5.0f3 on a new project with image effects assets imported after installing this version of Unity.
     
  12. _dns_

    _dns_

    Joined:
    Sep 6, 2013
    Posts:
    15

    Attached Files:

  13. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    Heya,
    We just moved from Oculus to Open VR integration. While the image effect is still not flipping as expected there is a different problem in Open VR with global fog and most other image effects. They swim. This only happens if using OpenVR
    https://forum.unity3d.com/threads/image-effects-broke-in-open-vr-unity-5-5-0p3.451719/

    Wanted to give you a heads up, this is a critical issue for us. Thanks!
     
  14. rhood666

    rhood666

    Joined:
    Jan 3, 2016
    Posts:
    1
    I'm also having this issue? Any update?
     
  15. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    I received a response from Unity QA that follows:

    "Image effects in the Standard effect package are about to be deprecated and removed from Unity. Whilst a global fog effect currently isnt in the new Post Processing stack (its currently being worked on) we still are not actively fixing this version.

    With regards to VR testing; we test the new Post Processing stack fairly vigorously on both Vive and Occulus. The testing situation for legacy effects is not great though. It is simply too much work to support 3 sets of image effects across all platforms and VR/AR.

    Thanks for submitting your report."

    So it looks like we wont be getting support on this for awhile.
     
  16. tapawafo

    tapawafo

    Joined:
    Jul 25, 2016
    Posts:
    170
    Has anyone found a solution for this? I'm still getting camera flipping with fog shaders using 5.6 in forward rendering - even though it was apparently fixed?

    Sorry for posting in an old thread, I just can't find anything else on this issue.
     
  17. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    See above post. QA has stated that they don't have time to test all version of image effects and are not supporting it. A new global fog is coming in 5.6 at some point.
     
    tapawafo likes this.