scurest / apicula

Convert Nintendo DS .nsbmd models
BSD Zero Clause License
160 stars 19 forks source link

Scale blows up at model extremities #22

Open scurest opened 5 years ago

scurest commented 5 years ago

Some models blow-up at the extremities (the title screen model from Heart Gold, reported here; some characters from Dark Dawn)

blowup

Think it has to do with how TRS transforms are calculated; every bone has a scale of 2, so the scale blows up exponentially with distance from the root bone. Accoridng to EveryFileExplorer, I think the TRS transform is supposed to be TS^{-1}RS when a bit in the unknown field of render command 0x26 is set. Have to see it that fixes it...