Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Visual Effect Visible Through Other Objects

Discussion in 'Visual Effect Graph' started by unity_tOwpNSr-oL7zFw, Apr 12, 2021.

  1. unity_tOwpNSr-oL7zFw

    unity_tOwpNSr-oL7zFw

    Joined:
    May 12, 2019
    Posts:
    4
    Hey everyone. I'm trying to figure out why the VFX particles on one of my objects are sometimes visible through other objects. Here's a couple of camera angles to illustrate my problem:



    Any idea what could be causing this or how to fix it?
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @unity_tOwpNSr-oL7zFw ,
    It's a bit hard to tell without looking at your graph / scene.

    - Are your scene objects and your VFX emitter at the same distance? (i.e. have you tried moving the VFX emitter further away from the camera) At a first glance, it looks simply that they are at the same position (assuming on the Z axis) and because the particles have a random velocity some of them sometimes pop in front of your other objects.

    A few other possible culprits:
    - Are you using some depth collision block in Update which might be pushing the particles forward?
    - Are the background objects using a transparent material?
     
  3. unity_tOwpNSr-oL7zFw

    unity_tOwpNSr-oL7zFw

    Joined:
    May 12, 2019
    Posts:
    4
    Thanks for your response @VladVNeykov .
    I was using a set-pivot node in my graph when I should have been using set-angle. This was causing particles to move towards the camera, they just didn't appear to due to the camera being in isometric mode.
     
    VladVNeykov likes this.