benikabocha / saba

OpenGL Viewer (OBJ PMD PMX)
MIT License
442 stars 60 forks source link

SDEF and QDEF bones support? #8

Closed lieff closed 4 years ago

lieff commented 6 years ago

I found that such bones is not supported, but widely used. I take quick look and found implementation of this bones here: https://github.com/VegetableAvenger/SEngine https://github.com/newpolaris/Mikudayo https://github.com/hkrn/MMDAI https://github.com/r1cebank/ofxMMDX

benikabocha commented 6 years ago

I'll check it out.

lieff commented 6 years ago

Thanks)

benikabocha commented 6 years ago

Mikudayo used Dual Quaternion to process SDEF. Saba did the same way.

However, the original SDEF uses other parameters. Therefore, when SDEF is used, a warning is displayed.

lieff commented 6 years ago

Yes, looks like I wrong about Mikudayo. I did not notice that SDEF C/R0/R1 params unused. Same about others, I can see it's stored https://github.com/VegetableAvenger/SEngine/blob/master/libVisualizationAvatar/vaMemory.cpp#L633, but can't find if it's used :(

zhouhang95 commented 4 years ago

Maybe help

A better way to approximate SDEF interpolation using blender armatures https://github.com/powroupi/blender_mmd_tools/issues/162

benikabocha commented 4 years ago

Thank you. I will try it.