DirectX8 MSD3D loader with animation
Downloaded from www.persistentrealities.com
Modifications by Almar Joling.

Notice:

I found a DX9 version of this loader which was a milkshape viewer from chUmbaLum sOft. The license says the following:

------------
Copyright  2003 Mete Ciragan, chUmbaLum sOft

This software is provided 'as-is', without any expressed or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
   If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any distribution.

------------
You can find chUmbaLum sOft here: http://www.swissquake.ch/chumbalum-soft/


I've converted this loader to use DirectX8 things only. The biggest issue was the interpolator object.
Also notice that I've commented out most ofthe error handling functions, notices!!

I've also added a check for relative\absolute filenames. It's very basic, I'm not an C++ expert (yet). :-)

*The biggest slow down is in the code which updates the vertices, after SetTime*

I hope, that people find way to optimize this, and willing to share the code, on my forum ,by e-mail, etc. :-)


Usage example, loading:

	objMS3DModel = new CD3DSkinnedMesh();
	objMS3DModel->m_pMS3DFile = new CMS3DFile();
	objMS3DModel->m_pMS3DFile->LoadFromFile("womanWalk.ms3d");
	objMS3DModel->CreateFromMS3DFile(mp_d3d_device,objMS3DModel->m_pMS3DFile, "../source/directory/");
	objMS3DModel->SetFlatNormals(false);
	objMS3DModel->SetDefaultShaderOnly(false);


Various rendering functions:

	objMS3DModel->DrawBones();
	objMS3DModel->DrawEdges();
	objMS3DModel->Draw();

Setting time:
	objMS3DModel->SetTime(timevariable);


I hope it's usefull to some people :-)

-Almar Joling

