Search Unity

Ambient Occlusion with LWRP

Discussion in 'Image Effects' started by Vallar, Jun 11, 2019.

  1. Vallar

    Vallar

    Joined:
    Oct 18, 2012
    Posts:
    155
    Hi all,

    Does AO work with LWRP or is it not supported? If not, any workaround for that?

    Thanks.
     
  2. Cascho01

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,110
    Not officially supported yet
     
  3. Vallar

    Vallar

    Joined:
    Oct 18, 2012
    Posts:
    155
    Any work around?
     
  4. Cascho01

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,110
    Try Amplify Occlusion from the store, but be very sure that it supports LWRP....
     
  5. Vallar

    Vallar

    Joined:
    Oct 18, 2012
    Posts:
    155
    I guess there is no free alternative?
     
  6. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    14,562
    See if this one works for you. Just keep in mind it is a year old.

    https://github.com/beinteractive/LWRPAmbientOcclusion

    Other than that you might consider using HDRP instead of LWRP, or just learning to extend the render pipeline since that is the primary purpose behind it being a scriptable render pipeline.
     
  7. Vallar

    Vallar

    Joined:
    Oct 18, 2012
    Posts:
    155
    Thanks for the suggestion. I'll check it out. The reason I am using LWRP is Shader Graph. HDRP seems an overkill for the game I am working on -- specially when it is targeting high end devices. The game isn't targeting mobile but between "any device" and "high end devices" there is limited choice. The standard RP doesn't come with Shader Graph. So...
     
  8. jess_unity

    jess_unity

    Joined:
    May 8, 2019
    Posts:
    7
    Did you get this to work? We're using 2019.1.8f1, LWRP 5.16.1, and the scripts wouldn't run. Would love an SSAO solution for LWRP, it's one of the few key things it's missing!
     
  9. Vallar

    Vallar

    Joined:
    Oct 18, 2012
    Posts:
    155
    Nope. Tried the Github and had a few errors and it won't run. I long switched back to SRP instead and we're looking into trying Amplify products.
     
  10. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    883
    how can this be a thing if the AO is part of the official PP stack?
     
    noio likes this.
  11. G33RT

    G33RT

    Joined:
    Dec 27, 2013
    Posts:
    20
    The documentation states that:
    • Compute-based effects by default, including Auto-exposure, Ambient Occlusion (MSVO) and Debug Monitors. You can use these effects in LWRP, but only if your target hardware supports Compute Shaders. If your target hardware does not support compute shaders, Unity disables the post-processing effect at run time.
    REF: https://docs.unity3d.com/Packages/c.../manual/integration-with-post-processing.html

    Which is exactly what I want … but I can't get this to work. Am I missing something?
     
    pverflow likes this.
  12. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    1,483
    Yeah would love to find out what's up with it. if Unity is working on it, then when we will be able to check it out.
     
  13. pverflow

    pverflow

    Joined:
    Jun 4, 2019
    Posts:
    1

    and i could swear it worked around 2018.1 / 2 they probably broke it again .
     
  14. juliodutracora

    juliodutracora

    Joined:
    Jun 11, 2019
    Posts:
    15
    Just migrate my project to LWRP. Have we a date for occlusion work again? Would this fix be in 2019.3?
     
  15. juliodutracora

    juliodutracora

    Joined:
    Jun 11, 2019
    Posts:
    15
    +1 waiting occlusion back in tracks for LWRP
     
  16. installvidmate02

    installvidmate02

    Joined:
    Friday
    Posts:
    2
    That's why I was wondering why it is not working....!
     
  17. installvidmate02

    installvidmate02

    Joined:
    Friday
    Posts:
    2
    LOL Seriously?
     
  18. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    835
    This is one of the core features which is stopping me from switching to USRP. Now that LWRP is being angled to be a replacement for the Standard pipeline, I'm assuming they will be trying to get this working at some point...?
     
  19. angelrubio

    angelrubio

    Joined:
    Mar 5, 2013
    Posts:
    9
    +1 waiting for this to work, hope they get to it soon