CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.7k stars 305 forks source link

mtl #171

Open yangyunzhang opened 5 years ago

yangyunzhang commented 5 years ago

Hello, I want to use ifc2b3dm, in which your plug-in is used. Ifc transfers obj to generate. Obj and. MTL.So how do you convert these two files to GLTF?

lilleyse commented 5 years ago

If you have the obj and mtl you should be able to follow the instructions here to convert them to glTF: https://github.com/AnalyticalGraphicsInc/obj2gltf#using-obj2gltf-as-a-command-line-tool.

You do not need to pass in the mtl file to the command. As long as the obj references the mtl file it should work.