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

Question Weird gap in my rain "volume"

Discussion in 'Visual Effect Graph' started by gfas, Jul 13, 2023.

  1. gfas

    gfas

    Joined:
    Dec 30, 2020
    Posts:
    11
    Trying to setup a simple rain volume to follow the camera. Used a Set Position (Shape: AABox) and an update Tile/Warp Positions with the same box size. Expected a uniform distribution of particles but I'm getting a "gap" in my rain aligned with the world X axis.
     

    Attached Files:

  2. OrsonFavrel

    OrsonFavrel

    Unity Technologies

    Joined:
    Jul 25, 2022
    Posts:
    128

    You are spawning your particles on the "Surface" of the AABox. The particles are spawned uniformly on the Surface, but as the AABox size is the same as the Warp/Tile Box size, the particles on the extremity are being directly "warped/transfer" on the other side of the box by the Warp/tile Position Block in the Update Context.
    Unity_PD5LWCmnT6.gif
    This is what is causing this behavior.

    If you want your particles to be on the "Surface" of the Box, I would suggest that you lower the AABox Size.
    But I think that the best solution here would be to set the "Position Mode" of the AABox to Volume. This will get rid of your issue.
    upload_2023-7-13_15-35-22.png
    Unity_nmw7r4ll5l.gif

    Hope it helps.
     
  3. gfas

    gfas

    Joined:
    Dec 30, 2020
    Posts:
    11
    Ok, figured it out. I was adding an URP output node, but failed to add a "face camera plane" block.