- Home /
Materials breaking in built project (but not in editor play mode)
I'm trying to build a project, exporting it as a standalone exe, and I'm having a slight issue. Most of the game is fine, but there is one specific object that renders really strangely. It doesn't do this in the editor, or in play mode, it's only in the standalone built object. It's an interactive cloth object, but not the only one in the scene, and the only one that breaks. It is also not lightmapped, where a lot of the rest of the scene is, but again it's not the only non-lightmapped object. I have absolutely no idea what could be causing this bug. It has two materials on it - both bump-mapped. One renders the front face, one renders the back face. Could anyone suggest what might be causing this bug?
The first image was taken in the built project, while the second is in play mode.
Did a little more testing - removing the normal map fixes it, but I'd rather not do that.
The way the bright spots move, it looks to me like it's reacting to the point light in the lantern...
I've deter$$anonymous$$ed, by moving the light, that if it is to do with that, then it's related to the light mapping - which is odd because neither the cloth nor the light is marked static, and the light does not appear in other lightmaps.
I've also worked out that it applies only to this object, on all bumped materials, not just to this material. The mesh I'm using a custom plane imported from $$anonymous$$aya, giving me more polys in the area I need (and thus a better cloth simulation).
Right, narrowed it down to the custom mesh being the cause. Really not sure why, though.
Your answer
Follow this Question
Related Questions
Grass (terrain detail mesh) show in editor, not in build 3 Answers
Render layers differing between Editor and Build 2 Answers
Distribute terrain in zones 3 Answers
Shader does not display properly in game/editor view, but building it works. 0 Answers
Graphics.DrawTexture() not rendering on builded game (but it renders on Editor) 2 Answers