Search Unity

repeating lines and particles off of lines.

Discussion in 'Visual Effect Graph' started by kdarius43, Feb 24, 2020.

  1. kdarius43

    kdarius43

    Joined:
    Mar 16, 2015
    Posts:
    170
    Hello all,

    I have a project that is perfect for VFX. I have created a project using some of keijiro's techniques that displays a wav form live from an audio source in VFX Graph. I have to questions

    1. How would I repeat the lines outward like that attached image (think 80s sytle). Sorry for the awful drawing.
    2. what if I wanted particles just to come off of the wav form lines and not full lines.

    please see this video to refence what my current wavform looks like.


    Thank you for your help.
     

    Attached Files:

  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi, I've included a vfx answering your questions.
    In short, you can create a second output and mirror the position values (depending on whether you are using target position as well, you have to mirror that value too):
    upload_2020-3-2_17-50-22.png

    As for particles coming off the wave, you can use a trigger event and inherit the line's position. New particles will spawn from the line position then. In the attached example I'm flipping the position of each second particle to mimic them spawning from the flipped line, as the trigger event happens before we have the two outputs so it doesn't know about the positions of the flipped line:
    upload_2020-3-2_17-52-22.png

    And the result:


    Hope this helps!
     

    Attached Files:

    PaulDemeulenaere likes this.