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.

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:
    549
    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.