Search Unity

How to avoid still drawing objects completely hidden by VFX particles?

Discussion in 'Visual Effect Graph' started by marcrem, Apr 26, 2020.

  1. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    340
    Hi,

    I created some fog / smoke particles when my player is in heavy rain. when it's the heaviest, it completely blocks sight for a very short distance.

    However, I can still see the outlines of 3D meshes. See image:
    upload_2020-4-26_17-5-38.png

    How can I avoid that?

    Thanks!
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @marcrem ,
    Are the 3D meshes in your image hidden by VFX particles? If so, this would probably cause significant overdraw and you should use regular (non-VFX) fog for that.
     
  3. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    340
    Unlike all video games, my game is about realistic weather simulation. So a rain shaft has to look like this:


    I unfortunately can't do such an effet with a regular fog effect.

    Anyway I found a workaround : Considerably reduce draw distance of my camera when inside the heavy rain.
     
    VladVNeykov likes this.