Read and display of models in PMD format

Source: Internet
Author: User
Read and display of models in PMD format

It has been May, and it took more than ten days to study the results. Write a log to commemorate it.
It is a three-dimensional model format and is mainly used in mikumikudance and pmdeditor. There are fewer descriptions about the format, so my research mainly involves the MMD library of itsuhane.
The PMD format file is also a simple binary file, because the file format is strict, so the chunk in the file is not very free, it is better to parse. The VMD file (Vocaloid motion data) describes the model action and requires interpolation of the model skeleton to achieve the animation effect. Since there may be no time after writing this log, therefore, we have not made any in-depth research on the components of PMD illumination, material, skeleton, and VMD.
Original blog, prohibit unauthorized reprint (original blog address: http://blog.csdn.net/jiangcaiyang123/article/details/8898734 ).
DemoProgram: Here

The following is the program's:

The default load here is Luo Tianyi's model. Of course, the program includes the initial speaker and the mirror speaker) kaito and so on can be loaded (a small problem still occurs when loading these models, and then carefully look at the format instructions to know that some work und is required to load the Models correctly ).
The program is built using the QT framework and OpenGL rendering. In addition, it uses the QT state machine framework and animation framework. Here, the effect of the "fly in" and "disappear" will be explained in a separate log. Due to limited knowledge, OpenGL rendering remains at the glbegin ()/glend () level, and I do not know why it is unsuccessful for Qt programs to use multi-sample anti-aliasing. If you do not know this, you will not be able to start this program in ubuntu13.04( the luo_eye.bmp file cannot be loaded). I hope to improve it in the next version.

The following is the Black History of the production of this program. It seems terrible now.

#1 texture not processed

#2. The texture is not properly processed ......

#3 terrible! Zookeeper has no eyes!

#4 the texture coordinate is incorrect even though the texture is available

#5 draw with only line segments, which is really like abstract painting

#6 view Luo Tianyi ...... O (> others <) O

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.