Changeset 3605 in orxonox.OLD for orxonox/branches/levelloader/src/lib/graphics/importer/objModel.cc
- Timestamp:
- Mar 18, 2005, 11:52:15 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/graphics/importer/objModel.cc
r3542 r3605 13 13 co-programmer: ... 14 14 */ 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_IMPORTER 15 17 16 18 #include "objModel.h" … … 86 88 bool OBJModel::importFile (const char* fileName) 87 89 { 88 PRINTF( 3)("preparing to read in file: %s\n", fileName);90 PRINTF(4)("preparing to read in file: %s\n", fileName); 89 91 90 92 … … 107 109 strncpy(this->objPath, fileName, name-fileName); 108 110 this->objPath[name-fileName] = '\0'; 109 if (verbose>=2) 110 if (strlen(objPath)> 0) 111 PRINTF(0)("Resolved file %s to folder: %s.\n", name, objPath); 112 else 113 PRINTF(0)("Resolved file %s.\n", name); 111 if (strlen(objPath)> 0) 112 PRINTF(5)("Resolved file %s to folder: %s.\n", name, objPath); 113 else 114 PRINTF(5)("Resolved file %s.\n", name); 114 115 115 116 this->setName(name); … … 144 145 return false; 145 146 } 146 PRINTF( 2)("Reading from opened file %s\n", fileName);147 PRINTF(4)("Reading from opened file %s\n", fileName); 147 148 char Buffer[10000]; 148 149 while(!OBJ_FILE->eof()) 149 150 { 150 151 OBJ_FILE->getline(Buffer, 10000); 151 PRINTF( 3)("Read input line: %s\n", Buffer);152 PRINTF(5)("Read input line: %s\n", Buffer); 152 153 153 154 … … 192 193 else if (!strncmp(Buffer, "s ", 2)) //! \todo smoothing groups have to be implemented 193 194 { 194 if (verbose >= 2) 195 PRINTF(2)("smoothing groups not supportet yet. line: %s\n", Buffer); 195 PRINTF(3)("smoothing groups not supportet yet. line: %s\n", Buffer); 196 196 } 197 197 } … … 221 221 222 222 223 PRINTF( 3)("Opening mtlFile: %s\n", fileName);223 PRINTF(4)("Opening mtlFile: %s\n", fileName); 224 224 225 225 ifstream* MTL_FILE = new ifstream (fileName); 226 226 if (MTL_FILE->fail()) 227 227 { 228 PRINTF( 1)("unable to open file: %s\n", fileName);228 PRINTF(2)("unable to open file: %s\n", fileName); 229 229 MTL_FILE->close(); 230 230 delete []fileName; … … 237 237 { 238 238 MTL_FILE->getline(Buffer, 500); 239 PRINTF( 4)("found line in mtlFile: %s\n", Buffer);239 PRINTF(5)("found line in mtlFile: %s\n", Buffer); 240 240 241 241
Note: See TracChangeset
for help on using the changeset viewer.