# Implementing new glTF Extensions for Unreal Engine export

**URL:** <https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831>\
**Category:** Questions\
**Created:** [August 5, 2021, 8:06am UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831 "2021-08-05T08:06:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khoa\_Pham](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/khoa_pham/32/17696_2.png) [@Khoa\_Pham](https://forum.babylonjs.com/u/Khoa_Pham)\
**Post date:** [August 5, 2021, 8:06am UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/1 "2021-08-05T08:06:42Z")

</div>

Hi, I’ve used Babylonjs for several projects, I’m also an Unreal Engine 4 developer and have big interest in the ability to export glTF directly from Unreal Engine and use directly in BabylonJS.  
There is an open source project that supports this for PlayCanvas ([GitHub - ue4plugins/GLTFWebViewer](https://github.com/ue4plugins/GLTFWebViewer)) which has a few extensions that allow enhanced rendering, including extension for lightmaps.

I’m no expert in BabylonJS to understand how to implement these extensions myself. Anyone can shed some light on how to tackle this task? I’m mostly interested in the lightmap extension.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [August 5, 2021, 9:07am UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/2 "2021-08-05T09:07:39Z")

</div>

Welcome aboard!

There’s a [lightmap extension](https://github.com/KhronosGroup/glTF/pull/1658) which is currently opened for glTF but it seems it is frozen for 2 years now.

I think @MackeyK24 could give some feedback about implementing custom lightmaps support in glTF as he did it for the Unity exporter (or I think he did it?).

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [August 5, 2021, 10:32am UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/3 "2021-08-05T10:32:53Z")

</div>

Yep I make RGBD packed HDR lightmaps in Unity…

I actually offset the mesh uv2 with the lightmap texture atlas info

Then it’s just a matter of assigning the material.lightmapTexure

---

<div class="post-metadata">

**Author:** ![Khoa\_Pham](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/khoa_pham/32/17696_2.png) [@Khoa\_Pham](https://forum.babylonjs.com/u/Khoa_Pham)\
**Post date:** [August 5, 2021, 4:38pm UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/5 "2021-08-05T16:38:45Z")

</div>

Hi Mackey, can you shine some light on how to develope the glTF extension. As I don’t quite understand how it’s run within BabylonJS to apply lightmaps.

---

<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:** [August 6, 2021, 3:58pm UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/6 "2021-08-06T15:58:23Z")

</div>

This hopefully helps a bit: [Extending the glTF Loader in Babylon.js | by Babylon.js | Medium](https://babylonjs.medium.com/extending-the-gltf-loader-in-babylon-js-588e48fb692b)

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [August 6, 2021, 8:06pm UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/7 "2021-08-06T20:06:22Z")

</div>

@bghgary is da man 🙂

That is where i also started when i made my GLTF Extension for the Babylon Toolkit

---

<div class="post-metadata">

**Author:** ![Khoa\_Pham](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/khoa_pham/32/17696_2.png) [@Khoa\_Pham](https://forum.babylonjs.com/u/Khoa_Pham)\
**Post date:** [April 13, 2022, 7:12am UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/8 "2022-04-13T07:12:44Z")

</div>

This did help along with some other resources. I finally managed to make my own extensions. Much appreciated!

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [June 18, 2024, 9:53am UTC](https://forum.babylonjs.com/t/implementing-new-gltf-extensions-for-unreal-engine-export/22831/9 "2024-06-18T09:53:22Z")

</div>

Yo @Khoa_Pham … Did you ever get the EPIC\_ gtlf extensions working in BabylonJS ?
