Together with my cousin (I’m dealing with 3D geometry, his scope is programing side of it) we’re working on a bigger project - let’s say adaptive geometry configurator.
We’ve come across some issues we’re unable to solve. It concerns geometry’s modification and wrong mapping output we get. I’ve read multiple threads and haven’t come across any sollution (but I might be wrong).
Basically, we’ve got our geometry, UV premapped and converted from Blender to glTF format. What we need to do is in order to adjust dimensions of the object, instead of scaling, take array of vertexes at one end and move it along for instance X axis. It works nice based on:
obj.geometry.vertices[idx].x = new_x;
But after this operation of course we get our native Blender mapping distorted. And here comes the question:
Is there any way we could within three.js set up some kind of overall mapping for imported and then adjusted geometry (it might be as simple as box/cube mapping), so that after vertex movement the mapping could be reapplied and thus save native texture proportions?
Hope it’s quite clear, if not, I’ll elaborate on it and incluse some explanatory picts.
All the best