CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.72k stars 308 forks source link

Override texture flags not having any effect #290

Open Nakroma opened 1 year ago

Nakroma commented 1 year ago

Hey, I have an OBJ model without an MTL file. So I'm trying to pass my textures via the external override flags, for example: obj2gltf -i mymodel.obj -o mymodel.gltf --baseColorTexture=assets/mymodel_albedo.png.

However, this has no effect, the generated gltf file is the same as the model that gets generated when I remove the --baseColorTexture flag.

I also saw #141 and tried to create an empty MTL file and add mtllib mymodel.mtl as the first line to my OBJ file, which didn't change anything unfortunately. Am I using these flags wrong?

yosun commented 4 months ago

any updates on this fix