Live character animation

Hi everyone. I wonder if there is a way to animate a custom humanoid character mesh having joints coordinates and rotation data in real time (basically I have per-frame data describing 3D joints locations which arrives in real time frame-by-frame)? From ThreeJS docs I can see that it is possible to upload a animation in .fbx or .glb, but is it doable having data I mentioned above? Or is there some way of steaming, for example, .fbx animation data? What formats would I operate then?

r3f bones - CodeSandbox the code you want to look at is in stacy.js and utils.js, just a little math. this is very little effort on the cpu, it wouldn’t make a dent unless you’re transforming thousands of bones.

1 Like