Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4371 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
May 28, 2005, 9:37:16 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: material should now be loadable in the importer-test-class

Location:
orxonox/trunk/src/lib/graphics/importer
Files:
2 edited

Legend:

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

    r4370 r4371  
    8383 
    8484  // setting the transparency
    85   /*
    8685  if (this->transparency < 1.0)
    8786    {
     
    9594      glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
    9695    }
    97   */
     96
    9897
    9998  // setting illumination Model
  • orxonox/trunk/src/lib/graphics/importer/objModel.cc

    r4370 r4371  
    7575      strncpy(this->objPath, fileName, len);
    7676      this->objPath[len] = '\0';
    77       Material::addTexturePath(this->objPath);
    7877      PRINTF(1)("Resolved file %s to Path %s.\n", fileName, this->objPath);
    7978    }
     79  else
     80    this->objPath = "./";
     81  Material::addTexturePath(this->objPath);
     82
    8083  this->readFromObjFile (fileName);
    8184  return true;
Note: See TracChangeset for help on using the changeset viewer.