sketchpunklabs / ossos

Webbased Character Animation System
MIT License
423 stars 46 forks source link

Clip.fromThree() to create Clip from Three.js AnimationClip #20

Open ArsenicBismuth opened 1 year ago

ArsenicBismuth commented 1 year ago

Just a simple utility to add more method to create ossos.Clip(), need the armature of the source model to get the bone mapping data.

trusktr commented 6 months ago

This is a great idea. If Clip/etc will be library agnostic though, it may need to be in a separate utility though, f.e. ThreeClipUtils.fromThree(threeAnimClip) would return a Clip. Otherwise, we'd also have to add the method for Babylon in the same class, and for Playcanvas, etc, coupling all libraries together (import Clip and you get all the rendering libraries, massive download).

sketchpunk commented 2 months ago

No engine specific things will be built into the library as one of the goals is to be engine agnostic. Like 3js, lots of the extra bits will be in an example folder or maybe some sort sub engine specific utility library people can use.