Unity 5 causing graphical glitches (eg. in Courtyard and Viking Village sample projects)

I first encountered some glitching in my own proto project, but I thought that was due to some weird problem with my shader (which did work properly in Unity 4 btw.). Now I tried the Courtyard demo project from assets store, and I’m experiencing similar, weird, seemingly random issues. Check the screenshots below:

vs.

vs.

Just due to some small changes in the position or angle and stuff creepily appear in front. So what is causing this? Even if I would have old graphics drivers that wouldn’t support something, fallback shaders should prevent stuff like this from happening, right? My hardware otherwise isn’t really that old - whole set bought last year. And I did now update my video card driver and it might have been that it fixed lighting issues in the scene, but other than that, there are still the problems shown in the above picture.

I don’t play games much in general so can’t say for sure that similar things wouldn’t happen in other games, but I have played at least Outlast this year, and no problems there, and I’m guessing there wouldn’t be much problems with other games either. So: why is this happening in Unity? I’m using version is 5.3.

I tried the Viking Village demo now and it’s not working properly either. I’m getting these three errors on load:
Failed reading from: ‘04/049385954893a938cd297f9b46f42dd0.rpc.sse’.
Failed loading probe set data for hash: 0x049385954893a938cd297f9b46f42dd0
Error adding system: Data not available.

I’m not sure if those really matter, and in any case they probably aren’t related to the graphical issues. The problems with Viking Village are not as critical as the downright glitchiness of what I see in the Courtyard project, but very bad nevertheless. Just look at the screenshots below. Some of the objects are just very dark whereas some surfaces don’t appear to be shaded as they should.

Why is this? Can it for some reason cause problems that in addition to Unity5 I still have Unity4 installed?

No-one else has had these problems? Or no-one with ideas what’s causing these? Especially the glitchiness as shown in the Courtyard shots is really disturbing! :face_with_spiral_eyes:

I have lots and lots of problems with the Courtyard demo. However, not specifically the same problems as you.

Thanks for the comment.

To make the issues more clear I made a video out of it. And in fact, as I decided to make the video I noticed that after updating Unity there’s now tons of more extra crap than before. Just look at how there are meshes sticking out from everywhere - and also how slightly changing the angle makes some of them disappear:

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

What the heck is going on?

No one else has experienced this? And no ideas ho to fix? This is really frustrating!

This has made me consider switching to Unreal Engine, but unfortunately it seems that it missing the culling features of Unity’s camera makes it less suitable for my needs.

1 Like

The amount of extra crap seems to also vary. Last time I tried there was less of those unwanted meshes seen than when taking the video above.

Dude it just shows they dont even test there own projects in the Unity versions they release! See Unity 5.3 performance thread… I have not tested the demo you mention but it will make them look foolish if they confirm themselves…
Otherwise new bug specific to your hardware

I suggest try release 5.3.1patch1 as this really should have been the final 5.3 release! And do clean download

3 Likes

But it’s not just this project. The shadows are crap in the Viking Village and the rendering goes totally bonkers in my own proto project and the Courtyard demo.

Even if it would be depending on the hardware and a rare case at that, I can’t be the only one. I haven’t seen any rendering problems in any of the (admittedly few) games I’ve tried nor Unreal Engine, so there has to be something wrong with either Unity or my Unity installation at least. But if it’s about the installation, what could make it screwed in such a way that it otherwise works but rendering just fails in some places?

I’ve already patched the version, but yes, I’ve thought that uninstalling and reinstalling Unity5 is pretty much the only step I can think of for trying to fix this, if it for some wacky reason would make a difference. Or maybe I should actually uninstall, and try Unity 5.2 instead.

1 Like

I just had a look at the demo. The messages that I got (the ones you posted) indicated that it is related to some baked data, that became invalid and can’t be used properly. Because of that, I baked the lighting, occlusion culling and navigation mesh again. I reopened it to check whether the error message is still appearing and it didn’t. And even better, when I hit play, everything seemed to work properly.

1 Like

Hi,

If on a mac, please try with the older 2x opengl setting in player settings. The reason for this is 5.3 introduced a new renderer, a unified gl back end. So try the alternate option, and report a bug please.

I had this very issue on previous versions of Unity (5.1 I believe), when the lighting data was stale. Didn’t make sense to me, but I deleted it all, cleared the GL cache, and rebuilt the lighting and everything was fine.

1 Like

I’ll post a quote from myself from the Unity 5.3. performance thread here too as this thread is in the end a more appropriate place for this and the bolded part is related to what I just found out… :

So …

Thanks for the comment. Are you referring to the Courtyard demo or the Viking Village demo? Because I have mostly been talking about the Courtyard demo, but the error messages are from Viking Village. And did you have similar problems before doing the baking?

I wasn’t familiar with the baking systems, but navmesh baking can’t be the issue in either Courtyard or the Viking Village. In Courtyard I guess the occlusion baking could be causing something like that. Then the question remains: why did it become broken in Unity 5.3? If nothing’s baked, things should still work alright, just maybe performance would suffer, right? If things are baked wrongly, things can go effed up, right? But how can they end up wrong? Changes in the baking system and it not being updated for the project?

Well, so it happens that it appears that it actually did make a difference that I went to Unity 5.3. through upgrading an existing installation rather than uninstalling and making a fresh install! After doing a fresh install of Unity 5.3. all the glitchiness of the Courtyard demo was gone!! Still no clue though as to WHY.

Viking Village shadows were still messed up, but after tampering with the lightmap baking they got fixed. Hmh… Well, whatever the reason for those ending up broken in the first place, this was an important lesson that faulty baking can be the cause of issues like this. Still it would be nice to learn more as to why and how things got broken, but I guess I can now go back to wondering my project-specific problems. So thanks a lot for the tips Dantus!

So you’re saying you had this similar meshes being shown in wrong places and just rebuilding lighting would have fixed it? Are you sure you didn’t do rebaking for occlusion culling too? I mean I don’t see any problems with the shadows per se in the Courtyard demo, just the Viking Village.

Hmm… I’m mostly working on a PC, but perhaps the issues here are related to that new renderer then?

Yes, that’s exactly what I’m saying. Rebaking the lighting data solved it for me.

Uh, does someone (maybe @Dantus ?) have any idea how baking lighting could fix the meshes like that? Isn’t baking light maps just basically related to how textures are rendered?

Obviously the data changed, and corrupted the vertexes. But I’m done replying to you. You don’t ever check anything.

Case 714011 - Static batching results in bizarre geometry

Response was: work around it by Rebaking the lighting.

Broken data leads to wrong results. Whenever you have error messages in the console, you can’t expect a correct execution anyways.
GI involves a lot more than just baking something into a texture. Unity calculates between systems, how they affect each other regarding the indirect lighting. If that is broken, the result gets completely wrong. You find more information e.g. here:
http://blogs.unity3d.com/2014/09/18/global-illumination-in-unity-5/

1 Like

I just had another look at the Courtyard scene, because I was surprised that there was no appropriate feedback about what is wrong. However, there is actually some accurate feedback in the console. When I opened the scene, I got: