# 3d model doesn't load

**URL:** <https://discourse.threejs.org/t/3d-model-doesnt-load/21577>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [December 14, 2020, 10:42am UTC](https://discourse.threejs.org/t/3d-model-doesnt-load/21577 "2020-12-14T10:42:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter-d88](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/peter-d88/32/15132_2.png) [@peter-d88](https://discourse.threejs.org/u/peter-d88)\
**Post date:** [December 14, 2020, 10:42am UTC](https://discourse.threejs.org/t/3d-model-doesnt-load/21577/1 "2020-12-14T10:42:44Z")

</div>

Hi all,

I am trying to load .obj file. I dont have any errors in the browser but the object is not loaded but I get warnings as ‘THREE.OBJLoader: Unexpected line: “”’.

This is how I load the model

```javascript
const loader = new OBJLoader()
console.log('')
loader.load('/assets/r2-d2.obj', function(obj) {
   scene.add(obj)
})

const animate = () => {
   window.requestAnimationFrame(animate)
   renderer.render(scene, camera)
}

animate()

```

as the assets folder is on the same level as my file

---

<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:** [December 14, 2020, 10:50am UTC](https://discourse.threejs.org/t/3d-model-doesnt-load/21577/2 "2020-12-14T10:50:06Z")

</div>

Please ensure with the network tab of your browser’s dev console whether your OBJ file is correctly loaded or not. Check for no 404 error and also inspect the response for valid OBJ content.
