Universal Render Pipeline screen tear / ghost image help

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.

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

I’m using Unity 2019.4.33f1 LTS.

I followed his instructions:

  • Import the Universal Render Pipeline package

  • Create > Rendering > Universal Pipeline > Pipeline Asset (Forward Renderer)

  • Create > Rendering > Universal Pipeline > 2D Renderer

  • Drag the 2D renderer onto the Renderer List of the new Universal Pipeline asset

  • Edit > Project Settings > Graphics > Change the render pipeline asset

  • 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.

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: Help with 2D lighting and tilemaps - UDR not working as expected

Thanks.

Hi, are able to provide a small of the project on this issue, to reproduce on outside

1 Like

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.

I’m not a rendering dev but the Camera has ClearFlags. Presumably that hasn’t been changed to “Don’t Clear”.

1 Like

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.

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

Ah forgive me, this is URP. The non-URP Camera has that property.

The URP one is here: Camera component reference | Universal RP | 7.2.1

https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.2/manual/cameras-advanced.html

There it’s called the background type and you have it set Skybox not Uninitialized so that isn’t it. It might be useful to change it to a solid color to see if that is rendered.

For sure, the buffer is not being cleared there.

1 Like

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.

https://www.youtube.com/watch?v=IWhLG4LIfvQ

Yes, for some reason it’s not clearing the previous frame.

Yeah it’s bizarre. I’ve just added a new version of the project with camera and keyboard controls to move the object around in the game view : https://drive.google.com/file/d/10VDoPcyzVjLF3viDA4Sqr2icIU3SVwIl/view?usp=sharing

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.

2 Likes

OK thanks I appreciate that. Anything to help. Hadn’t realised there was a URP forum.

1 Like

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

?Any progress?

Backgound type → Solid color → all black (alpha set to 0)

1 Like

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:

9397424--1315283--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:

9397424--1315286--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)

9397424--1315289--upload_2023-10-9_19-9-55.png
9397424--1315292--upload_2023-10-9_19-10-11.png

And in the player settings, under ‘Other Settings’:

9397424--1315295--upload_2023-10-9_19-11-11.png

Continued “Other settings”:

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.

Any progress on this? I’m facing the same problem.

None at all. I was hoping someone from Unity might have a solution but heard nothing. My screen capture seems to have disappeared. If you can record it happening it might help diagnose it. I can’t because I’ve removed URP from my project for now and ended up using the default pipeline for my 2D lighting.

1 Like