# GLTF Object loading but not showing up

**URL:** <https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480>\
**Category:** Questions\
**Tags:** gltf-loader\
**Created:** [October 6, 2020, 4:41pm UTC](https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480 "2020-10-06T16:41:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcupio](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marcupio/32/9756_2.png) [@Marcupio](https://discourse.threejs.org/u/Marcupio)\
**Post date:** [October 6, 2020, 4:41pm UTC](https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480/1 "2020-10-06T16:41:27Z")

</div>

I’m using three.js and have the scene and everything set up but when I try to load a 3d object (.gltf from here [sketchfab 3d object](https://sketchfab.com/3d-models/laptop-7d870e900889481395b4a575b9fa8c3e#download)). But the object seems to load fully and then doesn’t show up for some reason. The file is being imported correctly.

```
import laptop from './laptop/scene.gltf'

var objloader = new GLTFLoader();				
	objloader.load(laptop, function (gltf) {
		gltf.scene.scale.set(2, 2, 2);
		gltf.scene.position.set(220, 10, 400)

		scene.add(gltf.scene);
	});	 

```

This error is showing up in the console which doesn’t make sense because it should be placed correctly.

```
RangeError: attempting to construct out-of-bounds TypedArray on ArrayBuffer

```

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [October 6, 2020, 4:52pm UTC](https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480/2 "2020-10-06T16:52:19Z")

</div>

If you tried to load this auto-converted gltf:

 ![Screenshot 2020-10-06 at 18.51.01](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/8/8d41f1bb975cd95eb283124cf8fcc604a2bcf3b3.png)

it seems to be corrupted and invalid (tested in [gltf-viewer](https://gltf-viewer.donmccurdy.com/)). Download the original `.fbx` model and convert it manually in Blender or similar software.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [October 6, 2020, 5:58pm UTC](https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480/3 "2020-10-06T17:58:06Z")

</div>

/cc

> <https://stackoverflow.com/questions/64230020/gltf-object-loading-but-not-showing-up>

I could load the glTF export without issues in the `three.js` editor.

---

<div class="post-metadata">

**Author:** ![Marcupio](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marcupio/32/9756_2.png) [@Marcupio](https://discourse.threejs.org/u/Marcupio)\
**Post date:** [October 6, 2020, 6:16pm UTC](https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480/4 "2020-10-06T18:16:14Z")

</div>

Yes I’m not sure why it is not loading in my project. I am using three.js version 121. Imported the GLTFLoader from one of the jsm examples… I couldn’t find any GLTFLoader outside of the examples though. I installed three into the project using npm

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [October 6, 2020, 6:33pm UTC](https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480/5 "2020-10-06T18:33:29Z")

</div>

Try this one: [laptop.glb](https://discourse.threejs.org/uploads/short-url/3kw5scJRBJdYXH2bc5fpgWDFvXh.glb) (573.6 KB) 🤔

---

<div class="post-metadata">

**Author:** ![Marcupio](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marcupio/32/9756_2.png) [@Marcupio](https://discourse.threejs.org/u/Marcupio)\
**Post date:** [October 6, 2020, 6:40pm UTC](https://discourse.threejs.org/t/gltf-object-loading-but-not-showing-up/19480/6 "2020-10-06T18:40:34Z")

</div>

GLB works. Thank you. I’m guessing React isn’t taking the textures and binary file included
