Search Unity

Assets Ray Marching Screen Space Ambient Occlusion

Discussion in 'Works In Progress - Archive' started by marggob, Jun 2, 2019.

  1. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Hi, everybody!
    Please help me test my SSAO.
    2019-06-02_13-57-10.png
    You need to write:
    screen resolution
    video card
    FPS - displayed at the top of the screen
    Just saying - it is quite heavy, because remarking. Will not slow down only on powerful graphics cards. But it looks good.
    Management as in the shooter - WASD.
    Q and E to move the boundary of the display AO.
    R and T - mode switching.

    Link:
    https://yadi.sk/d/SHDjKyaquuxLWw
     
    Billy4184 likes this.
  2. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    347-351 FPS
    Nvidia 2080Ti
    1080p

    Image 1286.png
     
  3. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Thanks.
    Let's see what other commentators have to say. :)
     
  4. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    1,487
    130-200 FPS (depending where I look)
    Nvidia 1060
    1080p

    You plan to sell as asset?
     
  5. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Yes. I'm planning on making an asset. But first, I'll fix the flaws.
    1. I need to remove the Ghost effect from temporal denoising at low frame rates. Most likely it will be activated optionally. At a high frame rate it is almost invisible.
    2. Need to add stereo support for VR.
    3. Implement downsampling for high resolutions.
    4. Possibly implement support for forward rendering. Now it works only in deferred.
     
  6. Mordus

    Mordus

    Joined:
    Jun 18, 2015
    Posts:
    174
    88-120 fps
    1050 ti @ 1080p
     
  7. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Thanks. :)
     
  8. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Finishing my SSAO.
    Here is a screenshot of the medium-high settings.
    2019-06-21_22-44-00.png
     
    Last edited: Jun 21, 2019
  9. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Testing on scenes with lighting.
    5We3XFJ9zGg.jpg
    wAXwl9O02lU.jpg
     
  10. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Finished the optimization. Soon I will send the asset for approval.
    0_1.jpg 0_2.jpg
     
  11. marggob

    marggob

    Joined:
    Feb 24, 2013
    Posts:
    65
    Hi, everybody. I was away for a month and couldn't do the asset. Now I'm back and finishing working on it.
    Currently implemented:
    1. highly optimized performance. With the "Half Rays" mode enabled, the acceleration reaches 30-40% without noticeable loss of quality.
    The frame in the example below without SSAO is drawn in 4.6 milliseconds at a resolution of 3840x2160. SSAO renders in approximately 2.5 milliseconds. Ssao radius - 2 meters.
    222.png
    2. Added the ability to create your own configuration profiles. You can switch them both in the menu and through the code by calling from other scripts. for example, if you want to change the quality of the SSAO option graphics settings.
    111.png
    3. Added stereo support. But not yet tested - I do not have a VR helmet(just was not needed, I will buy in the near future).

    Nearest plan:
    1. The display in the viewport of the scene. Now Motion Vector does not work correctly, which leads to a lot of artifacts.
    2. Add support for HDRP.
     
    Quique-Martinez likes this.