# How to apply an image to an imported .obj with existing textures?

**URL:** <https://forum.babylonjs.com/t/how-to-apply-an-image-to-an-imported-obj-with-existing-textures/23068>\
**Category:** Questions\
**Created:** [August 13, 2021, 10:05pm UTC](https://forum.babylonjs.com/t/how-to-apply-an-image-to-an-imported-obj-with-existing-textures/23068 "2021-08-13T22:05:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brandon/32/17754_2.png) [@brandon](https://forum.babylonjs.com/u/brandon)\
**Post date:** [August 13, 2021, 10:05pm UTC](https://forum.babylonjs.com/t/how-to-apply-an-image-to-an-imported-obj-with-existing-textures/23068/1 "2021-08-13T22:05:52Z")

</div>

Hi I have an image I want to put on the bottom of my skateboard mesh. I’m not sure how to do this without creating a new uv map for it, but this would not work for what I need.

Playground should explain what I’m trying to achieve:  
[https://playground.babylonjs.com/#2NITT6](https://playground.babylonjs.com/#2NITT6)

I really appreciate this community for all the valuable answers!

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 16, 2021, 4:47pm UTC](https://forum.babylonjs.com/t/how-to-apply-an-image-to-an-imported-obj-with-existing-textures/23068/2 "2021-08-16T16:47:51Z")

</div>

Hey @brandon and welcome! Sorry for the late answer

The best answer would be to have a second set of UV so can you tell me why you think it will not work?

Other option could be to add a decal: [Decals | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/divingDeeper/mesh/decals)

---

<div class="post-metadata">

**Author:** ![brandon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brandon/32/17754_2.png) [@brandon](https://forum.babylonjs.com/u/brandon)\
**Post date:** [August 16, 2021, 8:12pm UTC](https://forum.babylonjs.com/t/how-to-apply-an-image-to-an-imported-obj-with-existing-textures/23068/3 "2021-08-16T20:12:21Z")

</div>

Thanks! A second set of UV would not be useful in my project because I would have to dynamically update the UV every time the user changes the graphic image for the skateboard in my application. That could be time consuming for creating new images for the uv map.

I think decals is the way to go for me that way I don’t have to have the server do extra work when they upload an image.

Thanks for your response!

---

<div class="post-metadata">

**Author:** ![brandon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brandon/32/17754_2.png) [@brandon](https://forum.babylonjs.com/u/brandon)\
**Post date:** [August 16, 2021, 8:58pm UTC](https://forum.babylonjs.com/t/how-to-apply-an-image-to-an-imported-obj-with-existing-textures/23068/4 "2021-08-16T20:58:19Z")

</div>

Hi, actually I’m having a problem with using decals.

I’ve copied the code from the Decals example and it runs without error.

The problem is, it doesn’t actually show the decal or do anything.  
Example: [https://playground.babylonjs.com/#2NITT6#2](https://playground.babylonjs.com/#2NITT6#2)

If I remove the pointer code, it gives me an error: t.getIndices is not a function  
Example: [https://playground.babylonjs.com/#2NITT6#3](https://playground.babylonjs.com/#2NITT6#3)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 16, 2021, 9:28pm UTC](https://forum.babylonjs.com/t/how-to-apply-an-image-to-an-imported-obj-with-existing-textures/23068/5 "2021-08-16T21:28:18Z")

</div>

Mostly this is because the task does not return the mesh,

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/8/082a6479ed5f2d77bb948330c946e65f6fcd60e5.png)

This is an asynchronous model

you have to use `loader.onFinish` to get your result:  
[fff | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#ZJYNY#0)
