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.

Resolved Lerp Position between two Point Caches

Discussion in 'Visual Effect Graph' started by Livealot, Apr 12, 2021.

  1. Livealot

    Livealot

    Joined:
    Sep 2, 2013
    Posts:
    228
    Spawning from a PointCache is great. Is there a way yet to have a VFX graph gradually transition from one PointCache to another?

    It feels like there should be a way to Lerp between the two maps, but I'm struggling to find it.
     
  2. DRandall

    DRandall

    Joined:
    Jul 21, 2018
    Posts:
    8
    you could set something like this up for a basic blend between two point caches
     

    Attached Files:

    WangDL1902 and Livealot like this.
  3. Livealot

    Livealot

    Joined:
    Sep 2, 2013
    Posts:
    228
    That works great. Thanks @DRandall

    One word of caution, some of my attempts were thwarted by a bug (already submitted AND fixed amazingly) where swapping references to point caches doesn't really, so I was morphing from pointCacheA to pointCacheA.

    Happy morphing!
    PointCacheBlend.gif
     
    DRandall likes this.
  4. alexandraFaliro

    alexandraFaliro

    Joined:
    Feb 3, 2022
    Posts:
    1
    Hello! I wanted to ask if there is a way to lerp colour maps as well. Thank you in advance!
     
  5. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    284
    Hi. If your point cache data has colour information, you can definitely lerp colour exactly as you lerp position (or any kind of data really as long as you have it)