# Some questions about textture

**URL:** <https://forum.techsoft3d.com/t/some-questions-about-textture/1761>\
**Category:** HOOPS Visualize Web\
**Created:** [March 21, 2023, 6:29am UTC](https://forum.techsoft3d.com/t/some-questions-about-textture/1761 "2023-03-21T06:29:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![619944680](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/619944680/32/516_2.png) [@619944680](https://forum.techsoft3d.com/u/619944680)\
**Post date:** [March 21, 2023, 6:29am UTC](https://forum.techsoft3d.com/t/some-questions-about-textture/1761/1 "2023-03-21T06:29:36Z")

</div>

When using the setNodesTexture method, I encountered the following issues：  
1.When set node textture,strange cross sections appear in the model,but this doesn’t always happen

 ![贴图问题-奇怪的横截面](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/f004807b36949ad72d86b4594fb02dde97e638c1.png)

2.I only saw colors on the node, but I used an image.I uploaded the models and images I used about this.

 ![贴图问题-纯色](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/babfb4f88afedb639b26aa0c3d5a1bf22fc78f03.png)  
[textTure.zip](https://forum.techsoft3d.com/uploads/short-url/zNIszL5K83awxOYRiR9qpFxsHT1.zip) (2.9 MB)

3.I used a gradient image to set node textture, but I can see that there are divisions on the node.  
 ![1679379365267](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/7dcd5de5786a10d983073f2ac30b67681aebe92e.png)

![贴图问题-分层](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/28b4c9255b333902c18b1a5df73fdeac46729bc2.png)

The following is some of the code I used. The loadImage method is not written here, and this method returns an imageId:

```auto
loadImage(imgUrl).then(function (imageId) {
  imageId && hwv.getModel().setNodesTexture([nodeid], {
    imageId: imageId,
    tiling: Communicator.TextureTiling.Repeat,
  })
})

```

Regarding the above question, I wonder if it may be caused by incorrect mesh data, but I am not sure. I hope to get your answer.  
Thanks.

---

<div class="post-metadata">

**Author:** ![guido](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/guido/32/115_2.png) [@guido](https://forum.techsoft3d.com/u/guido)\
**Post date:** [March 21, 2023, 12:20pm UTC](https://forum.techsoft3d.com/t/some-questions-about-textture/1761/2 "2023-03-21T12:20:01Z")

</div>

You definitely have to make sure that the mesh you are applying the texture to has correct texture coordinates. That will generally not be the case for IFC models but from the last image, it looks like you did get some result with your data.

I’m not sure what is causing the weird artifacts in the first image, this looks like a bug. Is it possible for you to provide more information (model you used, code to apply texture, etc).
