SubMesh and cover texture

Hello everyone
I’d like to know the method to get subMesh from parent Mesh using texture coordinates

Hello and welcome to the Babylon community! You can get a submesh from the result of a pick, but not from texture coordinates as far as I’m aware of. What are you trying to do with the texture coordinates?

Thanks for your reply.
The scene obtained using SceneLoader.Append has some spheres with textures applied to them.
What I want to do is to replace a certain part of the sphere with a different texture given.
I want to change the small squares to a constant texture.
Thank you

Oooh, that’s an interesting problem :slight_smile: If you know the UVs range where you want to place the different texture you can easily do it with shaders: Babylon.js Node Material Editor ( Here’s a small example that selects a different texture based on the range of UVs. You can do it with shaders in code too.


I am like a beginner because I just started wanting to learn babylon.js
I’ll try your opinion
Thank you for your sincere help. :smiling_face_with_three_hearts:

Could you possibly share me more detailed example?

Hmm what kind of thing would you like to see in more detail?

It is just a very simple sample to re-apply the partial texture.
I can’t clearly come up with a way to subtexture using shaders.

I showed you an example already using the Node Editor, which generates shader code for you :slight_smile: