#Randomly missing materials in production builds

1 messages · Page 1 of 1 (latest)

dense wind
#

Hey,
So this is a problem that's been bugging us for while and which appears to happen at random.

Some materials appear to be missing in production builds or all of the UV coordinates are just offset to a very small space in their UV map which makes the material look as if sampled from the same texel. The faulty UVs is just a theory however but sounds reasonable to me since the materials color looks very uniform (green, brown or whatever).

Our not so great workaround so far have been to just hide the model with the problem from view and use a duplicate of it instead (which looks fine for some reason, same mesh, same material).

Note1: We have to keep the model with the issue in the scene or the problem will just seemingly "transfer" to the second one.
Note2: This only happens in production builds, we are using texture and mesh compression at their default settings.
Note3: A model that have looked fine for several production builds might just get "infected" by this issue at any new production build.
Note4: So far have only been an issue with materials with color maps.

Thoughts?

sacred rampartBOT
polar valve
#

Hi, how is this material used in unity (multiple objects?, what kind of renderer / multimaterial?) Does it reproduce with just a part of the scene?

#

It definitely sounds like a post processing bug. If you could send a minimal repro (as minimal as you can get) with some info which material usually breaks it would be great

dense wind
#

Hey,
It does not repro with an isolated selection I'm afraid. The model that has the issue now contains three submeshes with 2 different materials (MeshRenderer). Another model manifests a similar problem and that one is one skinnedMeshRenderer (one material).

upbeat dome
#

If you can still submit the full project as a bug report with clear repro steps that would be helpful!

dense wind
#

Yeah, that would break our NDA so that's not really an option. I will make a bug report if I find a minimal case that repros.

upbeat dome
#

(if you provide us with your license details we can also countersign an NDA if needed)

dense wind
#

I made a scene with a bunch of models that have been problematic for us. It's been uploaded as a bug report.

  • The group of sitting NPCs do not have the right material. Each is loaded from a prefab and will have their material assigned if specified from script.
  • The unfolded cubes have six materials each, can not see any problems there. Made these recently as a test but seems to work.
  • The background mountain billboards (looks ok recent in build) In another scene (cannot share) it just looks like a black blob.
polar valve
#

Hi @dense wind how/where can I see the sititng NPCs? I just started the project

dense wind
dense wind
polar valve
#

Thank you

polar valve
#

@dense wind just to be sure I'm understanding the problem correctly. The first image is the character with the correct texture and the second image is after compression (missing textures) - is that what you're seeing too?

polar valve
#

Ok good, thanks

#

so the good news is: it reproduces with just those two chars in the scene.

polar valve
#

so far i was able to reduce it down to just having LiamA in the scene (nothing else) and when I apply draco compression it doesnt have any colors anymore. I'll investigate further - it might be a third party issue (not 100% sure yet). Will keep you posted

polar valve
#

Hi, it seems to be indeed a thirdparty issue. I opened a bugreport after reproducing it with their latest version (just the one character was enough)

polar valve
#

Another update: it seems to be related to wild uvs on that model. See the screenshot below with the long tail to the right. I think fixing the uvs should fix compression for this model.

dense wind
#

Thanks @polar valve ✨️
Sounds reasonable, we'll fix the uv's on the Liam model and see if it helps.
And I'll have a look at the uvs of the other models which was causing issues. This does not explain the randomness of the issue though (may start appearing in any new build without having touched the model for ages) Might be a seperate thing🤷‍♂️

polar valve
#

That's true, it doesnt explain it. Normally things don't happen at random either so we will have to try to figure out what the reasons are, there's usually an explanation 🙂

Let me know if fixing the uvs makes this case work for you again or if it happens again/still

If you got a example of the skybox issue (3rd point above) where it happens and that you can share it would also be interesting to look at. As felix said if you can send us your license details we can sign a NDA to look into issues like that too

polar valve
#

Hello @dense wind i hope you had/have happy holidays. Do you have some information for me on how the assets where created (using which tool?) that resulted in the UVs being the way they are (if it's a common enough problem there might be interest to find an automatic solution)