# glTF Material/Camera/Lights Animations

**URL:** <https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382>\
**Category:** Completed Features\
**Tags:** lighting, material, camera, gltf\
**Created:** [June 17, 2024, 12:03am UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382 "2024-06-17T00:03:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![feuerstein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/feuerstein/32/26127_2.png) [@feuerstein](https://forum.babylonjs.com/u/feuerstein)\
**Post date:** [June 17, 2024, 12:03am UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/1 "2024-06-17T00:03:46Z")

</div>

Hey there,  
as per the title, I am looking to get an idea on when to expect material animation through the KHR pointer extension (thanks to @bghgary and team for the contribution to gltf 🙏). Would love to know if you happen to have a timeline in mind, if not, how can we assist 🙂

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [June 17, 2024, 3:27pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/2 "2024-06-17T15:27:23Z")

</div>

It is already supported if this is your question 🙂

---

<div class="post-metadata">

**Author:** ![feuerstein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/feuerstein/32/26127_2.png) [@feuerstein](https://forum.babylonjs.com/u/feuerstein)\
**Post date:** [June 17, 2024, 4:36pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/3 "2024-06-17T16:36:45Z")

</div>

Can be already exported in gltf? Sorry I wasn’t clear.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 17, 2024, 5:33pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/4 "2024-06-17T17:33:25Z")

</div>

No, we don’t have export support for KHR\_animation\_pointer. This will take some effort to implement. We don’t have a timeline for implementing this unfortunately.

---

<div class="post-metadata">

**Author:** ![feuerstein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/feuerstein/32/26127_2.png) [@feuerstein](https://forum.babylonjs.com/u/feuerstein)\
**Post date:** [June 17, 2024, 8:11pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/5 "2024-06-17T20:11:15Z")

</div>

I might have some bandwidth next month, maybe I can contribute to this? I’ll investigate on my end on where to start (but pointers are very much appreciated)

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 17, 2024, 11:54pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/6 "2024-06-17T23:54:06Z")

</div>

> [@feuerstein](#):
>
> but pointers are very much appreciated

No pun intended? 😃

This isn’t super straight-forward as it involves the interactivity extension a bit since they share the same glTF object model. Maybe @RaananW will have some thoughts.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [June 18, 2024, 9:44am UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/7 "2024-06-18T09:44:49Z")

</div>

That’s great to hear 🙂

Babylon already has KHR\_animation\_pointer implemented, but not according to the current specs - [Babylon.js/packages/dev/loaders/src/glTF/2.0/Extensions/KHR\_animation\_pointer.ts at master · BabylonJS/Babylon.js (github.com)](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/loaders/src/glTF/2.0/Extensions/KHR_animation_pointer.ts). The main issue, as Gary suggested, is that this should be implemented coupled with the KHR\_interactivity, which I will start work on “soon” ™ . I still haven’t found the time to work on the architecture of the connection between them, but when I have something, I will be happy to share. The animation pointer specs are here - [glTF/extensions/2.0/Khronos/KHR\_animation\_pointer at main · KhronosGroup/glTF (github.com)](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_animation_pointer).

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 18, 2024, 3:10pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/8 "2024-06-18T15:10:01Z")

</div>

> [@RaananW](#):
>
> Babylon already has KHR\_animation\_pointer implemented, but not according to the current specs - [Babylon.js/packages/dev/loaders/src/glTF/2.0/Extensions/KHR\_animation\_pointer.ts at master · BabylonJS/Babylon.js (github.com)](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/loaders/src/glTF/2.0/Extensions/KHR_animation_pointer.ts)

I’ve updated this. It should be current.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [June 18, 2024, 3:12pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/9 "2024-06-18T15:12:31Z")

</div>

Sorry! I misread your previous comment. Answer still stands - still need to see how we connect both, and then how we can export all of those properties correctly.

---

<div class="post-metadata">

**Author:** ![feuerstein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/feuerstein/32/26127_2.png) [@feuerstein](https://forum.babylonjs.com/u/feuerstein)\
**Post date:** [June 27, 2024, 6:33pm UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/10 "2024-06-27T18:33:45Z")

</div>

will play with it soon and see. Will def keep this thread updated with progress

---

<div class="post-metadata">

**Author:** ![feuerstein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/feuerstein/32/26127_2.png) [@feuerstein](https://forum.babylonjs.com/u/feuerstein)\
**Post date:** [December 8, 2024, 12:19am UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/11 "2024-12-08T00:19:48Z")

</div>

@bghgary I noticed the new announcement regarding the support for `KHR_animation_pointer`, any update here ? thanks a lot 🙏

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [December 10, 2024, 1:24am UTC](https://forum.babylonjs.com/t/gltf-material-camera-lights-animations/51382/12 "2024-12-10T01:24:27Z")

</div>

The KHR\_animation\_pointer extension should be fully implemented. Let us know if you see any problems.
