Changeset 3548 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/objModel.cc
- Timestamp:
- Mar 14, 2005, 8:57:25 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/objModel.cc
r3475 r3548 86 86 bool OBJModel::importFile (char* fileName) 87 87 { 88 PRINTF( 3)("preparing to read in file: %s\n", fileName);88 PRINTF(4)("preparing to read in file: %s\n", fileName); 89 89 90 90 … … 107 107 strncpy(this->objPath, fileName, name-fileName); 108 108 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); 109 if (strlen(objPath)> 0) 110 PRINTF(5)("Resolved file %s to folder: %s.\n", name, objPath); 111 else 112 PRINTF(5)("Resolved file %s.\n", name); 114 113 115 114 this->setName(name); … … 144 143 return false; 145 144 } 146 PRINTF( 2)("Reading from opened file %s\n", fileName);145 PRINTF(4)("Reading from opened file %s\n", fileName); 147 146 char Buffer[10000]; 148 147 while(!OBJ_FILE->eof()) 149 148 { 150 149 OBJ_FILE->getline(Buffer, 10000); 151 PRINTF( 3)("Read input line: %s\n", Buffer);150 PRINTF(5)("Read input line: %s\n", Buffer); 152 151 153 152 … … 192 191 else if (!strncmp(Buffer, "s ", 2)) //! \todo smoothing groups have to be implemented 193 192 { 194 if (verbose >= 2) 195 PRINTF(2)("smoothing groups not supportet yet. line: %s\n", Buffer); 193 PRINTF(3)("smoothing groups not supportet yet. line: %s\n", Buffer); 196 194 } 197 195 } … … 221 219 222 220 223 PRINTF( 3)("Opening mtlFile: %s\n", fileName);221 PRINTF(4)("Opening mtlFile: %s\n", fileName); 224 222 225 223 ifstream* MTL_FILE = new ifstream (fileName); 226 224 if (MTL_FILE->fail()) 227 225 { 228 PRINTF( 1)("unable to open file: %s\n", fileName);226 PRINTF(2)("unable to open file: %s\n", fileName); 229 227 MTL_FILE->close(); 230 228 delete []fileName; … … 237 235 { 238 236 MTL_FILE->getline(Buffer, 500); 239 PRINTF( 4)("found line in mtlFile: %s\n", Buffer);237 PRINTF(5)("found line in mtlFile: %s\n", Buffer); 240 238 241 239
Note: See TracChangeset
for help on using the changeset viewer.