Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 14, 2005, 8:57:25 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: debug information in importer set like they should be

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/objModel.cc

    r3475 r3548  
    8686bool OBJModel::importFile (char* fileName)
    8787{
    88   PRINTF(3)("preparing to read in file: %s\n", fileName);
     88  PRINTF(4)("preparing to read in file: %s\n", fileName);
    8989
    9090
     
    107107  strncpy(this->objPath, fileName, name-fileName);
    108108  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);
    114113 
    115114  this->setName(name);
     
    144143      return false;
    145144    }
    146   PRINTF(2)("Reading from opened file %s\n", fileName);
     145  PRINTF(4)("Reading from opened file %s\n", fileName);
    147146  char Buffer[10000];
    148147  while(!OBJ_FILE->eof())
    149148    {
    150149      OBJ_FILE->getline(Buffer, 10000);
    151       PRINTF(3)("Read input line: %s\n", Buffer);
     150      PRINTF(5)("Read input line: %s\n", Buffer);
    152151     
    153152
     
    192191      else if (!strncmp(Buffer, "s ", 2)) //! \todo smoothing groups have to be implemented
    193192        {
    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);
    196194        }
    197195    }
     
    221219 
    222220
    223   PRINTF(3)("Opening mtlFile: %s\n", fileName);
     221  PRINTF(4)("Opening mtlFile: %s\n", fileName);
    224222
    225223  ifstream* MTL_FILE = new ifstream (fileName);
    226224  if (MTL_FILE->fail())
    227225    {
    228       PRINTF(1)("unable to open file: %s\n", fileName);
     226      PRINTF(2)("unable to open file: %s\n", fileName);
    229227      MTL_FILE->close();
    230228      delete []fileName;
     
    237235    {
    238236      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);
    240238     
    241239
Note: See TracChangeset for help on using the changeset viewer.