tonihele / OpenKeeper

Dungeon Keeper II remake
GNU General Public License v3.0
437 stars 41 forks source link

refactor index buffers creation #431

Closed Trass3r closed 1 year ago

tonihele commented 1 year ago

Looks good to me. Is this only to fix the tangent generation warning (and bad data)? Was there anything else to this?

Trass3r commented 1 year ago

It started simple by noticing we create int32 index buffers even though the source data is only int8. But it opened the whole can of worms with the LOD system etc. So I guess I'll try to keep this small, as a cleanup that shouldn't change any observable behavior.

One more thing we could add to the naming improvements is taking the mesh name from the filename instead of the string saved in the kmf which is off for many MESH files. But we can also just leave it for now.