readyplayerme / animation-library

Ready Player Me Animation Library
Other
474 stars 63 forks source link

GLB Animations #2

Open crazyramirez opened 1 year ago

crazyramirez commented 1 year ago

Hi guys!

Thanks for the great contribution, the animations are impeccable. I usually work a lot of projects in BabylonJS and the file standard it uses is GLB.

I have used a mini App developed in NodeJS to batch convert from FBX to GLB and optimize the animations:

https://github.com/crazyramirez/FBX2GLB-Batch-Convert-Optimizer

I have also uploaded to Github an example combining multiple animations in a ReadyPlayerMe Character:

https://github.com/crazyramirez/babylonjs-ReadyPlayerMe-Animation-Combiner

Live Demo TEST

https://viseni.com/readyplayer_anim/

Live DEMO TEST using Morph Targets Animation

https://viseni.com/readyplayer_talk/

I hope you enjoy it.

Thanks again for your work.

tiivik commented 1 year ago

Thanks for the feedback, looking great!

We provided them as FBX first to work in Unity & Unreal, and looking into providing GLB-formatted variants as well, which is easier to work with across the web.

brettkromkamp commented 1 year ago

Having GLB-formatted variants would be excellent. Until then, tools like those provided by @crazyramirez will have to fill the gap for the glTF-based ecosystems (three.js, BabylonJS, etcetera).

Anyway... thanks for the fantastic contribution.

MAG-DanielMurdolo commented 1 year ago

Adding my vote to a request for GLB files so we can use these excellent assets in even more places.

brettkromkamp commented 1 year ago

Mixamo's FBX animations can be used, as-is, with three.js/R3F/drei. But, these animations, when attempting to load them, fail with the following error: Could not load ./animations/backflip.fbx: THREE.FBXLoader: Cannot find the version number for the file given.

lenkawell commented 1 year ago

Adding GLB versions would be nice, but along with Unreal and Unity, the Movie Maker 3D iOS and macOS apps version 11.0 now support importing FBX animations: https://moviemaker3d.com/avatar-character-body-animations

MAG-DanielMurdolo commented 10 months ago

I've created a fork with GLB versions. Do you have any guidelines to follow for creating a PR (if it's of interest)?

fengxingshenzhou commented 4 days ago

I encountered an error when converting Mixamo's FBX to GLB using Blender 4.0. The error message is as follows. Have you encountered it before?

runtimeAnimation.ts:336 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getLocalMatrix') at e._getOriginalValues (runtimeAnimation.ts:336:20) at new e (runtimeAnimation.ts:224:18) at e.appendAnimations (animatable.ts:198:41) at new e (animatable.ts:152:18) at Fr.beginDirectAnimation (animatable.ts:835:24) at a (animationGroup.ts:656:44) at e.start (babylon.js:1:675764) at animationBlending (main.js?id=79:510:12) at animationBlending.next () at pn (coroutine.ts:46:32)