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

how to render animation? #32

Open
lucasjinreal opened this issue Mar 20, 2022 · 5 comments
Open

how to render animation? #32

lucasjinreal opened this issue Mar 20, 2022 · 5 comments

Comments

@lucasjinreal
Copy link

thanks for this wonderful lib. How to make Saba able to render animation driven by vmd animation keyframes?

@benikabocha
Copy link
Owner

See below for a simple rendering sample.

VMD Animation Update: MMDModel::UpdateAllAnimation()

@lucasjinreal
Copy link
Author

@benikabocha thanks, it's promising. So that I can reveal almost the same function as original MMD.

I have one more question, I using Saba_viewer to view a pmx model file. I can saw that it can view a very tiny animation on static model (like tiny waving on hair), how does this implemented? Saba_view only render the static model imo?

@benikabocha
Copy link
Owner

saba_viewer can uses to:

  • VMD animation files can be assigned to models.
  • Assign VMD camera animations.
  • .obj and .x files can be loaded.

How to play animations:

  1. Drag and drop .pmx files into saba_viewer.
  2. Drag and drop .vmd files into saba_viewer.
  3. Click on "Animation" in the "Controls" window.
  4. Click the "Play" button.

The hair animation is a physical animation. The physical animation is always playing in saba_viewer.

@lucasjinreal
Copy link
Author

@benikabocha thanks. what is physical animation? how does that information stored beside the pmx model itself?

@benikabocha
Copy link
Owner

MMD physics animation is the result of a physics simulation set to a node. A node can have several rigid bodies.

PMD File format:

PMX File format:

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

No branches or pull requests

2 participants