Search Unity

How to create dynamic ripples?

Discussion in 'Image Effects' started by lumbert, Sep 19, 2019.

  1. lumbert

    lumbert

    Joined:
    Mar 19, 2014
    Posts:
    24
    I would like to know the possible methods on how to create moving ripples like in this video here:



    And I would like to project that onto a wavy water surface, which is not flat.
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    There are examples out there how to do this; you basically first devise a way to render your circles, then figure out how to reconstruct world space coordinates in your shader. You can find discussions related to this in a few threads (https://forum.unity.com/threads/sol...epth-texture-in-single-pass-stereo-vr.480003/) and Keijiro's GitHub repo (https://github.com/keijiro/DepthInverseProjection) which was one of the first solution sources for this problem.

    I think there might be also a free example of the very same effect in the asset store nowadays.