- Timestamp:
- Aug 20, 2005, 3:53:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/md2Model.cc
r5085 r5086 116 116 nextVec = &this->data->pVertices[this->data->numVertices * this->animationState.nextFrame]; 117 117 118 for( int i = 0; i < this->data->numFrames; ++i)119 { 120 verticesList[i][0] = (currVec[i][0] + this->animationState.interpolationState * (nextVec[i][0] - currVec[i][0]));121 verticesList[i][1] = (currVec[i][1] + this->animationState.interpolationState * (nextVec[i][1] - currVec[i][1]));122 verticesList[i][2] = (currVec[i][2] + this->animationState.interpolationState * (nextVec[i][2] - currVec[i][2]));118 for( int i = 0; i < this->data->numVertices; ++i) 119 { 120 verticesList[i][0] = currVec[i][0] + this->animationState.interpolationState * (nextVec[i][0] - currVec[i][0]); 121 verticesList[i][1] = currVec[i][1] + this->animationState.interpolationState * (nextVec[i][1] - currVec[i][1]); 122 verticesList[i][2] = currVec[i][2] + this->animationState.interpolationState * (nextVec[i][2] - currVec[i][2]); 123 123 } 124 124 } … … 169 169 glPushMatrix(); 170 170 171 171 this->renderFrameGLList(); 172 172 // this->renderFrameTriangles(); 173 173 … … 194 194 this->data->material->select(); 195 195 196 printf("=============================FRAME\n"); 196 197 /* draw the triangles */ 197 198 while( int i = *(pCommands++)) /* strange looking while loop for maximum performance */ … … 210 211 for(; i > 0; i--, pCommands += 3) /* down counting for loop, next 3 gl commands */ 211 212 { 212 verticesList[pCommands[2]][2]);213 213 glTexCoord2f( ((float *)pCommands)[0], ((float *)pCommands)[1] ); 214 214 glNormal3fv(anorms[this->data->pLightNormals[pCommands[2]]]);
Note: See TracChangeset
for help on using the changeset viewer.