converting from obj to glb then back to obj, problem and solution #591
gwald
started this conversation in
Show and tell
Replies: 2 comments 3 replies
-
This was initially filed as a bug (?) but I don't think that is correct, so I've converted this to a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
test.obj ("test.obj fails to create UVs" in the zip), viewed fine in assimp, but gltfpack didn't process the materials correctly, it was probably an incorrect spec .mtl issue. I forgot to include the working mc.mtl file. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions