This DirectXMesh sample is an implementation of the meshconvert command-line utility from the DirectX SDK using DirectXMesh rather than D3DX. This tool imports geometry and prepares it for runtime use including generating normals and tangent frames, performing vertex-cache optimization, and writing it to a file format suited for runtime use.
The original tool imported from legacy X files. This version imports from Wavefront OBJ or VBO files. Syntax Meshconvert.exe uses the following command syntax: meshconvert -r -n -na -ne -t -tb -cw -op -oplru -c -ta -ga -sdkmesh -cmo -vbo -nodds -flip -flipu -flipv -flipz -o -y -nologo -flist The file-name parameter indicates the file(s) to convert.
The optional command-line switches are described in the following table. Optional Switches Description -r: Input file names can contain wildcard characters (?
Lists the conversion functions provided by DirectXMath. In this section Topic Description Converts a single-precision floating-point value to a half-precision floating-point value. Converts a stream of single-precision floating-point values to a stream of half-precision floating-point values. Converts a half-precision floating-point value to a single-precision floating-point value.
Converts a stream of half-precision floating-point values to a stream of single-precision floating-point values. Converts an angle measured in radians into one measured in degrees. Converts an angle measured in degrees into one measured in radians. Converts an with float components to an XMVECTOR with int32t components and applies a uniform bias. Converts an with float components to an XMVECTOR with uint32t components and applies a uniform bias. Converts an with int32t components to an XMVECTOR with float components and applies a uniform bias. Converts an with uint32t components to an XMVECTOR with float components and applies a uniform bias.
Related topics.