# GLTF exporter instances issue

**URL:** <https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099>\
**Category:** Bugs\
**Tags:** material, gltf\
**Created:** [April 18, 2021, 12:16pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099 "2021-04-18T12:16:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobalazek](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bobalazek/32/1301_2.png) [@bobalazek](https://forum.babylonjs.com/u/bobalazek)\
**Post date:** [April 18, 2021, 12:16pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099/1 "2021-04-18T12:16:05Z")

</div>

Steps to reproduce:

- Download the asset – [http://corcosoft.com/example-assets/Fridge\_v2.glb](http://corcosoft.com/example-assets/Fridge_v2.glb)
- Open [https://sandbox.babylonjs.com](https://sandbox.babylonjs.com) and chuck the asset in
- Also open [https://gltf-viewer.donmccurdy.com](https://gltf-viewer.donmccurdy.com) and chuck the same asset in

Inside the fridge, you should see 4 different bottles + a few instances for each one. Inside babylonjs sandbox you don’t see any instances, while in the threejs viewer the instances do appear.

EDIT: The instanced meshes do seem to be there in the scene graph, they just don’t seem to render.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [April 18, 2021, 1:16pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099/2 "2021-04-18T13:16:57Z")

</div>

Is there a validation error ? Adding @bghgary our gltf guru 🙂

---

<div class="post-metadata">

**Author:** ![bobalazek](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bobalazek/32/1301_2.png) [@bobalazek](https://forum.babylonjs.com/u/bobalazek)\
**Post date:** [April 18, 2021, 3:35pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099/3 "2021-04-18T15:35:32Z")

</div>

Nope - “Your file is a valid glTF file”

---

<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:** [April 19, 2021, 11:14pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099/4 "2021-04-19T23:14:26Z")

</div>

Quick look, this doesn’t appear to be a glTF problem. It looks like glass material on the Fridge is somehow occluding the instances. I noticed if you hide the glass door, then the instances show up:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/a03ff35bc47fd1d74d8f761003e1d75930a4e9d0.jpeg)

---

<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:** [April 19, 2021, 11:25pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099/5 "2021-04-19T23:25:09Z")

</div>

Looks like this GLB is using the transmission extension for glass which is appropriate. Somehow using the transmission extension is messing with instances. If I remove the transmission extension and use blend directly, then it works fine. @sebavan @Evgeni_Popov @MiiBond Any ideas?

---

<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:** [April 19, 2021, 11:30pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099/6 "2021-04-19T23:30:59Z")

</div>

Wait, I think I see the issue. Let me try something.

---

<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:** [April 19, 2021, 11:41pm UTC](https://forum.babylonjs.com/t/gltf-exporter-instances-issue/20099/7 "2021-04-19T23:41:10Z")

</div>

Fixed in PR: [Fix issue with glTF transmission and instances by bghgary · Pull Request #10225 · BabylonJS/Babylon.js (github.com)](https://github.com/BabylonJS/Babylon.js/pull/10225)
