benikabocha / saba

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

how you get the mmd file format #20

Open 2439905184 opened 3 years ago

2439905184 commented 3 years ago

Did you use the infomation here.https://mikumikudance.fandom.com/wiki/MMD:Polygon_Model_Data I want to know where to find the pmd pmx file format detailes. As a un opensource software miku miku dance. I don't know how 樋口优 design the bin format. I try to use python to parse pmd file. But meet a problem at here image

I see your code. I did not find the data about index section. So pmd file do not have this section? image I have complete use python to parse vmd file . And I will try to parse model file .

2439905184 commented 3 years ago

all codes here。https://gitee.com/h128/mmd-parser I'm not good at c/c++. I think python can do this too

benikabocha commented 3 years ago

The PMD file format information on that web site is perfect. The names of some of the data are different, but the content is the same.

File header, Model header => ReadHeader() Vertex information => ReadVertex() Index information => ReadFace() Materials information => ReadMaterial() Bones information => ReadBone() Inverse Kinematics information => ReadIK() Face Morph information => ReadBlendShape() Display Name Information => ReadBlendShapeDisplayList(), ReadBoneDisplayList()