This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
converting from obj to glb then back to obj, problem and solution #590
Labels
You can continue the conversation there. Go to discussion →
I fixed my problem (#589), it turns out it was an the .mtl file that wasn't understood by gltfpack.
The test.obj/.mtl loaded fine in assimp viewer, but generated no UV's and there for, no texture.
mc.obj/.mtl worked but the assimp generated .mtl need fixing (two materials none, with a texture), probably an assimp issue.
Swapped out the .mtl with the original content, and it worked great!
Not sure how useful this is to the project or anyone needing help, but here it is :)
Content of batch file to get it working:
echo https://manpages.ubuntu.com/manpages/impish/man1/gltfpack.1.html
echo assimp Version 5.2 -debug -shared -st (compiled from github)
echo gltfpack 0.19 (github release)
echo run.bat > res.txt
assimp info mc.obj
gltfpack.exe -i mc.obj -o test.glb -tu -sa -si 0.22 -kn -km -ke -mm -noq -v -r log.txt
assimp info test.glb
assimp export test.glb new.obj
copy correct.mtl new.mtl
assimp info new.obj
assimp_viewer.exe new.obj
obj2obj.zip
The text was updated successfully, but these errors were encountered: