Sign in to follow this  
ms75214

DirectX mesh formats

Recommended Posts

Can someone tell me what mesh formats DirectX currently supports loading? IIRC, back in 2004, it could only load some peculiar .x format that I didn't know how to convert to/from.

Thanks.

Share this post


Link to post
Share on other sites
Not sure exactly what you mean by "supports." Are you asking about DX9 and D3DXLoadMesh..? Static meshes? Animated meshes?

If you're not talking about D3DXLoadMesh.. functions, you can load any format (that can be described with vertex declarations) you want with your own loader.

Share this post


Link to post
Share on other sites
Quote:
Original post by Buckeye
Not sure exactly what you mean by "supports." Are you asking about DX9 and D3DXLoadMesh..? Static meshes? Animated meshes?

If you're not talking about D3DXLoadMesh.. functions, you can load any format (that can be described with vertex declarations) you want with your own loader.


I guess I was thinking of static meshes and D3DXLoadMeshFromX and wondering if they built in anything for other formats like 3ds or WaveFront obj files.

Share this post


Link to post
Share on other sites
Quote:
wondering if they built in anything for other formats like 3ds or WaveFront obj files

If you're still talking about DX9, the answer is no. I.e., there's nothing like D3DXLoadMeshFromOBJ, etc. Don't know about later APIs (though I don't believe so).

Share this post


Link to post
Share on other sites
there's no static function that loads meshes in directX 10 ,
but there's a sample in the documantation that loads meshes from .OBJ file

You can also use fbx SDK that let you load fbx meshes that all the designing programs support it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this