unity-game-engineshadermeshfbx3d-model

Parts of mesh become invisible at certian angles Unity3D


I am importing an fbx model but parts of it are invisible in the scene And game at certain angles.

Attached image SS-1 = the full model - You can see that some parts of the mesh are invisible Attached image SS-2 = closeup of an invisible mesh selected
Attached image SS-3 = Main Camera Settings
Attached image SS-4 = Model import settings

Any ideas what's going on?

enter image description here

enter image description here

enter image description here

enter image description here


Solution

  • The normals of your mesh are not set properly, so the culling algorithm treats it as a back-face that should not be rendered.

    If you can edit the model so that you can inverse the normals that would work. Most modeling tools have convenient tools or direct routines for "flipping normals". However, if that is not possible, a trick is to change the culling settings from your material: When the culling mode is set to Cull Back (which is the default setting), the polygons that are not facing the camera are not rendered. Then, for the mesh that is not visible, you can change the culling property from Cull Back to Cull Front. This way it will be visible.

    The caveat is that most of the time material properties might be overlooked as Cull Front and No Cull settings are not as common as Cull Back. Also, performance-wise, you will have a different shader running because of that mesh.