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

VFX graph decal particle is not rendered if the camera get inside the bounding box of that particle.

Discussion in 'Visual Effect Graph' started by modar, Mar 3, 2021.

  1. modar

    modar

    Joined:
    Jul 18, 2013
    Posts:
    27
    Hi, We are on Unity 2020.1 and HDRP 8.2. We try to use the "Output Particle Forward Decal" in VFX Graph to draw large VFX particles on the terrain. all works well except when the camera gets closer to the terrain and gets inside the bounding box of the decal particle then the decal just disappears.

    The screenshot shows the decal particle and its bounding box, if the camera gets inside it, the particle will not be rendered.

    decalBoundinfBox.PNG

    In our scenario, the decal particle is always big and the camera will always be inside its bounding box.

    is there a way to fix this issue?

    Thank you!
     
    Last edited: Mar 3, 2021
  2. eggsamurai

    eggsamurai

    Joined:
    Oct 10, 2015
    Posts:
    110
    I got exactly the same problem @ HDRP10.5.1, my decal was cutted...
    DA5527FA-3343-4bb0-BF7B-DB98A5492717.png
     
    Last edited: Jul 2, 2021
  3. ludovic-theobald

    ludovic-theobald

    Unity Technologies

    Joined:
    Jun 3, 2021
    Posts:
    13
    Hello! Indeed, the "faces" of the decal box need to be visible from the camera for it to render properly. If your use case allows it, you can make the decal box be smaller along its projection axis, by using the Set Scale block.

    https://imgur.com/a/ZlRz7NI