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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

HBAO Horizon Based Ambient Occlusion

Discussion in 'Works In Progress - Archive' started by Kaldorei, Jan 23, 2014.

  1. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    Hello,

    We worked on a PostFX named HBAO for our upcoming game "Edge Of Eternity", we wanted to known if some people are interested in this asset if we put it on the asset store,

    HBAO is another method for ambient occlusion, it play nicer with depth / fog and give a more natural feeling than Unity SSAO.

    Settings are highly customizable like unity SSAO !

    (Environement using Medieval Environment from Mickael.O, Character from our game "Edge of Eternity")

    Comparative :

    No Ambient Occlusion
    $1390511404-noao.jpg

    Unity Screen Space Ambient Occlusion
    $1390511417-unityssao.jpg

    Unity Screen Space Ambient Obscurance
    $1390511423-unityobscurance.jpg

    And Finally our HBAO
    $1390511418-hbao.jpg

    We'd like to hear any feedbacks !
     
    Last edited: Apr 11, 2014
  2. FlorianSchmoldt

    FlorianSchmoldt

    Joined:
    Jul 2, 2012
    Posts:
    334
    I was waiting for HBAO since Unitys Butterfly Demo

    If it's just 5$, I'll buy two !
     
  3. jc_lvngstn

    jc_lvngstn

    Joined:
    Jul 19, 2006
    Posts:
    1,508
    It looks interesting, but does it have the same issues as SSAO with transparency and such? Also, using SSAO with vegetation (grass) on the ground often leaves blobs showing through the terrain.
     
  4. eskovas

    eskovas

    Joined:
    Dec 2, 2009
    Posts:
    1,373
    Very interesting.
    What's its performance comparing with the different solutions for ambient occlusion?
    Can you also use other type of scenery to showcase the effect? It's a little difficult to see the differences between the solutions.
     
  5. TopThreat

    TopThreat

    Joined:
    Aug 7, 2012
    Posts:
    136
    yup ill try it
     
  6. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    Maybe a little webplayer to show the differences ? :)
     
  7. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,785
    Can you show the AO buffer comparison (you know that black and white ao texture :p)? or maybe exagerate the AO intensity.
    Really sorry but i can't see the difference (or maybe it just my eyes :p)
     
  8. eskovas

    eskovas

    Joined:
    Dec 2, 2009
    Posts:
    1,373
    That would be perfect.
     
  9. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,649
    If the framerate is better than Unity SSAO why not? 5$ is not a big risk. :D
     
  10. SpreadcampShay

    SpreadcampShay

    Joined:
    Dec 9, 2010
    Posts:
    180
    Looks good! And yes, for a fiver I'd take it :)
     
  11. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
  12. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,649
    Thank you for the webplayer, but it lacks the framerate .
     
  13. janpec

    janpec

    Joined:
    Jul 16, 2010
    Posts:
    3,520
    Purchase for me, its not perfect becouse shadow of object can still be seen in fog bit wierd, but as long as its better than normal AO its buy, for 5 bucks especially.
     
  14. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    I've set the fog really near to show the effect, in reality it's kinda rare that you set the fog so near, and even if i'll add a Z cut value :)
     
  15. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    We did a major optimization and included an ultra fast version of the shader (+10 FPS) but with less precision, it now have correct performance with improved visual quality compared to Unity SSAO. It mean that we will release it very soon :D.
     
  16. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,511
    Being very hopeful here, but will it work on mobile? :p I mean in some practical way.. if it does work, then can you let us have a sample apk with FPS indicator?
     
  17. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    687
  18. Deleted User

    Deleted User

    Guest

    very interesting and the price is very cool. but on the pictures you can see the difference bad. can you possibly show in a simpler scene?
     
  19. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    @Castor76 : It should work on mobile but honestly any image effect is a performance killer on mobile it doesn't worth it with GLES2 (GLES3 support it better)

    I've updated the Webplayer, now there is an option to show the AO pass in B&W, i've added the ZClip option too, i will submit it to AS very soon, performances are now great :).
     
  20. PrimeDerektive

    PrimeDerektive

    Joined:
    Dec 13, 2009
    Posts:
    3,086
    Is ZClip fancy talk for a distance fadeout setting?
     
  21. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    Yes, but it's not "fade" it's clip AO or not AO :p
     
  22. krillmcrawl0

    krillmcrawl0

    Joined:
    Jan 13, 2014
    Posts:
    35
    Looks interesting! Is it commited to the store?
     
  23. OneShotGG

    OneShotGG

    Joined:
    Nov 16, 2012
    Posts:
    225
    Really interested in this asset once it gets released. Does it work with Deferred Rendering?
     
  24. topofsteel

    topofsteel

    Joined:
    Dec 2, 2011
    Posts:
    999
    I'm interested!
     
  25. biven13

    biven13

    Joined:
    Oct 14, 2013
    Posts:
    1
    What about FPS? Is it less FPS hungry that Unity SSAO and Unity SSAobscurance? Would buy it then.
     
  26. JamesArndt

    JamesArndt

    Unity Technologies

    Joined:
    Dec 1, 2009
    Posts:
    2,913
    I have a decent up to date machine and this webplayer scene was running about 8fps.
     
  27. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    Sorry didn't have many time to update, when i have some free time i'll create a new scene more lightweight to demonstrate.
     
  28. Tanshaydar

    Tanshaydar

    Joined:
    Apr 20, 2011
    Posts:
    33
    This looks and sounds great.
    If it is really less fps hungry than Unity's built in SSAO effect, I'm willing to pay more than 5 :D
     
  29. jctz

    jctz

    Joined:
    Aug 14, 2013
    Posts:
    47
    Does this only work with geometry baked into the scene, or will it also work dynamically-instantiated props?
     
  30. Kaldorei

    Kaldorei

    Joined:
    Aug 12, 2010
    Posts:
    112
    It work with everything that write into depth buffer ^^ (everything, only alpha blended shader or zwrite off are not targeted)
     
  31. kite3h

    kite3h

    Joined:
    Aug 27, 2012
    Posts:
    192
    When it is released? I would buy it.
     
  32. Marcurios

    Marcurios

    Joined:
    Nov 19, 2012
    Posts:
    88
    is this still coming, cause if it's good, i'll buy it for sure, ssao from unity is really bad with fog.
     
  33. DeYuang

    DeYuang

    Joined:
    Sep 14, 2012
    Posts:
    12
    Definately interested in this.
    If you guys release this HBAO screen effect on the asset store, what prices can I expect?
     
  34. duke

    duke

    Joined:
    Jan 10, 2007
    Posts:
    763
    What's the status on this?
     
  35. thehosse

    thehosse

    Joined:
    Nov 29, 2013
    Posts:
    35
    Has this been released yet? We're waiting for it.! :)
     
  36. smb02dunnal

    smb02dunnal

    Joined:
    May 5, 2012
    Posts:
    439
  37. llJIMBOBll

    llJIMBOBll

    Joined:
    Aug 23, 2014
    Posts:
    578
    Hi, Great Effect man, I'm wondering if you can help me. I'm trying to set in code so I can change settings during runtime, I tried the following code but says about storing some value.

    hbao is set to reference HBAO script.
    Code (CSharp):
    1. public void bSetHBAOQuality ()
    2.         {
    3.             switch (Mathf.RoundToInt (HBAOQualitySlider.value)) {
    4.             case 0:
    5.                 hbao.presets.preset = HBAO.Preset.FastestPerformance;
    6.                 HBAOQualityText.text = ("Fastest Performance");
    7.                 PlayButtonFx (buttonClickFx, buttonFxVol);
    8.                 break;
    9.             case 1:
    10.                 hbao.presets.preset = HBAO.Preset.FastPerformance;
    11.                 HBAOQualityText.text = ("Fast Performance");
    12.                 PlayButtonFx (buttonClickFx, buttonFxVol);
    13.                 break;
    14.             case 2:
    15.                 hbao.presets.preset = HBAO.Preset.Normal;
    16.                 HBAOQualityText.text = ("Normal");
    17.                 PlayButtonFx (buttonClickFx, buttonFxVol);
    18.                 break;
    19.             case 3:
    20.                 hbao.presets.preset = HBAO.Preset.HighQuality;
    21.                 HBAOQualityText.text = ("High Quality");
    22.                 PlayButtonFx (buttonClickFx, buttonFxVol);
    23.                 break;
    24.             case 4:
    25.                 hbao.presets.preset = HBAO.Preset.HighestQuality;
    26.                 HBAOQualityText.text = ("Highest Quality");
    27.                 PlayButtonFx (buttonClickFx, buttonFxVol);
    28.                 break;
    29.             }
    30.         }