-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I'm currently working on exporting a 3D mesh in OBJ format using the following command:
scene.mesh?.writeToOBJZip(atPath: documentsURL.appendingPathComponent("objzip").path)
However, I'm encountering an issue where the texture on the exported OBJ file appears fragmented or incorrectly mapped. The geometry of the OBJ file itself seems to be correct, but the texture does not align properly—it appears random and disjointed across the model.
Interestingly, when I export the same scene in PLY format, the texture and model are in good shape, with no issues in texture mapping or alignment.
I have seen suggestions in previous posts about modifying UV mapping, specifically looking for code lines that involve something like '1.0 - uv.y' to address potential issues with texture flipping. However, I couldn't find any such line in my codebase. Also I tried blender to flip uv but it didn't work.
Has anyone encountered a similar issue or have insights into what might be causing this fragmented texture in the OBJ export? Any suggestions on how to correct the UV mapping or ensure the texture is applied correctly during the export process would be greatly appreciated.
Thank you in advance for your help!