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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

URP Decals keep disappearing?

Discussion in 'Universal Render Pipeline' started by projectorgames_unity, Apr 20, 2022.

  1. projectorgames_unity

    projectorgames_unity

    Joined:
    Oct 15, 2018
    Posts:
    107
    I keep getting weirdness with decals disappearing. It *seems* to be all decals of a certain type; almost like their statically-batched and they all disappear at once. This quick clip shows it acting up in the editor:

    https://i.gyazo.com/576610e02c2d807700321b6a4708acb8.mp4

    Does anyone have any good suggestions or ideas? There's no custom shaders, VR is disabled, and I'm not any 'clever' visibility culling or anything!

    Using Unity 2021.2.15f1.
     
  2. projectorgames_unity

    projectorgames_unity

    Joined:
    Oct 15, 2018
    Posts:
    107

    This shows them being visible in Scene view but not Game view.
     
  3. projectorgames_unity

    projectorgames_unity

    Joined:
    Oct 15, 2018
    Posts:
    107

    Attached Files:

  4. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    852
    Are you using a Render Scale other than 1.0 in your pipeline settings?
     
  5. projectorgames_unity

    projectorgames_unity

    Joined:
    Oct 15, 2018
    Posts:
    107
    I am, but I'm also currently applying the fix for that - I've also verified that keeping it at 1.0 doesn't affect this issue at all. (Bear in mind, ofc, that the video clip above was taken in the Scene view, where renderscale doesn't apply)
     
  6. Crzed

    Crzed

    Joined:
    Oct 19, 2013
    Posts:
    20
    @projectorgames_unity did you ever come across a fix? I'm hitting similar issues using BIRP - seems to be based off of the camera position/angle or something.
     
    Last edited: Oct 9, 2022
  7. touly

    touly

    Joined:
    Nov 17, 2016
    Posts:
    2
    @Crzed I thought the same but after few tests it seems more like a number limit of active decals in the view of the camera (which give the false impression of an angle issue). Strange though I can not find any parameter for this or any reference for such limitation.
     
  8. Crzed

    Crzed

    Joined:
    Oct 19, 2013
    Posts:
    20
    @touly it's something else entirely, not a number limit either. My decal particles all had short lifetimes. When I got the camera in the correct spot it didn't matter how many there were, they wouldn't show. If I slightly reoriented the camera I could have as many as I want showing up.