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

Added morph animation to ManifoldCAD.org #637

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Added morph animation to ManifoldCAD.org #637

merged 2 commits into from
Dec 6, 2023

Conversation

elalish
Copy link
Owner

@elalish elalish commented Dec 6, 2023

Since I already added rigid animations, I figured it wouldn't take too much more to handle morph target glTF animations as well. This is a nice way to visually demonstrate what a Warp function is doing. Took me a bit to figure out an API that would actually work in general, so I've finally settled on setMorphStart and setMorphEnd. Of course glTF morph targets can do much more than this, but I think a simple 2-shape interpolation is good for simplicity.

@elalish elalish self-assigned this Dec 6, 2023
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dd781cd) 91.62% compared to head (adb8338) 91.62%.

❗ Current head adb8338 differs from pull request most recent head 6a74533. Consider uploading reports for the commit 6a74533 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #637   +/-   ##
=======================================
  Coverage   91.62%   91.62%           
=======================================
  Files          36       36           
  Lines        4682     4682           
=======================================
  Hits         4290     4290           
  Misses        392      392           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pca006132
Copy link
Collaborator

Interesting, do you have an animated GIF for that?

@elalish
Copy link
Owner Author

elalish commented Dec 6, 2023

Screen.Recording.2023-12-06.at.10.38.40.PM.mov

@elalish elalish merged commit 45826d6 into master Dec 6, 2023
@elalish elalish deleted the morph branch December 6, 2023 09:45
@elalish elalish mentioned this pull request Jan 7, 2024
cartesian-theatrics pushed a commit to SovereignShop/manifold that referenced this pull request Mar 11, 2024
* added morph animation

* update test
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