UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
2.27k stars 109 forks source link

【Bone】The value set by clicking the Load button in the Local Axes Setup is incorrect. #149

Open korarei opened 6 months ago

korarei commented 6 months ago

The local coordinates set by MMDTools are different from the MMD local coordinates. (MMD→MMDTools : X→Y, Y→Z, Z→X) Therefore, the values set in the current version need to be shifted in the modified version. (current version→modified version : X→Z, Y(𝕩×𝕫 : X-vector and Z-vector cross product)→X)

スクリーンショット (536)

fig1 Bone Settings in MMD Tools

スクリーンショット (538)

fig2 Local Axes set by MMD Tools (red : x, green : y, blue : z)

スクリーンショット (537)

fig3 Correct Local Axes (red : x, green : y, blue : z)

korarei commented 6 months ago

P.S. Bones in Blender already have local axes. Therefore, MMDTools should convert this local axes direction vector for MMD and load it into MMDTools. Specifically, the x-vector, y-vector, and z-vector of the Blender bone should be loaded into MMDTools as the z-vector, x-vector, and y-vector, respectively.