Search Unity

Question Fade previous frames over time

Discussion in 'Universal Render Pipeline' started by MaT227, Aug 25, 2020.

  1. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
    Hi there,

    I'm using URP and a Scriptable Render Feature.
    I'm rendering some objects with a specific layer but I can't achieve to make them fade over time.
    You can think of some kind of ghosting effect or this example where thje previous frames are accumulated and slowly disappear over time.


    Any idea about how to achieve this kind of effect ?
    Thanks a lot !
     
  2. sebsmax

    sebsmax

    Joined:
    Sep 8, 2015
    Posts:
    118
    is it a 2D or a 3D effect that you are looking for?
    I mean if you rotate the camera, you expect the trail to show a volume or the effect is on the camera itself?
     
  3. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Posts:
    628
    This is a 3D effect but for the moment I focus on a fixed camera position and wonder how I need to organize all RenderTargetHandle, Blits, etc. in the Configure and Execute functions.
     
  4. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    If it's a 3d effect learning the 2d version won't help, they work differently. The 2d is done through accumulation buffer, that's old school motion blur. The 3d is done by duplicating mesh and have a transparent trail of them, done in shenmue, it allow you to turn around the effect, but is fillrate intensive.
     
  5. sebsmax

    sebsmax

    Joined:
    Sep 8, 2015
    Posts:
    118