- Timestamp:
- Jun 29, 2006, 12:12:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/graphics/importer/bsp_file.cc
r8490 r8893 214 214 bspFile.read(this->visData, size); 215 215 216 PRINTF( 0)("BSP FILE: VisDataSize: %i Bytes. \n", size);217 PRINTF( 0)("BSP FILE: NumVisData: %i. \n", size /1 - 8);218 PRINTF( 0)("BSP FILE: Remainder: %i. \n", size % 1);219 PRINTF( 0)("BSP FILE: VisDataOffset: %i. \n", offset);216 PRINTF(4)("BSP FILE: VisDataSize: %i Bytes. \n", size); 217 PRINTF(4)("BSP FILE: NumVisData: %i. \n", size /1 - 8); 218 PRINTF(4)("BSP FILE: Remainder: %i. \n", size % 1); 219 PRINTF(4)("BSP FILE: VisDataOffset: %i. \n", offset); 220 220 221 221 // Get the Textures … … 298 298 this->VertexArrayModels = new VertexArrayModel*[this->numPatches]; 299 299 300 PRINTF( 0)("BSP FILE:NumberOfPatches: %i . \n", numPatches);300 PRINTF(4)("BSP FILE:NumberOfPatches: %i . \n", numPatches); 301 301 302 302 this->swapAllBspCoordinates(); … … 308 308 } 309 309 310 PRINTF( 0)("BSP FILE:PatchOffset: %i . \n", this->patchOffset);310 PRINTF(4)("BSP FILE:PatchOffset: %i . \n", this->patchOffset); 311 311 312 312 return 1; 313 313 } else { 314 PRINTF( 0)("BSP FILE: Datei nicht gefunden. \n");314 PRINTF(4)("BSP FILE: Datei nicht gefunden. \n"); 315 315 return -1; 316 316 } … … 323 323 { 324 324 325 PRINTF( 0)("BSP FILE:\n");326 PRINTF( 0)("BSP FILE: Building Tree...\n");325 PRINTF(4)("BSP FILE:\n"); 326 PRINTF(4)("BSP FILE: Building Tree...\n"); 327 327 root = this->build_tree_rec(0); 328 PRINTF( 0)("BSP FILE: ...done. \n");329 PRINTF( 0)("BSP FILE: \n");330 PRINTF( 0)("BSP FILE: Node #0: \n");331 PRINTF( 0)("BSP FILE: x: %f \n",root->plane.x);332 PRINTF( 0)("BSP FILE: y: %f\n",root->plane.y);333 PRINTF( 0)("BSP FILE: z: %f\n",root->plane.z);328 PRINTF(4)("BSP FILE: ...done. \n"); 329 PRINTF(4)("BSP FILE: \n"); 330 PRINTF(4)("BSP FILE: Node #0: \n"); 331 PRINTF(4)("BSP FILE: x: %f \n",root->plane.x); 332 PRINTF(4)("BSP FILE: y: %f\n",root->plane.y); 333 PRINTF(4)("BSP FILE: z: %f\n",root->plane.z); 334 334 } 335 335 … … 400 400 this->Materials = new AMat[this->numTextures]; 401 401 for(int i = 0 ; i < this->numTextures; i++) { 402 PRINTF( 0)("BSP FILE: Texture : %s. \n", &this->textures[8+ 72*i]);402 PRINTF(4)("BSP FILE: Texture : %s. \n", &this->textures[8+ 72*i]); 403 403 404 404 … … 429 429 strncat (fileName, ext, strlen(fileName) ); 430 430 431 PRINTF( 0)("BSP FILE: Name %s . \n", fileName);431 PRINTF(4)("BSP FILE: Name %s . \n", fileName); 432 432 433 433 absFileName = ResourceManager::getFullName(fileName); 434 434 435 435 if(File(absFileName).exists()) { 436 PRINTF( 0)("BSP FILE: gefunden . \n");436 PRINTF(4)("BSP FILE: gefunden . \n"); 437 437 this->Materials[i] = this->loadAVI(fileName); 438 438 continue; … … 449 449 450 450 if(File(absFileName).exists()) { 451 PRINTF( 0)("BSP FILE: gefunden . \n");451 PRINTF(4)("BSP FILE: gefunden . \n"); 452 452 this->Materials[i] = this->loadAVI(fileName); 453 453 continue; … … 479 479 480 480 if(File(absFileName).exists()) { 481 PRINTF( 0)("BSP FILE: gefunden . \n");481 PRINTF(4)("BSP FILE: gefunden . \n"); 482 482 this->Materials[i] = this->loadMat(fileName); 483 483 continue; … … 492 492 493 493 if(File(absFileName).exists()/*stat( absFileName.c_str() , &results) == 0*/) { 494 PRINTF( 0)("BSP FILE: gefunden . \n");494 PRINTF(4)("BSP FILE: gefunden . \n"); 495 495 this->Materials[i] = this->loadMat(fileName); 496 496 continue; … … 504 504 absFileName = ResourceManager::getFullName(fileName); 505 505 if(File(absFileName).exists()) { 506 PRINTF( 0)("BSP FILE: gefunden . \n");506 PRINTF(4)("BSP FILE: gefunden . \n"); 507 507 this->Materials[i] =this->loadMat(fileName); 508 508 continue; … … 518 518 absFileName = ResourceManager::getFullName(fileName); 519 519 if(File(absFileName).exists()) { 520 PRINTF( 0)("BSP FILE: gefunden . \n");520 PRINTF(4)("BSP FILE: gefunden . \n"); 521 521 this->Materials[i] =this->loadMat(fileName); 522 522 continue; … … 534 534 535 535 if(File(absFileName).exists()) { 536 PRINTF( 0)("BSP FILE: gefunden . \n");536 PRINTF(4)("BSP FILE: gefunden . \n"); 537 537 this->Materials[i] =this->loadMat(fileName); 538 538 continue; … … 548 548 549 549 if(File(absFileName).exists()) { 550 PRINTF( 0)("BSP FILE: gefunden . \n");550 PRINTF(4)("BSP FILE: gefunden . \n"); 551 551 this->Materials[i] = this->loadMat(fileName); 552 552 continue; 553 553 } 554 554 555 555 PRINTF(0)("BSP FILE: Textur %s nicht gefunden . \n", &this->textures[8+72*i]); 556 556 // Default Material 557 557 this->Materials[i].mat = new Material(); … … 1012 1012 Face->meshvert = patchOffset -sz; //3*(patchOffset-sz)*level1*level1; 1013 1013 Face->n_meshverts = sz; 1014 PRINTF( 0)("BSP FILE: sz: %i. \n", sz);1015 PRINTF( 0)("BSP FILE: Face->meshvert %i . \n", Face->meshvert);1014 PRINTF(4)("BSP FILE: sz: %i. \n", sz); 1015 PRINTF(4)("BSP FILE: Face->meshvert %i . \n", Face->meshvert); 1016 1016 1017 1017 //Face->n_meshverts = sz;
Note: See TracChangeset
for help on using the changeset viewer.