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.
  2. Dismiss Notice

Bug Small `Set Position` AABox dimensions lead to ring

Discussion in 'Visual Effect Graph' started by Bersaelor, Jun 21, 2023.

  1. Bersaelor

    Bersaelor

    Joined:
    Oct 8, 2016
    Posts:
    110
    Hello,
    when I tried using Set Position (Shape: AABox) with a box that is "1 x 1 x 0.1".

    It seems when my box gets small in any dimension, and I have "Position Mode: Volume" the particles will always leave a weird hole in the middle:
    Screenshot 2023-06-21 at 01.31.07.png

    This doesn't happen if the AABox is thicker, i.e. from 1 x 1 x 0.5 I get the box properly filled with particles.
    Has someone seen this before? Can we not have thin bodies as the origins of our VFX?


    It gets even weirder when I make the box even smaller:

    Screenshot 2023-06-21 at 01.37.50.png

    (All I want is for my particles to emerge from a wall. There is a `Set Position: Line` that does 1D, the AABox does 3D. But if I shrink one dimension of the AABox, it'll deteriorate into a ring, how can I do a Quad?)
     
  2. Marie_G

    Marie_G

    Unity Technologies

    Joined:
    Mar 9, 2021
    Posts:
    48
    Hello,
    can you share the entire graph so we can investigate the issue?
    What unity version are you on?
     
  3. Bersaelor

    Bersaelor

    Joined:
    Oct 8, 2016
    Posts:
    110
    Thank you, by reducing my VFX to a minimal example, I was able to isolate the culprit:
    There is a `Collide with Signed Distance Field` which I had copy+pasted from a different VFX I used before. When I remove that, the hole in the middle goes away.
    Interestingly, the `Collide with Signed distance field` has `lifetime-loss` set to `0`, so I'm surprised that this had any effect at all (In the previous VFX I copied it from, this was used to trigger an event)
    Screenshot 2023-06-21 at 10.11.27.png

    Here is a link to the `*.vfx` file: https://www.dropbox.com/t/Cf7oAcM2OTLUZ4dj
     
  4. Marie_G

    Marie_G

    Unity Technologies

    Joined:
    Mar 9, 2021
    Posts:
    48
    Yes that makes sense, the particles are not killed but they are pushed outside of the collider so it still results in the hole you see.