|
@@ -187,37 +187,37 @@ void MDLImporter::InternReadFile( const std::string& pFile,
|
|
|
|
|
|
// Original Quake1 format
|
|
// Original Quake1 format
|
|
if (AI_MDL_MAGIC_NUMBER_BE == iMagicWord || AI_MDL_MAGIC_NUMBER_LE == iMagicWord) {
|
|
if (AI_MDL_MAGIC_NUMBER_BE == iMagicWord || AI_MDL_MAGIC_NUMBER_LE == iMagicWord) {
|
|
- DefaultLogger::get()->debug("MDL subtype: Quake 1, magic word is IDPO");
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG("MDL subtype: Quake 1, magic word is IDPO");
|
|
iGSFileVersion = 0;
|
|
iGSFileVersion = 0;
|
|
InternReadFile_Quake1();
|
|
InternReadFile_Quake1();
|
|
}
|
|
}
|
|
// GameStudio A<old> MDL2 format - used by some test models that come with 3DGS
|
|
// GameStudio A<old> MDL2 format - used by some test models that come with 3DGS
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS3 == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS3 == iMagicWord) {
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS3 == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS3 == iMagicWord) {
|
|
- DefaultLogger::get()->debug("MDL subtype: 3D GameStudio A2, magic word is MDL2");
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG("MDL subtype: 3D GameStudio A2, magic word is MDL2");
|
|
iGSFileVersion = 2;
|
|
iGSFileVersion = 2;
|
|
InternReadFile_Quake1();
|
|
InternReadFile_Quake1();
|
|
}
|
|
}
|
|
// GameStudio A4 MDL3 format
|
|
// GameStudio A4 MDL3 format
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS4 == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS4 == iMagicWord) {
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS4 == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS4 == iMagicWord) {
|
|
- DefaultLogger::get()->debug("MDL subtype: 3D GameStudio A4, magic word is MDL3");
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG("MDL subtype: 3D GameStudio A4, magic word is MDL3");
|
|
iGSFileVersion = 3;
|
|
iGSFileVersion = 3;
|
|
InternReadFile_3DGS_MDL345();
|
|
InternReadFile_3DGS_MDL345();
|
|
}
|
|
}
|
|
// GameStudio A5+ MDL4 format
|
|
// GameStudio A5+ MDL4 format
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS5a == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS5a == iMagicWord) {
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS5a == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS5a == iMagicWord) {
|
|
- DefaultLogger::get()->debug("MDL subtype: 3D GameStudio A4, magic word is MDL4");
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG("MDL subtype: 3D GameStudio A4, magic word is MDL4");
|
|
iGSFileVersion = 4;
|
|
iGSFileVersion = 4;
|
|
InternReadFile_3DGS_MDL345();
|
|
InternReadFile_3DGS_MDL345();
|
|
}
|
|
}
|
|
// GameStudio A5+ MDL5 format
|
|
// GameStudio A5+ MDL5 format
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS5b == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS5b == iMagicWord) {
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS5b == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS5b == iMagicWord) {
|
|
- DefaultLogger::get()->debug("MDL subtype: 3D GameStudio A5, magic word is MDL5");
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG("MDL subtype: 3D GameStudio A5, magic word is MDL5");
|
|
iGSFileVersion = 5;
|
|
iGSFileVersion = 5;
|
|
InternReadFile_3DGS_MDL345();
|
|
InternReadFile_3DGS_MDL345();
|
|
}
|
|
}
|
|
// GameStudio A7 MDL7 format
|
|
// GameStudio A7 MDL7 format
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS7 == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS7 == iMagicWord) {
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_GS7 == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_GS7 == iMagicWord) {
|
|
- DefaultLogger::get()->debug("MDL subtype: 3D GameStudio A7, magic word is MDL7");
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG("MDL subtype: 3D GameStudio A7, magic word is MDL7");
|
|
iGSFileVersion = 7;
|
|
iGSFileVersion = 7;
|
|
InternReadFile_3DGS_MDL7();
|
|
InternReadFile_3DGS_MDL7();
|
|
}
|
|
}
|
|
@@ -225,7 +225,7 @@ void MDLImporter::InternReadFile( const std::string& pFile,
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_HL2a == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_HL2a == iMagicWord ||
|
|
else if (AI_MDL_MAGIC_NUMBER_BE_HL2a == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_HL2a == iMagicWord ||
|
|
AI_MDL_MAGIC_NUMBER_BE_HL2b == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_HL2b == iMagicWord)
|
|
AI_MDL_MAGIC_NUMBER_BE_HL2b == iMagicWord || AI_MDL_MAGIC_NUMBER_LE_HL2b == iMagicWord)
|
|
{
|
|
{
|
|
- DefaultLogger::get()->debug("MDL subtype: Source(tm) Engine, magic word is IDST/IDSQ");
|
|
|
|
|
|
+ ASSIMP_LOG_DEBUG("MDL subtype: Source(tm) Engine, magic word is IDST/IDSQ");
|
|
iGSFileVersion = 0;
|
|
iGSFileVersion = 0;
|
|
InternReadFile_HL2();
|
|
InternReadFile_HL2();
|
|
}
|
|
}
|
|
@@ -258,7 +258,7 @@ void MDLImporter::SizeCheck(const void* szPos)
|
|
}
|
|
}
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
-// Just for debgging purposes
|
|
|
|
|
|
+// Just for debugging purposes
|
|
void MDLImporter::SizeCheck(const void* szPos, const char* szFile, unsigned int iLine)
|
|
void MDLImporter::SizeCheck(const void* szPos, const char* szFile, unsigned int iLine)
|
|
{
|
|
{
|
|
ai_assert(NULL != szFile);
|
|
ai_assert(NULL != szFile);
|
|
@@ -298,20 +298,20 @@ void MDLImporter::ValidateHeader_Quake1(const MDL::Header* pcHeader)
|
|
if (!this->iGSFileVersion)
|
|
if (!this->iGSFileVersion)
|
|
{
|
|
{
|
|
if (pcHeader->num_verts > AI_MDL_MAX_VERTS)
|
|
if (pcHeader->num_verts > AI_MDL_MAX_VERTS)
|
|
- DefaultLogger::get()->warn("Quake 1 MDL model has more than AI_MDL_MAX_VERTS vertices");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Quake 1 MDL model has more than AI_MDL_MAX_VERTS vertices");
|
|
|
|
|
|
if (pcHeader->num_tris > AI_MDL_MAX_TRIANGLES)
|
|
if (pcHeader->num_tris > AI_MDL_MAX_TRIANGLES)
|
|
- DefaultLogger::get()->warn("Quake 1 MDL model has more than AI_MDL_MAX_TRIANGLES triangles");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Quake 1 MDL model has more than AI_MDL_MAX_TRIANGLES triangles");
|
|
|
|
|
|
if (pcHeader->num_frames > AI_MDL_MAX_FRAMES)
|
|
if (pcHeader->num_frames > AI_MDL_MAX_FRAMES)
|
|
- DefaultLogger::get()->warn("Quake 1 MDL model has more than AI_MDL_MAX_FRAMES frames");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Quake 1 MDL model has more than AI_MDL_MAX_FRAMES frames");
|
|
|
|
|
|
// (this does not apply for 3DGS MDLs)
|
|
// (this does not apply for 3DGS MDLs)
|
|
if (!this->iGSFileVersion && pcHeader->version != AI_MDL_VERSION)
|
|
if (!this->iGSFileVersion && pcHeader->version != AI_MDL_VERSION)
|
|
- DefaultLogger::get()->warn("Quake 1 MDL model has an unknown version: AI_MDL_VERSION (=6) is "
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Quake 1 MDL model has an unknown version: AI_MDL_VERSION (=6) is "
|
|
"the expected file format version");
|
|
"the expected file format version");
|
|
if(pcHeader->num_skins && (!pcHeader->skinwidth || !pcHeader->skinheight))
|
|
if(pcHeader->num_skins && (!pcHeader->skinwidth || !pcHeader->skinheight))
|
|
- DefaultLogger::get()->warn("Skin width or height are 0");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Skin width or height are 0");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -481,7 +481,7 @@ void MDLImporter::InternReadFile_Quake1() {
|
|
if (iIndex >= (unsigned int)pcHeader->num_verts)
|
|
if (iIndex >= (unsigned int)pcHeader->num_verts)
|
|
{
|
|
{
|
|
iIndex = pcHeader->num_verts-1;
|
|
iIndex = pcHeader->num_verts-1;
|
|
- DefaultLogger::get()->warn("Index overflow in Q1-MDL vertex list.");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in Q1-MDL vertex list.");
|
|
}
|
|
}
|
|
|
|
|
|
aiVector3D& vec = pcMesh->mVertices[iCurrent];
|
|
aiVector3D& vec = pcMesh->mVertices[iCurrent];
|
|
@@ -692,7 +692,7 @@ void MDLImporter::InternReadFile_3DGS_MDL345( )
|
|
unsigned int iIndex = pcTriangles->index_xyz[c];
|
|
unsigned int iIndex = pcTriangles->index_xyz[c];
|
|
if (iIndex >= (unsigned int)pcHeader->num_verts) {
|
|
if (iIndex >= (unsigned int)pcHeader->num_verts) {
|
|
iIndex = pcHeader->num_verts-1;
|
|
iIndex = pcHeader->num_verts-1;
|
|
- DefaultLogger::get()->warn("Index overflow in MDLn vertex list");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDLn vertex list");
|
|
}
|
|
}
|
|
|
|
|
|
aiVector3D& vec = pcMesh->mVertices[iCurrent];
|
|
aiVector3D& vec = pcMesh->mVertices[iCurrent];
|
|
@@ -747,7 +747,7 @@ void MDLImporter::InternReadFile_3DGS_MDL345( )
|
|
unsigned int iIndex = pcTriangles->index_xyz[c];
|
|
unsigned int iIndex = pcTriangles->index_xyz[c];
|
|
if (iIndex >= (unsigned int)pcHeader->num_verts) {
|
|
if (iIndex >= (unsigned int)pcHeader->num_verts) {
|
|
iIndex = pcHeader->num_verts-1;
|
|
iIndex = pcHeader->num_verts-1;
|
|
- DefaultLogger::get()->warn("Index overflow in MDLn vertex list");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDLn vertex list");
|
|
}
|
|
}
|
|
|
|
|
|
aiVector3D& vec = pcMesh->mVertices[iCurrent];
|
|
aiVector3D& vec = pcMesh->mVertices[iCurrent];
|
|
@@ -798,7 +798,7 @@ void MDLImporter::ImportUVCoordinate_3DGS_MDL345(
|
|
// validate UV indices
|
|
// validate UV indices
|
|
if (iIndex >= (unsigned int) pcHeader->synctype) {
|
|
if (iIndex >= (unsigned int) pcHeader->synctype) {
|
|
iIndex = pcHeader->synctype-1;
|
|
iIndex = pcHeader->synctype-1;
|
|
- DefaultLogger::get()->warn("Index overflow in MDLn UV coord list");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDLn UV coord list");
|
|
}
|
|
}
|
|
|
|
|
|
float s = (float)pcSrc[iIndex].u;
|
|
float s = (float)pcSrc[iIndex].u;
|
|
@@ -835,7 +835,7 @@ void MDLImporter::CalculateUVCoordinates_MDL5()
|
|
iWidth = (unsigned int)*piPtr;
|
|
iWidth = (unsigned int)*piPtr;
|
|
if (!iHeight || !iWidth)
|
|
if (!iHeight || !iWidth)
|
|
{
|
|
{
|
|
- DefaultLogger::get()->warn("Either the width or the height of the "
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Either the width or the height of the "
|
|
"embedded DDS texture is zero. Unable to compute final texture "
|
|
"embedded DDS texture is zero. Unable to compute final texture "
|
|
"coordinates. The texture coordinates remain in their original "
|
|
"coordinates. The texture coordinates remain in their original "
|
|
"0-x/0-y (x,y = texture size) range.");
|
|
"0-x/0-y (x,y = texture size) range.");
|
|
@@ -988,7 +988,7 @@ MDL::IntBone_MDL7** MDLImporter::LoadBones_3DGS_MDL7()
|
|
AI_MDL7_BONE_STRUCT_SIZE__NAME_IS_32_CHARS != pcHeader->bone_stc_size &&
|
|
AI_MDL7_BONE_STRUCT_SIZE__NAME_IS_32_CHARS != pcHeader->bone_stc_size &&
|
|
AI_MDL7_BONE_STRUCT_SIZE__NAME_IS_NOT_THERE != pcHeader->bone_stc_size)
|
|
AI_MDL7_BONE_STRUCT_SIZE__NAME_IS_NOT_THERE != pcHeader->bone_stc_size)
|
|
{
|
|
{
|
|
- DefaultLogger::get()->warn("Unknown size of bone data structure");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Unknown size of bone data structure");
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1026,7 +1026,7 @@ void MDLImporter::ReadFaces_3DGS_MDL7(const MDL::IntGroupInfo_MDL7& groupInfo,
|
|
if(iIndex > (unsigned int)groupInfo.pcGroup->numverts) {
|
|
if(iIndex > (unsigned int)groupInfo.pcGroup->numverts) {
|
|
// (we might need to read this section a second time - to process frame vertices correctly)
|
|
// (we might need to read this section a second time - to process frame vertices correctly)
|
|
pcGroupTris->v_index[c] = iIndex = groupInfo.pcGroup->numverts-1;
|
|
pcGroupTris->v_index[c] = iIndex = groupInfo.pcGroup->numverts-1;
|
|
- DefaultLogger::get()->warn("Index overflow in MDL7 vertex list");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDL7 vertex list");
|
|
}
|
|
}
|
|
|
|
|
|
// write the output face index
|
|
// write the output face index
|
|
@@ -1071,7 +1071,7 @@ void MDLImporter::ReadFaces_3DGS_MDL7(const MDL::IntGroupInfo_MDL7& groupInfo,
|
|
iIndex = pcGroupTris->skinsets[0].st_index[c];
|
|
iIndex = pcGroupTris->skinsets[0].st_index[c];
|
|
if(iIndex > (unsigned int)groupInfo.pcGroup->num_stpts) {
|
|
if(iIndex > (unsigned int)groupInfo.pcGroup->num_stpts) {
|
|
iIndex = groupInfo.pcGroup->num_stpts-1;
|
|
iIndex = groupInfo.pcGroup->num_stpts-1;
|
|
- DefaultLogger::get()->warn("Index overflow in MDL7 UV coordinate list (#1)");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDL7 UV coordinate list (#1)");
|
|
}
|
|
}
|
|
|
|
|
|
float u = groupInfo.pcGroupUVs[iIndex].u;
|
|
float u = groupInfo.pcGroupUVs[iIndex].u;
|
|
@@ -1098,7 +1098,7 @@ void MDLImporter::ReadFaces_3DGS_MDL7(const MDL::IntGroupInfo_MDL7& groupInfo,
|
|
iIndex = pcGroupTris->skinsets[1].st_index[c];
|
|
iIndex = pcGroupTris->skinsets[1].st_index[c];
|
|
if(iIndex > (unsigned int)groupInfo.pcGroup->num_stpts) {
|
|
if(iIndex > (unsigned int)groupInfo.pcGroup->num_stpts) {
|
|
iIndex = groupInfo.pcGroup->num_stpts-1;
|
|
iIndex = groupInfo.pcGroup->num_stpts-1;
|
|
- DefaultLogger::get()->warn("Index overflow in MDL7 UV coordinate list (#2)");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDL7 UV coordinate list (#2)");
|
|
}
|
|
}
|
|
|
|
|
|
float u = groupInfo.pcGroupUVs[ iIndex ].u;
|
|
float u = groupInfo.pcGroupUVs[ iIndex ].u;
|
|
@@ -1153,7 +1153,7 @@ bool MDLImporter::ProcessFrames_3DGS_MDL7(const MDL::IntGroupInfo_MDL7& groupInf
|
|
frame.pcFrame->transmatrix_count * pcHeader->bonetrans_stc_size;
|
|
frame.pcFrame->transmatrix_count * pcHeader->bonetrans_stc_size;
|
|
|
|
|
|
if (((const char*)szCurrent - (const char*)pcHeader) + iAdd > (unsigned int)pcHeader->data_size) {
|
|
if (((const char*)szCurrent - (const char*)pcHeader) + iAdd > (unsigned int)pcHeader->data_size) {
|
|
- DefaultLogger::get()->warn("Index overflow in frame area. "
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in frame area. "
|
|
"Ignoring all frames and all further mesh groups, too.");
|
|
"Ignoring all frames and all further mesh groups, too.");
|
|
|
|
|
|
// don't parse more groups if we can't even read one
|
|
// don't parse more groups if we can't even read one
|
|
@@ -1171,7 +1171,7 @@ bool MDLImporter::ProcessFrames_3DGS_MDL7(const MDL::IntGroupInfo_MDL7& groupInf
|
|
uint16_t iIndex = _AI_MDL7_ACCESS(pcFrameVertices,qq,pcHeader->framevertex_stc_size,MDL::Vertex_MDL7).vertindex;
|
|
uint16_t iIndex = _AI_MDL7_ACCESS(pcFrameVertices,qq,pcHeader->framevertex_stc_size,MDL::Vertex_MDL7).vertindex;
|
|
AI_SWAP2(iIndex);
|
|
AI_SWAP2(iIndex);
|
|
if (iIndex >= groupInfo.pcGroup->numverts) {
|
|
if (iIndex >= groupInfo.pcGroup->numverts) {
|
|
- DefaultLogger::get()->warn("Invalid vertex index in frame vertex section");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Invalid vertex index in frame vertex section");
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1257,7 +1257,7 @@ void MDLImporter::SortByMaterials_3DGS_MDL7(
|
|
// sometimes MED writes -1, but normally only if there is only
|
|
// sometimes MED writes -1, but normally only if there is only
|
|
// one skin assigned. No warning in this case
|
|
// one skin assigned. No warning in this case
|
|
if(0xFFFFFFFF != groupData.pcFaces[iFace].iMatIndex[0])
|
|
if(0xFFFFFFFF != groupData.pcFaces[iFace].iMatIndex[0])
|
|
- DefaultLogger::get()->warn("Index overflow in MDL7 material list [#0]");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDL7 material list [#0]");
|
|
}
|
|
}
|
|
else splitGroupData.aiSplit[groupData.pcFaces[iFace].
|
|
else splitGroupData.aiSplit[groupData.pcFaces[iFace].
|
|
iMatIndex[0]]->push_back(iFace);
|
|
iMatIndex[0]]->push_back(iFace);
|
|
@@ -1282,7 +1282,7 @@ void MDLImporter::SortByMaterials_3DGS_MDL7(
|
|
// sometimes MED writes -1, but normally only if there is only
|
|
// sometimes MED writes -1, but normally only if there is only
|
|
// one skin assigned. No warning in this case
|
|
// one skin assigned. No warning in this case
|
|
if(UINT_MAX != iMatIndex)
|
|
if(UINT_MAX != iMatIndex)
|
|
- DefaultLogger::get()->warn("Index overflow in MDL7 material list [#1]");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDL7 material list [#1]");
|
|
iMatIndex = iNumMaterials-1;
|
|
iMatIndex = iNumMaterials-1;
|
|
}
|
|
}
|
|
unsigned int iMatIndex2 = groupData.pcFaces[iFace].iMatIndex[1];
|
|
unsigned int iMatIndex2 = groupData.pcFaces[iFace].iMatIndex[1];
|
|
@@ -1292,7 +1292,7 @@ void MDLImporter::SortByMaterials_3DGS_MDL7(
|
|
if (iMatIndex2 >= iNumMaterials) {
|
|
if (iMatIndex2 >= iNumMaterials) {
|
|
// sometimes MED writes -1, but normally only if there is only
|
|
// sometimes MED writes -1, but normally only if there is only
|
|
// one skin assigned. No warning in this case
|
|
// one skin assigned. No warning in this case
|
|
- DefaultLogger::get()->warn("Index overflow in MDL7 material list [#2]");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in MDL7 material list [#2]");
|
|
iMatIndex2 = iNumMaterials-1;
|
|
iMatIndex2 = iNumMaterials-1;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1414,7 +1414,7 @@ void MDLImporter::InternReadFile_3DGS_MDL7( )
|
|
|
|
|
|
if (1 != groupInfo.pcGroup->typ) {
|
|
if (1 != groupInfo.pcGroup->typ) {
|
|
// Not a triangle-based mesh
|
|
// Not a triangle-based mesh
|
|
- DefaultLogger::get()->warn("[3DGS MDL7] Not a triangle mesh group. Continuing happily");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("[3DGS MDL7] Not a triangle mesh group. Continuing happily");
|
|
}
|
|
}
|
|
|
|
|
|
// store the name of the group
|
|
// store the name of the group
|
|
@@ -1516,7 +1516,7 @@ void MDLImporter::InternReadFile_3DGS_MDL7( )
|
|
sharedData.abNeedMaterials[qq] = true;
|
|
sharedData.abNeedMaterials[qq] = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- else DefaultLogger::get()->warn("[3DGS MDL7] Mesh group consists of 0 "
|
|
|
|
|
|
+ else ASSIMP_LOG_WARN("[3DGS MDL7] Mesh group consists of 0 "
|
|
"vertices or faces. It will be skipped.");
|
|
"vertices or faces. It will be skipped.");
|
|
|
|
|
|
// process all frames and generate output meshes
|
|
// process all frames and generate output meshes
|
|
@@ -1664,7 +1664,7 @@ void MDLImporter::ParseBoneTrafoKeys_3DGS_MDL7(
|
|
// read all transformation matrices
|
|
// read all transformation matrices
|
|
for (unsigned int iTrafo = 0; iTrafo < frame.pcFrame->transmatrix_count;++iTrafo) {
|
|
for (unsigned int iTrafo = 0; iTrafo < frame.pcFrame->transmatrix_count;++iTrafo) {
|
|
if(pcBoneTransforms->bone_index >= pcHeader->bones_num) {
|
|
if(pcBoneTransforms->bone_index >= pcHeader->bones_num) {
|
|
- DefaultLogger::get()->warn("Index overflow in frame area. "
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Index overflow in frame area. "
|
|
"Unable to parse this bone transformation");
|
|
"Unable to parse this bone transformation");
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -1676,7 +1676,7 @@ void MDLImporter::ParseBoneTrafoKeys_3DGS_MDL7(
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- DefaultLogger::get()->warn("Ignoring animation keyframes in groups != 0");
|
|
|
|
|
|
+ ASSIMP_LOG_WARN("Ignoring animation keyframes in groups != 0");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1894,7 +1894,7 @@ void MDLImporter::GenerateOutputMeshes_3DGS_MDL7(
|
|
unsigned int iBone = groupData.aiBones[ oldFace.mIndices[c] ];
|
|
unsigned int iBone = groupData.aiBones[ oldFace.mIndices[c] ];
|
|
if (UINT_MAX != iBone) {
|
|
if (UINT_MAX != iBone) {
|
|
if (iBone >= iNumOutBones) {
|
|
if (iBone >= iNumOutBones) {
|
|
- DefaultLogger::get()->error("Bone index overflow. "
|
|
|
|
|
|
+ ASSIMP_LOG_ERROR("Bone index overflow. "
|
|
"The bone index of a vertex exceeds the allowed range. ");
|
|
"The bone index of a vertex exceeds the allowed range. ");
|
|
iBone = iNumOutBones-1;
|
|
iBone = iNumOutBones-1;
|
|
}
|
|
}
|