CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.71k stars 307 forks source link

Handle material and texture paths with spaces #110

Closed lilleyse closed 6 years ago

lilleyse commented 7 years ago

The obj format lets you pass multiple material paths to the mtllib line:

mtllib filename1 filename2

So when we encounter a path with spaces like mtllib data/my folder/material.mtl it is treated as referencing two mtl files called data/my and folder/material.mtl. obj2gltf should be smarter about realizing when it's a path with spaces versus separate files.