DirectX mesh, loading code?

Started by PG, June 19, 2008, 05:01:29 pm

Previous topic - Next topic

PG

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.
Figured out how to do clicky signatures

Sengin

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

PG

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.
Figured out how to do clicky signatures