donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.42k stars 150 forks source link

Roadmap for '@gltf-transform/view' package #1400

Open donmccurdy opened 6 months ago

donmccurdy commented 6 months ago

I've moved @gltf-transform/view from the separate repository (https://github.com/donmccurdy/glTF-Transform-View) where it was incubated, into this monorepo. This issue is intended to track its missing features.

Geometry

Animation

Currently the bindings ignore animation. Proposed API:

const documentView = new DocumentView(document);
const animationDef = document.getRoot().listAnimations()[0];
const animation = documentView.view(animationDef); // THREE.AnimationClip

Will need to decide how to handle keyframe targeting. By name, with a workaround for duplicate names? By UUID, with some way of knowing UUID won't change in update cycle?

Draft:

Extensions

P0:

P1:

P2:

Out of scope: