- Timestamp:
- Jun 16, 2006, 3:21:30 PM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
r8524 r8533 50 50 BspManager::BspManager(WorldEntity* parent) 51 51 { 52 52 53 53 this->parent = parent; 54 54 /*// open a BSP file … … 937 937 void BspManager::checkCollision(WorldEntity* worldEntity) 938 938 { 939 939 940 940 this->outputStartsOut = true; 941 941 this->outputAllSolid = false; 942 942 this->outputFraction = 1.0f; 943 943 944 944 945 945 … … 976 976 977 977 float height = 40; 978 978 979 979 this->inputStart = position; 980 980 this->inputEnd = dest; 981 981 this->checkCollisionRayN(this->root,0.0f,1.0f, &position, &dest ); 982 982 983 PRINTF(0)(" checking collision: %s, solid = %i, fraction = %f\n", worldEntity->getClassName(), this->outputAllSolid, this->outputFraction);984 PRINTF(0)("checking collision!! Pos.Coords: %f , %f , %f\n", position.x , position.y, position.z);985 PRINTF(0)("checking collision!! Dest.Coords: %f , %f , %f\n", dest.x , dest.y, dest.z); 983 // PRINTF(0)(" checking collision: %s, solid = %i, fraction = %f\n", worldEntity->getClassName(), this->outputAllSolid, this->outputFraction); 984 // PRINTF(0)("checking collision!! Pos.Coords: %f , %f , %f\n", position.x , position.y, position.z); 985 // PRINTF(0)("checking collision!! Dest.Coords: %f , %f , %f\n", dest.x , dest.y, dest.z); 986 986 // position1.debug(); 987 987 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.cc
r8532 r8533 44 44 if( !this->dataStream) { 45 45 PRINTF(1)("Error: file could not be opened: %s\n", filename.c_str()); 46 return; 46 47 } 48 49 this->loadConfig(filename); 47 50 } 48 51 … … 58 61 * loads the configuration file 59 62 */ 60 void MD3AnimationCfg::loadConfig( )63 void MD3AnimationCfg::loadConfig(std::string filename) 61 64 { 62 65 // BufferedReader bin=new BufferedReader(new InputStreamReader(in)); … … 90 93 tokens.pop_back(); 91 94 } 92 return; 95 96 this->dataStream.getline(buffer, 1024, '\n'); 97 std::string line(buffer); 98 } 99 } 100 } 93 101 /* 94 102 st.nextToken(); //throw away first token … … 160 168 throw new IOException(e.getMessage()); 161 169 }*/ 162 } 163 } 164 } 170 165 171 } 166 172 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_animation_cfg.h
r8532 r8533 35 35 virtual ~MD3AnimationCfg(); 36 36 37 void loadConfig( );37 void loadConfig(std::string filename); 38 38 39 39 std::string toString() { return std::string("Name: " + this->filename); } -
branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc
r8490 r8533 19 19 #include "md3_data.h" 20 20 21 #include "md3_animation_cfg.h" 21 22 22 23 namespace md3 … … 29 30 { 30 31 this->md3Data = new MD3Data(filename, filename, scaling); 32 33 MD3AnimationCfg cfg("/home/boenzlip/tmp/q3/Downloads/MOH/q3mdl-alien3/models/players/alien3/animation.cfg"); 31 34 } 32 35
Note: See TracChangeset
for help on using the changeset viewer.