An open API service indexing awesome lists of open source software.

https://github.com/needle-tools/three-animation-pointer

KHR_animation_pointer support for three.js
https://github.com/needle-tools/three-animation-pointer

animation khr khronos threejs webdev webgl

Last synced: 10 months ago
JSON representation

KHR_animation_pointer support for three.js

Awesome Lists containing this project

README

          

# KHR_animation_pointer for three.js

This package adds a [three.js](https://github.com/mrdoob/three.js) GLTFLoader plugin for [KHR_animation_pointer](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_animation_pointer) support.

### Usage

Install the package:
`npm i @needle-tools/three-animation-pointer`

Register the plugin on your GLTFLoader:

```js
import { GLTFAnimationPointerExtension } from "@needle-tools/three-animation-pointer"

const loader = new GLTFLoader();
loader.register(p => {
return new GLTFAnimationPointerExtension(p);
});
```

## Links

- [Khronos KHR_animation_pointer spec](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_animation_pointer)
- [three.js repository PR #24108](https://github.com/mrdoob/three.js/pull/24108)

# Contact ✒️
[🌵 Needle](https://needle.tools)
[Github](https://github.com/needle-tools) •
[Twitter](https://twitter.com/NeedleTools) •
[Discord](https://discord.needle.tools) •
[Forum](https://forum.needle.tools) •
[Youtube](https://www.youtube.com/@needle-tools)