Search Unity

Question Universal Render Pipeline screen tear / ghost image help

Discussion in 'Universal Render Pipeline' started by GameDevSA, Aug 11, 2023.

  1. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    I'm having an issue setting up the Universal Render Pipeline. I'm having an issue where, in scene view, I get weird ghost images / tearing when ever I zoom out or move any images in the scene view, as if the image is not being refreshed.

    upload_2023-8-11_11-44-51.png

    I've been following this video and followed his steps:



    I'm using Unity 2019.4.33f1 LTS.

    I followed his instructions:

    1. Import the Universal Render Pipeline package
    2. Create > Rendering > Universal Pipeline > Pipeline Asset (Forward Renderer)
    3. Create > Rendering > Universal Pipeline > 2D Renderer
    4. Drag the 2D renderer onto the Renderer List of the new Universal Pipeline asset
    5. Edit > Project Settings > Graphics > Change the render pipeline asset
    6. Edit > Render Pipeline > Universal Render Pipeline > 2D Renderer > Upgrade Scene to 2D Renderer
    I looked at "lighting" and there are a few warnings, not sure if it is related.

    upload_2023-8-11_11-46-6.png

    I'm pretty stuck here. Any help is appreciated. I'd really love to add 2D lights to my game. I have had other issues to do with the UDR pipeline and lighting, which you can see I've posted here: https://forum.unity.com/threads/hel...tilemaps-udr-not-working-as-expected.1472124/

    Thanks.
     
  2. MaxwellTan

    MaxwellTan

    Unity Technologies

    Joined:
    Mar 3, 2022
    Posts:
    75
    Hi, are able to provide a small of the project on this issue, to reproduce on outside
     
    GameDevSA likes this.
  3. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    It's worth noting, I made a brand new project in 2019.4.4 LTS, put a sprite in the scene, repeated the same steps, and had no issue, so it does appear to be something in my existing projects specifically. I have 2 projects that are having this issue, both upgraded from older versions of Unity to 2019 for the nested prefabs update.

    Here is a test version for you from one of those projects: https://drive.google.com/file/d/1FhGl9jox7YTd1Tcbj4vw9W2N8A2-Dnfc/view?usp=sharing

    For me, when I open the scene, if I zoom in and out (with the lighting off because with lighting on everything is black), I see this tearing in the scene view. It seems to be completely unrelated to camera settings or any other object in the scene. Opening and closing the project makes no difference. I feel like it could be a graphics / rendering setting somewhere but I'm not sure what. It only starts after I added the URP with the steps listed above in my original post.

    However, if I swap between game view and scene view, the image refreshes and the tearing goes, or if I turn the lighting on and off. That is, until I zoom in and out or move the scene view around again, causing these ghost images of the sprite. It feels like it's a render buffer not being cleared or something (I'm not super up with rendering, it's just a thing I vaguely remember from college).

    Thanks for your response.
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    I'm not a rendering dev but the Camera has ClearFlags. Presumably that hasn't been changed to "Don't Clear".
     
    MaxwellTan likes this.
  5. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    Hm I don't know a heap about the camera, I can't see anything called a Clear Flag. However, this is happening in the scene view, so I don't think its related directly to the camera (although maybe I need to change camera settings also).

    Even if I delete the camera and have no camera in the scene, the tearing occurs, so unfortunately I don't think it's a camera issue.

    upload_2023-8-17_21-19-49.png

    I've just uploaded a video of the issue occurring as well as an unlisted Youtube video.

     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    MaxwellTan likes this.
  7. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    Thanks for your response. Yes that's right, this only started happening when I added URP to my project as per the instructions in the video tutorial I posted right at the top. Everything was fine before adding URP, but I was hoping to use it for 2D lighting.

    That's odd about the skybox, thought I had that set to solid colour. I just changed it to solid colour but yeah, even when I delete the camera, it's still happening, so I don't think the issue is quite the camera. I've just made another video to demonstrate the difference between what's happening in the scene view, and the game view.

    Game view on the camera is fine. It's just in scene view, making it very hard to do any kind of level editing, because any graphic that moves across the scene in scene view will that ghost image trail.

     
  8. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    Yes, for some reason it's not clearing the previous frame.
     
  9. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
  10. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    It might move this to the URP forum; might be more answers there. I can leave a redirect from here too so you can access it from both forums.
     
    MaxwellTan and GameDevSA like this.
  11. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    OK thanks I appreciate that. Anything to help. Hadn't realised there was a URP forum.
     
    MelvMay likes this.
  12. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    I'm still waiting for access, but I wonder, is this something "Muse" might be able to help me with? I'm very keen to try Muse
     
  13. Personuo

    Personuo

    Joined:
    Mar 19, 2014
    Posts:
    129
    ?Any progress?
     
  14. Personuo

    Personuo

    Joined:
    Mar 19, 2014
    Posts:
    129
    Backgound type -> Solid color -> all black (alpha set to 0)
     
  15. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    Unfortunately no, no progress. It's totally weird. I was hoping someone from Unity might have an idea.

    I not believe it has anything to do with camera settings, because I do not see this issue in the game window. I only see it in the scene view, which is independent of the camera. Regardless, these are my camera settings:

    upload_2023-10-9_19-7-54.png

    I suspect it has something to do with project lighting and rendering settings somewhere but I wouldn't know which ones. Here's my lighting settings:

    upload_2023-10-9_19-8-48.png

    Graphics (mind you, I've reverted back from URP so that is not currently set in the render pipeline)

    upload_2023-10-9_19-9-55.png
    upload_2023-10-9_19-10-11.png

    And in the player settings, under 'Other Settings':

    upload_2023-10-9_19-11-11.png
     
  16. GameDevSA

    GameDevSA

    Joined:
    Dec 12, 2016
    Posts:
    252
    Continued "Other settings":
    upload_2023-10-9_19-11-49.png

    I believe it could be something to do with one of those settings or something else I'm not aware of not acting or being set up correctly when I implement URP.

    When I create a new project in Unity 2019 LTS with URP, this doesn't happen, so I think the issue has arisen from me upgrading a project that was initially built in an older (I forget which) version of Unity, and it's one of those issues that happens when you upgrade a project.