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

GLB Animations #2

Open
crazyramirez opened this issue Jul 9, 2023 · 7 comments
Open

GLB Animations #2

crazyramirez opened this issue Jul 9, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@crazyramirez
Copy link

crazyramirez commented Jul 9, 2023

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
Copy link
Contributor

tiivik commented Aug 18, 2023

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.

@tiivik tiivik added the enhancement New feature or request label Aug 18, 2023
@brettkromkamp
Copy link

brettkromkamp commented Aug 20, 2023

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
Copy link

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

@brettkromkamp
Copy link

brettkromkamp commented Aug 24, 2023

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
Copy link

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
Copy link

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants