Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMDLoader #7509

Merged
merged 2 commits into from
Nov 2, 2015
Merged

MMDLoader #7509

merged 2 commits into from
Nov 2, 2015

Conversation

takahirox
Copy link
Collaborator

I made MMDLoader for example.
MMD(MikuMikuDance) is a 3D CG animation tool which is popular in Japan.
MMDLoader loads MMD Model/Dance data and lets models dance.

Demo: http://takahirox.github.io/three.js/examples/#webgl_loader_mmd

@mrdoob
Copy link
Owner

mrdoob commented Nov 2, 2015

Looks great! Out of curiosity, what's the CharsetEncoder for?

@takahirox
Copy link
Collaborator Author

That's for converting character code from Shift_JIS to UTF-16.

Japanese characters in PMD(Model data) and VMD(Dance motion data) file are
encoded as Shift_JIS, so it's necessary to encode to UTF-16 to be handled in JavaScript.

And Japanese characters in PMX(Extended model data) file are encoded as
UTF-16 (or UTF-8, I'm also gonna support UTF-8 soon).
Motion data key in VMD specifies corresponding bone with bone name,
so I needed to unify character code where bone name is Japanese.

@mrdoob
Copy link
Owner

mrdoob commented Nov 2, 2015

I see I see. Sounds good!

mrdoob added a commit that referenced this pull request Nov 2, 2015
@mrdoob mrdoob merged commit f4c79a4 into mrdoob:dev Nov 2, 2015
@mrdoob
Copy link
Owner

mrdoob commented Nov 2, 2015

Thanks!

@takahirox takahirox deleted the MMDLoader branch November 13, 2015 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants