UnityMeshImporter icon indicating copy to clipboard operation
UnityMeshImporter copied to clipboard

Larger models render in a broken state

Open NoTuxNoBux opened this issue 3 years ago • 1 comments

Larger models render in a broken state. The models I'm testing happen to be Wavefront OBJs, but I don't think this is related to #6. Simpler or smaller models seem to import fine.

I've found that these models use meshes that have indices in faces that are higher than 2^16, which are disabled by Unity by default.

afbeelding

Setting the index format to be Uint32 for Mesh on MeshImporter.cs#L184 seems to fix it:

afbeelding

I could make a pull request for it, if you want, but I'm not using this project directly myself. In any case, I hope this helps someone, like this project provided guidance for me in getting Assimp data converted to Unity!

NoTuxNoBux avatar Jun 16 '21 08:06 NoTuxNoBux

I know it's passed some time but if anyone looks back and has a similar issue, my meshes are fairly big as well except I'm working with .dae files.

The solution here worked perfectly for me.

DannyMacha25 avatar Jan 04 '24 16:01 DannyMacha25