Recently, I've been experimenting with adding new images and text as textures to a 3D object using fabric js for my 3D configurator. My codebase is inspired by this GitHub repository, and I'm also utilizing this code from CodePen.
One key aspect of the process involves loading an SVG file. Here's a snippet of how I achieve that:
function set_materials(response) {
// Code implementation goes here
}
I then proceed to map the texture to a material called `textureMaterial`, but encounter issues with proper UV mapping. The result can be viewed https://i.sstatic.net/oNS43.png. If anyone has any suggestions on how to address this UV mapping issue, I would greatly appreciate it.