paulus-allods / blender-import

Import Allods bin files into Blender
5 stars 3 forks source link

Some Models are exploded on Import #2

Closed AnecAllods closed 11 months ago

AnecAllods commented 11 months ago

First of all, thank you for this addon, You have made multiple creative ideas Allods related I had possible.

Onto the issue, it is shared with the old version as well multiple models, specifically the bigger models I noticed are always exploded. examples:

\Server\game\data\World\Dungeons\Purgatory\Models\Purgatory.(Geometry).xdb image

\Server\game\data\World\Dungeons\InstHadagan1\Hadagan_Instance_01.(Geometry).xdb image

paulus-allods commented 11 months ago

Hi @AnecAllods, thanks for reporting the issue !

There was indeed an issue with the vertex index on these models. The vertexBufferOffset was ignored and therefore models were not properly built.

The issue is fixed on 0.0.3:

image

I think I should reconsider refactoring this part of the code, it has been a long time since I wrote it and I realize I don't remember why I overcomplicated the code on vertex indexes parts 😄.