Changeset 8590 in orxonox.OLD for branches/bsp_model/src/lib/graphics
- Timestamp:
- Jun 19, 2006, 10:48:45 PM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer/md3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8579 r8590 374 374 std::string path1(tex[i].fileName); 375 375 std::string fullPath( path + path1); 376 this->meshes[mesh]->material[i].setDiffuseMap(/*tex[i].fileName*/ /*fullPath.c_str()*/ "maps/ yuri.tga");376 this->meshes[mesh]->material[i].setDiffuseMap(/*tex[i].fileName*/ /*fullPath.c_str()*/ "maps/creatures/gork/gorkup.tga"); 377 377 this->meshes[mesh]->material[i].setAmbient(1, 1, 1); 378 378 } -
branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc
r8581 r8590 27 27 #include "quaternion.h" 28 28 29 #include "loading/resource_manager.h" 30 29 31 #include "debug.h" 30 32 … … 37 39 MD3Model::MD3Model(std::string filename, float scaling) 38 40 { 39 40 41 this->autoAssemblePlayerModel(filename, scaling); 41 42 … … 74 75 /** 75 76 * auto assemples a player model 77 * @param filename is the name to the directory of the modelzzzzzz 76 78 */ 77 79 void MD3Model::autoAssemblePlayerModel(std::string filename, float scaling) 78 80 { 79 this->md3Data = new MD3Data(filename, filename, scaling);81 // this->md3Data = new MD3Data(filename, filename, scaling); 80 82 // MD3AnimationCfg cfg("/home/boenzlip/tmp/q3/Downloads/MOH/q3mdl-alien3/models/players/alien3/animation.cfg"); 83 84 85 //first load the torso 86 std::string name(filename + "/upper.md3"); 87 PRINTF(0)("data dir: %s\n", ResourceManager::getInstance()->getFullName(name).c_str()); 88 89 // this->md3Data = new MD3Data(name, name, scaling); 90 this->md3Data = (MD3Data*)ResourceManager::getInstance()->load(name, MD3, RP_GAME, name, scaling); 91 81 92 82 93
Note: See TracChangeset
for help on using the changeset viewer.