# TGALoader giving a 404?

**URL:** <https://discourse.threejs.org/t/tgaloader-giving-a-404/7333>\
**Category:** Questions\
**Tags:** textures\
**Created:** [May 1, 2019, 9:27pm UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333 "2019-05-01T21:27:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mega1meyers](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mega1meyers](https://discourse.threejs.org/u/mega1meyers)\
**Post date:** [May 1, 2019, 9:27pm UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333/1 "2019-05-01T21:27:27Z")

</div>

Hi Three.js community.  
First, I’m an Instructional Designer by day, so my project is mainly using example code as I’m not a developer 🙂  
I’m trying to set up a simple scene utilizing the FBX loader and the TGALoader. I believe the materials are being turned into blobs but receiving a 404. Everything is local on my server so not sure if it’s an HTTP issue.

Here is a link to what I have so far [http://rob.mega1meyers.com/3dtest/](http://rob.mega1meyers.com/3dtest/)

And here is the gist [FBX and TGA Loader utilizing Three.js · GitHub](https://gist.github.com/mega1meyers/e47dca9136d08a281df7fc7077206d79)

Is there something basic I am missing?

---

<div class="post-metadata">

**Author:** ![marquizzo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marquizzo/32/25192_2.png) [@marquizzo](https://discourse.threejs.org/u/marquizzo)\
**Post date:** [May 2, 2019, 12:02am UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333/2 "2019-05-02T00:02:24Z")

</div>

A 404 simply means that there is nothing at that address. The URL that you’re trying to fetch from: [http://rob.mega1meyers.com/3dtest/models/blob:http://rob.mega1meyers.com/30c91c40-262c-4635-a4f7-4df1f0668681](http://rob.mega1meyers.com/3dtest/models/blob:http://rob.mega1meyers.com/30c91c40-262c-4635-a4f7-4df1f0668681) contains nothing. This has nothing to do with Three.js, you just have to find the correct URL where your assets are located.

---

<div class="post-metadata">

**Author:** ![mega1meyers](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mega1meyers](https://discourse.threejs.org/u/mega1meyers)\
**Post date:** [May 2, 2019, 2:07pm UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333/3 "2019-05-02T14:07:32Z")

</div>

@marquizzo I double checked my TGA several times before posting. The file is indeed on my server here [http://rob.mega1meyers.com/3dtest/models/VOMcolor.tga](http://rob.mega1meyers.com/3dtest/models/VOMcolor.tga)  
Am I not pulling they file correctly in my JavaScript?

```
					var tgaloader = new THREE.TGALoader();

					// load a resource
					var texture = tgaloader.load(
						'models/VOMcolor.tga'					
					);
```

---

<div class="post-metadata">

**Author:** ![mega1meyers](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mega1meyers](https://discourse.threejs.org/u/mega1meyers)\
**Post date:** [May 2, 2019, 2:14pm UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333/4 "2019-05-02T14:14:27Z")

</div>

I have the fbx model in the same directory and it’s rendering correctly

```
// model
			var loader = new THREE.FBXLoader();
			loader.load( 'models/VOM.fbx', function ( object ) {scene.add( object );
			}, undefined, function (e){
				console.error(e);
			};		

```

One of the reasons why I’m really confused on why this isn’t working.

---

<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:** [May 2, 2019, 2:35pm UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333/5 "2019-05-02T14:35:14Z")

</div>

I have created a quick live example to show that `TGALoader` can actually load your texture:

[https://jsfiddle.net/s5ao04pg/1/](https://jsfiddle.net/s5ao04pg/1/)

---

<div class="post-metadata">

**Author:** ![marquizzo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/marquizzo/32/25192_2.png) [@marquizzo](https://discourse.threejs.org/u/marquizzo)\
**Post date:** [May 2, 2019, 8:27pm UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333/6 "2019-05-02T20:27:48Z")

</div>

Have you taken a look at your Network Tab in the browser’s developer tools? It looks like your `VOMcolor.tga` and `VOM.fbx` files are loading correctly, but then there are a few `404`s happening after that. Are there any additional assets you’re trying to load? Is your `.fbx` file referencing other textures that aren’t available?

![404s](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/2X/9/91762c9df158bd35837fbbcdd1d4a01e501672a3.jpeg)

---

<div class="post-metadata">

**Author:** ![mega1meyers](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mega1meyers](https://discourse.threejs.org/u/mega1meyers)\
**Post date:** [May 2, 2019, 8:54pm UTC](https://discourse.threejs.org/t/tgaloader-giving-a-404/7333/7 "2019-05-02T20:54:12Z")

</div>

Good catch!  
Considering TGAs are more complex let me get with my 3D artist and we may try with a .png for texture. This is assuming the TGALoader can apply a .png to a FBX model. I’ll report back if that works.
