leotorrez / XXMITools

41 stars 6 forks source link

[enhancement] Please support import/export model with UINT blend indices. #3

Closed josh6688 closed 2 months ago

josh6688 commented 2 months ago

I'm working on a far distance LoD model of an NPC in zzz (Sjal, to be exactly). The data format of the model's BLENDINDICES is R16G16B16A16_FLOAT, instead of UINT.

(Actually, the model doesn't have BLENDINDICES or BLENDWEIGHT section in it's vb at all in the frame analyze output. Instead, it have 2 extra texcoord section in R16G16B16A16_FLOAT format. I manually renamed these 2 sections to BLENDINDICES or BLENDWEIGHT in the vb txt file. The result makes sense.)

I have managed to import the model with float indices to blender with a small edit to datahandling.py. But BLENDINDICES in the mod output is still stored in UINT format, which can't be reconized by game, and the character freeze in A-pose.

image Normally she should look like this: image

leotorrez commented 2 months ago

I believe this has been resolved since last update to the dev section. Will look into it in more detail and update you shortly

leotorrez commented 2 months ago

I forgot to update you on it- But the issue was solved at the time already