DarkShadowNemo / old-TTGames-NemoGHGBeta

1 stars 0 forks source link

Does not correctly import HKOTC models #1

Open xMcacutt opened 1 year ago

xMcacutt commented 1 year ago

Hi, I'd love to help out however I can with this. Been testing on Haven models and it fails to import them. I tried on the pot model which I can send you if necessary. If you are on discord feel free to contact me at mcacutt#5671 Thank you

DarkShadowNemo commented 1 year ago

i have finally made another latest release to it so it should work, the import should work well on most of haven call of the king models except for skimpton and some because contains too much.

the model i imported in should look like this

faces are still broken that i can't fix

i tried skimpton ghg but he takes forever to load up

havennnn

xMcacutt commented 1 year ago

i have finally made another latest release to it so it should work, the import should work well on most of haven call of the king models except for skimpton and some because contains too much.

the model i imported in should look like this

faces are still broken that i can't fix

i tried skimpton ghg but he takes forever to load up

havennnn

Mad respect to you for sorting this. I have tested myself and it does indeed seem to work. I've used your updated code to try to understand the chunk format and I think I get it. It seems that the file splits the mesh up into chunks. The number of vertices for each chunk is always 3 if I'm understanding your code correctly. This leads me to believe that each chunk represents a triangle face. I figure it shouldn't be too hard to get faces imported then. Then I'd assume it's just an automerge of overlapping vertices and fixing normal issues. UVs might be a little more tricky but I might branch off from this and get faces working in the new year unless you already plan to do that.