Changeset 1511 for code/trunk/src/orxonox/objects
- Timestamp:
- Jun 1, 2008, 5:42:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Model.cc
r1505 r1511 84 84 this->attachObject(this->mesh_.getEntity()); 85 85 86 //HACK!!87 /*if ((this->meshSrc_ == "assff.mesh") || (this->meshSrc_ == "ast1.mesh") || (this->meshSrc_ == "ast2.mesh") || (this->meshSrc_ == "ast3.mesh") || (this->meshSrc_ == "ast4.mesh") ||(this->meshSrc_ == "ast5.mesh") || (this->meshSrc_ == "ast6.mesh"))88 {89 Ogre::MeshPtr pMesh = this->mesh_.getEntity()->getMesh();90 //set Mesh to tangentspace91 unsigned short src, dest;92 if (!pMesh->suggestTangentVectorBuildParams(Ogre::VES_TANGENT, src, dest))93 {94 pMesh->buildTangentVectors(Ogre::VES_TANGENT, src, dest);95 }96 if ((this->meshSrc_ == "assff.mesh"))97 {98 (this->mesh_.getEntity())->setMaterialName("Assff/BumpMap");99 }100 else101 {102 (this->mesh_.getEntity())->setMaterialName("Asteroid/BumpMap");103 }104 105 106 }*/107 86 COUT(4) << "Loader (Model.cc): Created model" << std::endl; 108 87 }
Note: See TracChangeset
for help on using the changeset viewer.