Samples Content Exporter Update
dxsdkOriginally posted to Chuck Walbourn's Blog on MSDN,
DirectX SDK (June 2010) includes the Samples Content Exporter utility for creating .sdkmesh
data files using Autodesk’s FBX SDK library. At the time, this utility used the 2010.2 version of the Autodesk FBX SDK which did not have support for Visual Studio 2010. Therefore, the VS 2010 project file was set up to require the VS 2008 toolset.
Attached to this blog post is an updated version that uses Autodesk FBX SDK 2011.3.1 which does support VS 2010. The VS 2010 project file no longer requires the VS 2008 toolset. This version of the utility also supports building x64 native configurations and adds a new ‘exportScale’ export setting.
. For documentation, install the DirectX SDK, open the DirectX Software Development Kit documentation file and view the topics Samples Content Exporter and Overview of the SDK Mesh File Format.
Disclaimer: .SDKMESH
has been our long-time samples runtime geometry format since the retiring of the legacy .X file format. It has a number of limitations, and we don’t recommend using it as a your production solution for meshes. It is, however, very useful for samples and itself serves as an example of such file containers. The Windows 8 DirectX sample Marble Maze makes use of .SDKMESH
and the code for loading and rendering them for a Windows Store app (a.k.a. Metro style apps) can be found on the Windows Samples Code Gallery. Traditional Win32 desktop code for loading and rendering an .SDKMESH
can be found in the DirectX SDK (June 2010)’s DXUT library. The documentation on the format can be found here.
Remember to set the FBX_SDK
environment variable to the location of the 2011.3.1 Autodesk FBX SDK installed on your system (such as “C:\Program Files\Autodesk\FBX\FbxSdk\2011.3.1
”). You are free to use either the DLL or static library version of the Autodesk FBX SDK, but would recommend using the DLL version which keeps the content exporter tool itself to around 1 MB instead of being nearly 7 MB.
Update: This project is now hosted on GitHub and has been updated to support VS 2012 with Autodesk FBX SDK 2014.1 or later, and VS 2013 with Autodesk FBX SDK 2015.1 or later. It is available under the MIT license, and no longer makes use of the legacy DirectX SDK or D3DX9. See Samples Content Exporter (May 2015).
Related: DirectXTK now has support for loading and rendering meshes from .SDKMESH
files. Also, the meshconvert sample for DirectXMesh can convert Wavefront OBJ files to .SDKMESH
files.