# Load an obj file multiple times with different textures

**URL:** <https://discourse.threejs.org/t/load-an-obj-file-multiple-times-with-different-textures/3535>\
**Category:** Questions\
**Tags:** obj-loader, loaders, textures\
**Created:** [July 25, 2018, 9:29am UTC](https://discourse.threejs.org/t/load-an-obj-file-multiple-times-with-different-textures/3535 "2018-07-25T09:29:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eileen](https://avatars.discourse-cdn.com/v4/letter/e/43a26b/32.png) [@eileen](https://discourse.threejs.org/u/eileen)\
**Post date:** [July 25, 2018, 9:29am UTC](https://discourse.threejs.org/t/load-an-obj-file-multiple-times-with-different-textures/3535/1 "2018-07-25T09:29:06Z")

</div>

For example, I have 5 different textures in a folder for a single obj fish model. Then I want to display 5 fishes on my website with these 5 textures. How to achieve that?

I have an array to store texture information: textures = [‘texture1.jpg’, ‘texture2.jpg’, ‘texture3.jpg’, ‘texture4.jpg’, ‘texture5.jpg’]

Thanks a lot!

---

<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:** [July 25, 2018, 10:54am UTC](https://discourse.threejs.org/t/load-an-obj-file-multiple-times-with-different-textures/3535/2 "2018-07-25T10:54:08Z")

</div>

Have a look at this example:

[https://jsfiddle.net/f2Lommf5/10179/](https://jsfiddle.net/f2Lommf5/10179/)

The code loads the `OBJ` once but clones the mesh five times and applies for each instance a different material. For your particular use case, you apply for each material a custom texture instead of generating a random color.
