I successfully split a glb file into two parts (including textures), but after the split, each part retained a complete texture file. I want to reduce the size of the textures to decrease the glb file size. I tried to crop the textures based on the UV extremes while stretching the UVs to fit within the 0-1 range, and then assigned the new textures and UVs to the split files. However, there's an issue with the experiment results: the texture range has shifted slightly.
The image below shows the original side of the truck.
The image below shows the side of the truck after the split. You can see several black areas have been added to the upper part of the side, which are closely adjacent to the truck's side on the texture.
The image below shows the back of the original truck.
The image below shows the back of the truck after the split, with the bottom part of the taillights showing less than in the original file.
Does anyone know what went wrong in the process? Thanks very much in advance.
I successfully split a glb file into two parts (including textures), but after the split, each part retained a complete texture file. I want to reduce the size of the textures to decrease the glb file size. I tried to crop the textures based on the UV extremes while stretching the UVs to fit within the 0-1 range, and then assigned the new textures and UVs to the split files. However, there's an issue with the experiment results: the texture range has shifted slightly. The image below shows the original side of the truck.
The image below shows the side of the truck after the split. You can see several black areas have been added to the upper part of the side, which are closely adjacent to the truck's side on the texture.
The image below shows the back of the original truck.
The image below shows the back of the truck after the split, with the bottom part of the taillights showing less than in the original file.
Does anyone know what went wrong in the process? Thanks very much in advance.
here is the original image and my code.