# glTF object does not load with my code or blender, but works with Web-GlTF Viewer

**URL:** <https://discourse.threejs.org/t/gltf-object-does-not-load-with-my-code-or-blender-but-works-with-web-gltf-viewer/16045>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [June 9, 2020, 2:14pm UTC](https://discourse.threejs.org/t/gltf-object-does-not-load-with-my-code-or-blender-but-works-with-web-gltf-viewer/16045 "2020-06-09T14:14:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvazquez5](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@nvazquez5](https://discourse.threejs.org/u/nvazquez5)\
**Post date:** [June 9, 2020, 2:14pm UTC](https://discourse.threejs.org/t/gltf-object-does-not-load-with-my-code-or-blender-but-works-with-web-gltf-viewer/16045/1 "2020-06-09T14:14:10Z")

</div>

(I am a noob at coding and using threejs so I wish to get some help. I followed a tutorial to import 3D models to my local server. I got them to work…however one of the 3D models that I imported would not appear. I tried using blender to import my object, but it also wouldn’t appear there. Then I tried opening it into glTF Viewer there and it worked perfectly there. So I am confused…If I am using the correct glTF loader (that loads my other objects) what could be the reason this other 3D model wont load but it works with glTF Viewer

---

<div class="post-metadata">

**Author:** ![Coder](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/coder/32/11082_2.png) [@Coder](https://discourse.threejs.org/u/Coder)\
**Post date:** [June 9, 2020, 2:39pm UTC](https://discourse.threejs.org/t/gltf-object-does-not-load-with-my-code-or-blender-but-works-with-web-gltf-viewer/16045/2 "2020-06-09T14:39:26Z")

</div>

I loaded mine using the below code and it worked fine  
I also linked them using the script tag

```auto
<script src="https://rawcdn.githack.com/mrdoob/three.js/r96/examples/js/loaders/GLTFLoader.js"></script>

```

And by using the code :

```auto

  var gltfloader = new THREE.GLTFLoader();

    var filepath = "object.glb";

    gltfloader.load(filepath, function(gltf) {

         gltf.scene.traverse(function(node) {

              if (node.isMesh) mesh = node;

         });
         scene.add(mesh);
    });

```
