When an obj contains relative paths using windows path separators they are not normalized correctly when running obj2gltf on linux.
If the obj directory is my/obj/ and a material path in the obj is .\material.mtl the path produced by path.normalize is my/obj/.\material.mtl instead of my/obj/material.mtl. Fixed by converted converting back slashes to forward slashes manually. Maybe there is a better way?
When an obj contains relative paths using windows path separators they are not normalized correctly when running obj2gltf on linux.
If the obj directory is
my/obj/
and a material path in the obj is.\material.mtl
the path produced bypath.normalize
ismy/obj/.\material.mtl
instead ofmy/obj/material.mtl
. Fixed by converted converting back slashes to forward slashes manually. Maybe there is a better way?CC @mramato