This commit is contained in:
Glenn Maynard
2004-08-19 00:16:02 +00:00
parent c06bed290d
commit 19207b986e
3 changed files with 5 additions and 9 deletions
+5 -5
View File
@@ -90,7 +90,7 @@ void Model::LoadMilkshapeAscii( CString sPath )
LoadPieces( sPath, sPath, sPath );
}
void Model::LoadPieces( CString sMeshesPath, CString sMaterialsPath, CString sBomesPath )
void Model::LoadPieces( CString sMeshesPath, CString sMaterialsPath, CString sBonesPath )
{
Clear();
@@ -99,16 +99,16 @@ void Model::LoadPieces( CString sMeshesPath, CString sMaterialsPath, CString sBo
LoadMaterialsFromMilkshapeAscii( sMaterialsPath );
LoadMilkshapeAsciiBones( DEFAULT_ANIMATION_NAME, sBomesPath );
LoadMilkshapeAsciiBones( DEFAULT_ANIMATION_NAME, sBonesPath );
//
// Setup temp vertices (if necessary)
//
bool bHasAnyPerVertexBones = false;
for (int i = 0; i < (int)m_pGeometry->m_Meshes.size(); i++)
for( unsigned i = 0; i < m_pGeometry->m_Meshes.size(); ++i )
{
msMesh& mesh = m_pGeometry->m_Meshes[i];
for (int j = 0; j < (int)mesh.Vertices.size(); j++)
const msMesh& mesh = m_pGeometry->m_Meshes[i];
for( unsigned j = 0; j < mesh.Vertices.size(); ++j )
{
if( mesh.Vertices[j].bone != -1 )
{
-2
View File
@@ -48,8 +48,6 @@ public:
virtual void HandleCommand( const ParsedCommand &command );
// int m_iRefCount;
private:
RageModelGeometry *m_pGeometry;
-2
View File
@@ -56,8 +56,6 @@ typedef struct msMesh
vector<RageModelVertex> Vertices;
// vector<msVec3> Normals; // each vertex holds its own normal
// OPTIMIZATION: If all verts in a mesh are transformed by the same bone,
// then send the transform to the graphics card for the whole mesh instead
// of transforming each vertex on the CPU;