Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converting from obj to glb then back to obj, problem and solution #590

Closed
gwald opened this issue Aug 13, 2023 · 0 comments · Fixed by #592
Closed

converting from obj to glb then back to obj, problem and solution #590

gwald opened this issue Aug 13, 2023 · 0 comments · Fixed by #592
Labels

Comments

@gwald
Copy link

gwald commented Aug 13, 2023

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 :)

image
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

@gwald gwald added the bug label Aug 13, 2023
Repository owner locked and limited conversation to collaborators Aug 13, 2023
@zeux zeux converted this issue into discussion #591 Aug 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant