Skip to content

Added the ability to run and combine multiple animations simultaneously#4979

Merged
diegoteran merged 24 commits into
google:masterfrom
mohammadbaghaei:version5
Feb 10, 2025
Merged

Added the ability to run and combine multiple animations simultaneously#4979
diegoteran merged 24 commits into
google:masterfrom
mohammadbaghaei:version5

Conversation

@mohammadbaghaei

Copy link
Copy Markdown
Contributor

Added the ability to run and combine multiple animations simultaneously with appendAnimation and detachAnimation methods, updated documentation, upgrade to three.js r171 and update all dependencies to latest version

@elalish elalish left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is quite a feature, thank you! To make this easier to review and merge, would you be so kind as to split the dependency updates into a separate PR from the animation work? We should be able to quickly merge the updates, but we'll probably need some back-and-forth on the API change. Honestly, it's looking really good though!

Comment thread packages/model-viewer/package.json Outdated
Comment thread packages/model-viewer/src/features/animation.ts Outdated
Comment thread packages/modelviewer.dev/data/docs.json Outdated
Comment thread packages/modelviewer.dev/data/docs.json Outdated
…ove appendAnimation method, format codes with clang-format style and fix other requested changes in google#4979 pull request
…of appendAnimation function, improve modelviewer.dev styles and revert dependencies version
@mohammadbaghaei

Copy link
Copy Markdown
Contributor Author

Hey there! Here's my rework of that PR message:

👋 Thank you for the helpful feedback! I've made the following changes in this PR:

  • Fixed all the mentioned issues
  • Enhanced modelviewer.dev styles for better presentation, especially in the examples section
  • Updated dependencies in a separate commit
  • Improved appendAnimation and detachAnimation methods to automatically handle invalid parameters
  • Added automatic parameter type conversion - numbers and booleans can now be passed as strings (case-insensitive)
  • For better AR support across different devices (ref: issue AR/MR mode doesn't work on PICO headsets / Make Hit Test API optional #4960), moved hit-test to optionalFeatures

Let me know if any further adjustments are needed! 🙂

@elalish

elalish commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

Thanks! As this is my last day (see #4975), I'm going to pass this on to one our other maintainers, @diegoteran, who I already talked to about this PR. Looks like a promising feature!

@diegoteran

Copy link
Copy Markdown
Collaborator

@mohammadbaghaei Hey, this is great! Give me a few days and then I'll review it (scheduling and deciding things with the team now that Emmett is not here) and I'll merge it to have it ready for the next MV release.

Thank you so much!

@diegoteran diegoteran merged commit 0637b91 into google:master Feb 10, 2025
diegoteran pushed a commit that referenced this pull request Feb 24, 2025
* Added the ability to run and combine multiple animations simultaneously, upgraded to threejs r171, and updated packages to the latest version.

* fix build warnings and errors and replace rollup-plugin-polyfill with swc

* fix fidelity-tests chrome error

* fix chrome install error on fidelity-tests

* fix fidelity-tests error on Fix dependencies step

* add no-sandbox args to puppeteer.launch

* cleanup github workflow

* add example for appendAnimation, improve modelviewer.dev styles, improve appendAnimation method,  format codes with clang-format style and fix other requested changes in #4979 pull request

* Fix all requested changes in #4979 PR, improve the flexibility of appendAnimation function, improve modelviewer.dev styles and revert dependencies version

* improve detachAnimation flexibility

* update dependencies to latest version

* fix #4960 issue

* Fix animation skipping when updating with appendAnimation method and improve general performance

* Upgrade to three.js r172 and update dependencies and fix peer dependency error when installing in postprocessing

* add Cineon, Reinhard, Linear, none tone mapping options and update documention

* revert peetDependencies change

* fix package-lock error

* fix repetitions and pingpong update bug

* add time option to appendAnimation function

* fix editor "js-beautify" invalid src

* update dependencies

* improve editor and modelviewer.dev styles, add mobile responsive to editor, improve modelviewer.dev hamburger menu

* update dependencies

* add ar-usdz-max-texture-size (related #4984 issue)

* try fix deploy error, upgrade to three.js r173 and update all dependencies, fix ar-usdz-docs.json "max-texture-size" attribute defualt value
diegoteran pushed a commit that referenced this pull request Apr 8, 2025
* Added the ability to run and combine multiple animations simultaneously, upgraded to threejs r171, and updated packages to the latest version.

* fix build warnings and errors and replace rollup-plugin-polyfill with swc

* fix fidelity-tests chrome error

* fix chrome install error on fidelity-tests

* fix fidelity-tests error on Fix dependencies step

* add no-sandbox args to puppeteer.launch

* cleanup github workflow

* add example for appendAnimation, improve modelviewer.dev styles, improve appendAnimation method,  format codes with clang-format style and fix other requested changes in #4979 pull request

* Fix all requested changes in #4979 PR, improve the flexibility of appendAnimation function, improve modelviewer.dev styles and revert dependencies version

* improve detachAnimation flexibility

* update dependencies to latest version

* fix #4960 issue

* Fix animation skipping when updating with appendAnimation method and improve general performance

* Upgrade to three.js r172 and update dependencies and fix peer dependency error when installing in postprocessing

* add Cineon, Reinhard, Linear, none tone mapping options and update documention

* revert peetDependencies change

* fix package-lock error

* fix repetitions and pingpong update bug

* add time option to appendAnimation function

* fix editor "js-beautify" invalid src

* update dependencies

* improve editor and modelviewer.dev styles, add mobile responsive to editor, improve modelviewer.dev hamburger menu

* update dependencies

* add ar-usdz-max-texture-size (related #4984 issue)

* try fix deploy error, upgrade to three.js r173 and update all dependencies, fix ar-usdz-docs.json "max-texture-size" attribute defualt value

* update documention threejs version

* fix mobile responsive bugs and improve snippet viewer code structure

* upgrade to threejs r174 and update all dependencies

* add terser to modelviewer.dev

* fix build error and update all dependencies

* try to fix test error

* fix test error and update dependencies
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.

3 participants