Changeset 10165 in orxonox.OLD for branches/mount_points/src/lib
- Timestamp:
- Jan 3, 2007, 3:19:45 PM (18 years ago)
- Location:
- branches/mount_points/src/lib/graphics/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/bsp/bsp_file.cc
r10033 r10165 430 430 char fileName [500]; 431 431 char ext [500]; 432 struct stat results;433 432 434 433 … … 660 659 int errorCode = 0; //!< the error code for the texture loading functions 661 660 unsigned int lightMap; //!< the OpenGL texture handle 662 int mipmapLevel = 0; //!< the maximum mipmap level for this texture663 int mipmapWidth = 0; //!< the width of the mipmap664 int mipmapHight = 0; //!< the height of the mipmap3661 //int mipmapLevel = 0; //!< the maximum mipmap level for this texture 662 //int mipmapWidth = 0; //!< the width of the mipmap 663 //int mipmapHight = 0; //!< the height of the mipmap3 665 664 float sc, scale, temp; 666 665 for(int i = 0; i < 128*128*3 ; i++) … … 1101 1100 { 1102 1101 int sto = array[0]; 1103 array[0] = scale * array[1] ;1104 array[1] = scale * array[2];1105 array[2] = scale * sto ;1102 array[0] = (int) scale * array[1] ; 1103 array[1] = (int) scale * array[2]; 1104 array[2] = (int) scale * sto ; 1106 1105 } 1107 1106 -
branches/mount_points/src/lib/graphics/importer/static_model.cc
r10147 r10165 116 116 117 117 // now check if it is a mount point identifier 118 if( this->data->getGroups().size() != 5) { 119 PRINTF(1)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object\n", groupName.c_str()); 118 if( (*groupIt)._faces.size() != 6) { PRINTF(1)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object (got %i faces)\n", groupName.c_str(), (*groupIt)._faces.size()); 120 119 } 121 120 … … 135 134 } 136 135 137 // vertex with the max count is the up-point136 // vertex with the max surrounding faces is the up-point (pyramid like object) 138 137 std::vector<Vector>::const_iterator it = vertices.begin(); 139 138 Vector tmpPoint; … … 167 166 center /= vertices.size(); 168 167 168 PRINTF(0)("Up Point\n"); 169 upPoint.debug(); 170 171 PRINTF(0)("Center\n"); 172 center.debug(); 169 173 170 174 } -
branches/mount_points/src/lib/graphics/importer/static_model_data.h
r10147 r10165 41 41 ObjectListDeclaration(StaticModelData); 42 42 43 p rivate:43 public: 44 44 //////////////////// 45 45 /// SUB-ELEMENTS ///
Note: See TracChangeset
for help on using the changeset viewer.