Obj file is loading textures from a previous mesh instead of the new mesh

Obj file is loading textures from a previous mesh instead of the new mesh

charsam0103
Observer Observer
218 Views
1 Reply
Message 1 of 2

Obj file is loading textures from a previous mesh instead of the new mesh

charsam0103
Observer
Observer

Im having trouble importing a mesh with a texture.  I have my obj file, mtl and png files in the same folder so in theory they should load together correctly.  And this does work for the first mesh I import, the texture imports correctly.  But when I try to import a different mesh it will import with the textures from the first mesh no matter what I do.  The two meshes and their texture files are in different folders and aren't connected in any way.  Ive restarted fusion, tried a different scene file, restarted my computer and tried multiple computers and the issue persists so unsure why part of fusion is messing it up here.  Would love some help on this thanks

0 Likes
219 Views
1 Reply
Reply (1)
Message 2 of 2

martin.kehr
Explorer
Explorer

I'm having the exact same issue when trying to import scans i did with canvas App.
Also i think i kind of figured out whats the problem.
My scans, as they should, are being in separate folders - each including the .obj .mtl and several .jpg(s) - are named "ReprocessedMesh.obj" "ReprocessedMesh.mtl" and "ReprocessedMesh0.jpg" "ReprocessedMesh1.jpg" and so on by the App.
When opening the .obj it refers to the .mtl in the same folder. And the .mtl refers to the .jpg(s).
But it kind of feels like that Fusion when reading the mtl. referring to ReprocessedMesh0.jpg and the others, looks for them in its cache or so- cause i tried to copy a different scan into the folder that worked before and putting the scan data that worked into a subfolder. But when trying to import the other scan it still was loading the other textures that now were in a subfolder)
I do think that kind of explains what is happening course i found a slightly annoying but working workaround.

It's about for different .obj(s) to be having different names for their referred to .jpg(s). I just renamed them to "0.jpg" "1.jpg" and so on for one scan and "Mesh0.jpg" "Mesh1.jpg" for another. Also i changed the filenames of the .jpg(s) in the .mtl file with a text editor to "0.jpg" "1.jpg" and so on. And then i was able to import diffetent .obj files with its related textures. Note: The .obj file can be renamed but the name of the .mtl file must keep its original name. And as before each set of scandata (.obj .mtl .jpg) must be in its own folder.

Hope this helps 🙂

0 Likes