Changeset 9235 in orxonox.OLD for trunk/src/lib/graphics/importer
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (18 years ago)
- Location:
- trunk/src/lib/graphics/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/bsp_manager.cc
r9110 r9235 53 53 { 54 54 55 this->lastTex = -1; 55 56 this->parent = parent; 56 57 /*// open a BSP file … … 101 102 return 0; 102 103 } 104 105 103 106 /* 104 107 BspManager::BspManager(const char* fileName, float scale) … … 270 273 const float dMaxs = dir.x*(float)curLeaf.maxs[0] +dir.y*(float)curLeaf.maxs[1] +dir.z*(float)curLeaf.maxs[2] - dist; 271 274 272 if(dMins < - 50.0 && dMaxs < - 50.0) {275 if(dMins < -70.0 && dMaxs < -70.0) { 273 276 continue; 274 277 } … … 1371 1374 else 1372 1375 { 1373 if( this->outputFraction == 1.0f) 1376 if( this->outputFraction == 1.0f) // No collision Detected 1374 1377 { 1375 if( this->outputAllSolid ) 1378 if( this->outputAllSolid ) 1376 1379 { 1377 1380 this->collPlane = new plane; … … 1382 1385 SolidFlag = true; 1383 1386 } 1384 else 1387 else // No collision happened 1385 1388 { 1386 1389 yCollisionDown = false; … … 1388 1391 } 1389 1392 } 1390 else 1393 else // A collision has happended 1391 1394 { 1392 1395 yCollisionDown = true; 1393 1396 collPos = position + (down - position) * this->outputFraction; 1394 this->out = collPos; // why this????1395 1397 } 1396 1398 } -
trunk/src/lib/graphics/importer/md2/md2Model.cc
r9003 r9235 40 40 41 41 //! list of all different animations a std md2model supports 42 sAnim MD2Model::animationList[2 1] =42 sAnim MD2Model::animationList[22] = 43 43 { 44 44 // begin, end, fps, interruptable … … 64 64 { 190, 197, 10, 0 }, //!< DEATH_FALLBACKSLOW 65 65 { 198, 198, 5, 1 }, //!< BOOM 66 { 199, 204, 10, 1 }, //!< WALK (only for spectial models) 66 67 }; 67 68 -
trunk/src/lib/graphics/importer/md2/md2Model.h
r9003 r9235 30 30 #define MD2_VERSION 8 //!< the md2 version in the header 31 31 #define MD2_MAX_TRIANGLES 4096 //!< maximal triangles count 32 #define MD2_MAX_VERTICES 2048 //!< maximal vertices count33 #define MD2_MAX_TEXCOORDS 2048 //!< maximal tex coordinates32 #define MD2_MAX_VERTICES 3048 //!< maximal vertices count 33 #define MD2_MAX_TEXCOORDS 3048 //!< maximal tex coordinates 34 34 #define MD2_MAX_FRAMES 512 //!< maximal frames 35 35 #define MD2_MAX_SKINS 32 //!< maximal skins … … 92 92 DEATH_FALLBACKSLOW, 93 93 BOOM, 94 WALK, 94 95 95 96 MAX_ANIMATIONS … … 180 181 static sVec3D anorms[NUM_VERTEX_NORMALS]; //!< the anormals 181 182 static float anormsDots[SHADEDOT_QUANT][256]; //!< the anormals dot products 182 static sAnim animationList[2 1]; //!< the anomation list183 static sAnim animationList[22]; //!< the anomation list 183 184 //! again one of these strange id software parts 184 185 float* shadeDots;
Note: See TracChangeset
for help on using the changeset viewer.