As you can see, I do it as a box with the dimensions of the element.
I would like to get to the front wall of this box and put only texture on it.
In general, I made a canvas (fabric js) with the same dimensions as the UV map and I want to add some background and write something, and then load it to the front of the 3d model. At the moment when I add a texture, it is added to all pages.
How do you find this front part? Should I add something to the .obj file in 3ds Max? Maybe the UV map doesn’t matter at all?
I would like to add an example in JsFiddle, but unfortunately time doesn’t allow me. If I find time, I will try to add it, but maybe someone already knows how to solve it. It’s probably not difficult, but I can’t handle it.
In the .obj model I have several elements. Each element has a name. For example, when I load a model, I have 4 items on scene. All elements have a texture to start with. when I click one, I get dimensions and link to textures and draw a canvas with the same background as in the model. After adding text to the canvas, I want to update the model with texture from the canvas. This example has 4 elements, but there can be more elements. When I split each element and click one, I click the front or the rest of the element, not the whole.
Maybe if I didn’t have models, and now I could create them, I could try, but .obj files are already very, very numerous. Maybe I’ll look at these groups in bufferGeometry.
Okay, you just have to make sure to create two groups representing the two parts of your geometry. You can then create an array of materials (one material with texture and one without it) and apply it to the mesh.