Changeset 10090 in orxonox.OLD for branches/mount_points
- Timestamp:
- Dec 18, 2006, 12:13:47 PM (18 years ago)
- Location:
- branches/mount_points/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/obj/objModel.cc
r10070 r10090 44 44 45 45 this->finalize(); 46 47 this->extractMountPoints(); 46 48 } 47 49 -
branches/mount_points/src/lib/graphics/importer/oif/resource_oif.cc
r10059 r10090 33 33 else 34 34 { 35 PRINTF( 0)("NOT FOUND OIF: %s\n", fileName.c_str());35 PRINTF(4)("NOT FOUND OIF: %s\n", fileName.c_str()); 36 36 // std::string modelFileName = this->Resource::locateFile(modelName); 37 37 // //std::string skinFileName = this->Resource::locateFile(skinName); -
branches/mount_points/src/lib/graphics/importer/static_model.cc
r10089 r10090 105 105 for( ; groupPtr != NULL; groupPtr = groupPtr->next) 106 106 { 107 //PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str()); 108 107 109 // get the name of this group and check if it's a mout point identifier 108 110 std::string groupName = groupPtr->name; 109 111 if( groupName.find("MP.", 0) != std::string::npos) 110 {} 112 { 113 PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str()); 114 115 } 111 116 } 112 117 } -
branches/mount_points/src/lib/graphics/importer/static_model_data.cc
r10089 r10090 368 368 bool StaticModelData::addGroup(const std::string& groupString) 369 369 { 370 PRINTF( 0)("Read Group: %s.\n", groupString.c_str());370 PRINTF(4)("Read Group: %s.\n", groupString.c_str()); 371 371 if (this->groupCount != 0 && this->currentGroup->faceCount > 0) 372 372 { -
branches/mount_points/src/world_entities/npcs/npc_test.cc
r9869 r10090 39 39 this->registerObject(this, NPC2::_objectList); 40 40 41 if ((float)rand()/RAND_MAX > .5f)42 this->loadModel("models/ships/bolido.obj", 6);43 else44 this->loadModel("models/ships/gobblin.obj", 6);41 // if ((float)rand()/RAND_MAX > .5f) 42 // this->loadModel("models/ships/bolido.obj", 6); 43 // else 44 // this->loadModel("models/ships/gobblin.obj", 6); 45 45 46 46 … … 84 84 * Just override this function with whatever you want to be drawn. 85 85 */ 86 void NPC2::draw() const 87 { 88 glMatrixMode(GL_MODELVIEW); 89 glPushMatrix(); 90 float matrix[4][4]; 91 92 /* translate */ 93 glTranslatef (this->getAbsCoor ().x, 94 this->getAbsCoor ().y, 95 this->getAbsCoor ().z); 96 /* rotate */ 97 this->getAbsDir ().matrix (matrix); 98 glMultMatrixf((float*)matrix); 99 100 // if (this->shader != NULL && this->shader != Shader::getActiveShader()) 101 // shader->activateShader(); 102 103 this->getModel()->draw(); 104 // shader->deactivateShader(); 105 106 107 /* if (this->model) 108 this->model->draw();*/ 109 glPopMatrix(); 110 } 86 // void NPC2::draw() const 87 // { 88 // glMatrixMode(GL_MODELVIEW); 89 // glPushMatrix(); 90 // float matrix[4][4]; 91 // 92 // /* translate */ 93 // glTranslatef (this->getAbsCoor ().x, 94 // this->getAbsCoor ().y, 95 // this->getAbsCoor ().z); 96 // /* rotate */ 97 // this->getAbsDir ().matrix (matrix); 98 // glMultMatrixf((float*)matrix); 99 // 100 // // if (this->shader != NULL && this->shader != Shader::getActiveShader()) 101 // // shader->activateShader(); 102 // 103 // if( this->getModel()) 104 // this->getModel()->draw(); 105 // // shader->deactivateShader(); 106 // 107 // 108 // /* if (this->model) 109 // this->model->draw();*/ 110 // glPopMatrix(); 111 // } 111 112 112 113 -
branches/mount_points/src/world_entities/npcs/npc_test.h
r9869 r10090 22 22 23 23 virtual void tick(float dt); 24 virtual void draw() const;24 // virtual void draw() const; 25 25 26 26 private: -
branches/mount_points/src/world_entities/world_entity.cc
r10059 r10090 271 271 void WorldEntity::loadObjectInformationFile(const std::string& fileName) 272 272 { 273 PRINTF( 0)("loading the oif File: %s\n", fileName.c_str());273 PRINTF(4)("loading the oif File: %s\n", fileName.c_str()); 274 274 275 275 this->oiFile = new ObjectInformationFile(fileName);
Note: See TracChangeset
for help on using the changeset viewer.