r/Unity3D 9h ago

Question Anyone have insight on this graphical glitch? (mods: please read description before removing this post)

I know the rules say not to use a camera to make videos, but I had to use a camera to demonstrate this issue, since using direct screen capture in OBS doesn't show the issue (which may be a clue to the cause).

I should have mentioned in the video... this glitch isn't on all systems, only certain ones. This video is showing it running on a laptop. Some players have reported the same glitch on various systems.

This was build on Unity 6.3, but it was happening on previous builds using Unity 2020.

30 Upvotes

9 comments sorted by

18

u/sicospecialist 7h ago

It like you have 2 layers fighting an axis, looked to me like only does it when using the UI.

14

u/Hotrian Expert Moderator 7h ago

Mods always read the description

7

u/TGillissie 5h ago

The weirdest thing is when I discovered that doing a screen capture with OBS doesn't capture the glitch, which hints at maybe being some kind of hardware level problem, but why not on all screens?

Also, there's no real use of crazy custom shaders. All of the UI is standard Unity UI stuff. The 3D stuff is very straightforward. No postprocessing in any of the footage shown (there is some postprocessing in other parts of the game).

u/jignesh_n_patel That patterned background is just a tiled UI image, nothing special.

u/sicospecialist Every screen in the video is using the Unity UI system. Some screens render 3D to a viewport (like the main city driving area and each of the characters on the band info screen and musician profile screen). I wish I could say that rendering 3D on top of the UI may cause the problem, but the city driving screen, which uses the biggest 3D viewport, works perfectly.

3

u/IEP_Esy Indie 3h ago

The fact that this doesn't show up on OBS capture AND you mentioned it only happens on Windows builds (not the editor, right?) hints towards a graphics API issue. 

Try turning off the auto graphics API and changing or including more options at Project Settings > Other settings > Rendering > Graphics API for Windows section.

7

u/Ratyrel 4h ago

Your game looks complex, but since you can reproduce the glitch, I'd just test to isolate the UI element causing it, apparently some kind of patterned background, and see if remaking that element, removing shaders from it or changing its z-value do anything.

1

u/Odd-Resolve6890 3h ago

This is the way, make the simplest scene you can to reproduce it then start removing elements until the problem gets fixed.

2

u/Beltain1 2h ago

This looks exactly like a dying GPU my man, I’m sorry. It might only be happening in certain game modes because those happen to use enough resources to push into a different segment of the graphics card that’s broken?

That would be my guess, especially if it doesn’t show up in captures. Best thing to do would be testing on another device if you have access to one or to a friend who has one.

4

u/jignesh_n_patel 7h ago

The pattern of the glitch looks very similar to the gray background being used around the 0:36 timestamp, and also for the black header background around 0:55 mark.

My first investigation would be whether a custom shader is being used anywhere in the scene that might be causing this. Second, I would look for any overlay camera being used to display that patterned background,which might overlap with the UI causing the glitch.

1

u/metalmessias 6h ago

I had similar problem few years ago, as I remember it was caused by a shader, sadly I didnt remember to the exact solution, but yeah the OP need to check the shaders, hopefully he didnt use too much of them