Why imported meshes on my scene don’t draw image on DynamicTexture like the sample

Playground: Babylon.js Playground
Desc: I want to apply a texture (without repeating tiling) to the imported 3D model. I used DynamicTexture as an example, but the effect is not as good as the example. Did I miss any steps?

Hi @Dino_Fung and welcome to the forum!

Rendering will be better with mipmap enabled:

For some reason, UVs are not correct. but they seem correct when .obj is imported.

But loaded texture is properly tiled:

So, it’s the render to texture ?

Thank you for the suggestion. However, I would like it to be rendered as a single pattern instead of repeating the pattern allover the shirt. What can I do for it? Thanks.

You can change the uv scale values

check line 42

Thanks again for your suggestion, but I am still getting stuck on this issue.
I would like to make an effect as below image, it is similar as BABYLON.MeshBuilder.CreateDecal, but I don’t want the effect like a projected image on the shirt, since the pattern will become distorted when it is projected onto a curved surface.
I expect to achieve an effect similar to a print on garment, where the image adheres to the curved surface of the garment and display accordingly. What should I do for it.Thanks again for your suggestion, but I am still getting stuck on this issue.
I would like to make an effect as below image, it is similar as BABYLON.MeshBuilder.CreateDecal, but I don’t want the effect like a projected image on the shirt, since the pattern will become distorted when it is projected onto a curved surface.
I expect to achieve an effect similar to a print on garment, where the image adheres to the curved surface of the garment and display accordingly. What should I do for it.

I think it’s possible by changing texture sampling mode to CLAMP.

But it means you’ll have to properly uv unwrap the mesh so the portion of mesh with the texture has UV in [0…1] range.

Appreciate for you help, even it is close to what I want, however, I find no data from the component which in below pic showed (red frame) from the solution (

).
I cannot locate this setting from Babylon, is it not supported by Babylon? Thanks.

Decals | Babylon.js Documentation (babylonjs.com)
The decal system may be closer to what you want.