eastskykang / UnityMeshImporter

Runtime mesh importer for Unity using AssimpNet
https://donghok.me/UnityMeshImporter/
Other
64 stars 19 forks source link

Wierd/Wrong import of wavefront (.obj ) files #6

Closed scooterboo closed 3 years ago

scooterboo commented 3 years ago

It seems like quads and other 4+ vortex faces are not supported for .obj's.

Here's what I'm getting: image With this file: knight.zip

It works fine after I convert it to triangles only: image But I would like to not have to convert every 3D model I have. knight2.zip

Solving this might help solve #5

scooterboo commented 3 years ago

My pull request #7 fixes all my issues in my project. I have yet to test it on #5.

eastskykang commented 3 years ago

@scooterboo Thank you very much for your PR and I'm so sorry for late response. I will quickly test your PR :D

eastskykang commented 3 years ago

I confirmed that it works with both knight1 and knight2 obj files. I'm closing this issue now.

Screenshot from 2021-01-12 15-48-14

Screenshot from 2021-01-12 15-49-17