microsoft / DirectXMesh

DirectXMesh geometry processing library
https://walbourn.github.io/directxmesh/
MIT License
786 stars 152 forks source link

FAILED (80070002) when converting a .obj to skdmesh #55

Closed RyanWilliams99 closed 3 years ago

RyanWilliams99 commented 3 years ago

I'm using the following commands I have also tried with various arguments but still no luck.

meshconvert monkey.obj and meshconvert monkey.obj -sdkmesh

monkey.zip

walbourn commented 3 years ago

The error result 80070002 is ERROR_FILE_NOT_FOUND--the VS Error Lookup tool is handy here.

If you open the monkey.obj file in text editor, you'll see that it references a different filename for the mtl file than you expect:

mtllib monkey2k.mtl

Rename your monkey.mtl to monkey2k.mtl.