Planetside Software Forums

General => Open Discussion => Topic started by: PG on June 19, 2008, 05:01:29 PM

Title: DirectX mesh, loading code?
Post by: PG on June 19, 2008, 05:01:29 PM
Anyone familiar with DirectX in C++? I've been trying to locate some code to load a mesh into my graphics engine, so far I've been using obj but the model sizes are far too big. I'm trying to load .3ds but the code I've got isn't very useful, I think it's taken from Ogre or Irrlecht or another open source engine so isn't really very useful. If anyone could help me I'd be endlessly greatfull.
Title: Re: DirectX mesh, loading code?
Post by: Sengin on June 20, 2008, 01:46:54 PM
Have you tried looking on MSDN?  http://msdn.microsoft.com/en-us/library/aa139765.aspx

There is also a Mesh class in DirectX, it might turn out to have useful functions:  http://msdn.microsoft.com/en-us/library/bb296480.aspx
Title: Re: DirectX mesh, loading code?
Post by: PG on June 20, 2008, 02:15:46 PM
Yeah I've got the SDK but microsoft has this annoying habit of only using the .x format which is totally useless for the size and detail of the models I'm using. Even with 3ds one of the models I have is 30MB. ::)
But I didn't know about the mesh class thanks.