Search Unity

repeating lines and particles off of lines.

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

  1. kdarius43


    Mar 16, 2015
    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


    Unity Technologies

    Sep 16, 2016
    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):

    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:

    And the result:

    Hope this helps!

    Attached Files:

    PaulDemeulenaere likes this.