walbourn / directxtkmodelviewer

A SDKMESH/CMO model viewer using DirectX Tool Kit for DirectX 11
https://github.com/Microsoft/DirectXTK
MIT License
40 stars 14 forks source link

Not able to load MarbleMaze SDK meshes #10

Open ata6502 opened 1 year ago

ata6502 commented 1 year ago

The MarbleMaze SDK sample (DirectX/C++) includes two SDK meshes:

The DirectXTK Model Viewer shows an error message when trying to load the above meshes: "Error loading a model". The code throws an exception in the CreateFromSDKMESH method: "Loading BigEndian SDKMESH files not supported".

Any plans to support BigEndian SDK meshes?

walbourn commented 1 year ago

Can you point to the download for this SDK?

ata6502 commented 1 year ago

The MarbleMaze sdkmesh files are from the Microsoft's "DirectX marble maze game sample": https://github.com/microsoft/Windows-appsample-marble-maze/tree/master/C%2B%2B/MarbleMaze_VS2017/Media/Models

I just wanted to open them using DirectXTK Model Viewer but after digging into the files themselves, I found that they differ in many places from the DXTK Model Viewer's expectations, for example:

ata6502 commented 1 year ago

I guess, one solution may be to "clean up" the MarbleMaze sdkmesh files so DXTK Model Viewer would not throw exceptions.