CesiumGS / obj2gltf

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

TypeError: Cannot set property 'ambientColor' of undefined #172

Closed simonasdmd closed 5 years ago

simonasdmd commented 5 years ago

I encountered this error when converting an obj data into gltf. I looked at the prompt but didn't know how to solve it. Can you prompt me? x 9q z1 ogh w prcjj3 e This is my OBJ file target.zip

simonasdmd commented 5 years ago

I changed that version but the problem has not been solved

lilleyse commented 5 years ago

I forgot to mention, I opened https://github.com/AnalyticalGraphicsInc/obj2gltf/pull/173 to fix this problem. Once that PR is merged it should convert correctly.

obj

simonasdmd commented 5 years ago

I have a new problem. 11 2

lilleyse commented 5 years ago

That seems like this it might be this limitation: https://github.com/AnalyticalGraphicsInc/obj2gltf/issues/59.

The two workarounds are to pass in -s to save separate resources or -b to save as a binary glTF.

If neither of those work I'd be interested in seeing the obj file. How large is the file?

simonasdmd commented 5 years ago

You have developed obj to convert to gltf. Can you continue to update the function of obj to 3dtiles. Everyone needs this feature very much.