Changeset 6191 in orxonox.OLD for branches/christmas_branche/src/lib/graphics/importer
- Timestamp:
- Dec 20, 2005, 3:24:14 PM (19 years ago)
- Location:
- branches/christmas_branche/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/lib/graphics/importer/md2Model.cc
r6188 r6191 121 121 currVec = &this->data->pVertices[this->data->numVertices * this->animationState.currentFrame]; 122 122 nextVec = &this->data->pVertices[this->data->numVertices * this->animationState.nextFrame]; 123 PRINTF(0)("current frame nr %i, next frame nr %i\n", this->animationState.currentFrame, this->animationState.nextFrame);124 125 123 126 124 for( int i = 0; i < this->data->numVertices; ++i) … … 215 213 } 216 214 217 218 215 for(; i > 0; i--, pCommands += 3) /* down counting for loop, next 3 gl commands */ 219 216 { … … 242 239 // glEnable(GL_CULL_FACE); 243 240 // glCullFace(GL_BACK); 244 241 // 245 242 // this->processLighting(); 246 243 // this->interpolate(/*verticesList*/); … … 352 349 this->numTexCoor = 0; 353 350 354 this->scaleFactor = 1.0f;355 //this->scaleFactor = 0.2f;351 // this->scaleFactor = 1.0f; 352 this->scaleFactor = 0.2f; 356 353 357 354 this->fileName = NULL; … … 448 445 for(int i = 0; i < this->numFrames; ++i) 449 446 { 450 printf("==============vertex loading for frame %i/%i========\n", i, this->numFrames);451 447 frame = (sFrame*)(buffer + this->header->frameSize * i); 452 448 pVertex = this->pVertices + this->numVertices * i; … … 460 456 pVertex[j][2] = (-1.0 * (frame->pVertices[j].v[1] * frame->scale[1] + frame->translate[1])) * this->scaleFactor; 461 457 462 // pVertex[j][0] = ((frame->pVertices[j].v[0] /** frame->scale[0]*/ )/* + frame->translate[0]*/ ); 463 // pVertex[j][2] = (-1.0f * (frame->pVertices[j].v[2] /** frame->scale[2]*/) /*+ frame->translate[2]*/); 464 // pVertex[j][1] = ((frame->pVertices[j].v[1] /** frame->scale[1]*/ /*+ frame->translate[1]*/)); 465 466 467 printf("vertex %i/%i: (%f, %f, %f)\n", j, this->numVertices, pVertex[j][0], pVertex[j][1], pVertex[j][2]); 458 //printf("vertex %i/%i: (%f, %f, %f)\n", j, this->numVertices, pVertex[j][0], pVertex[j][1], pVertex[j][2]); 468 459 469 460 pNormals[j] = frame->pVertices[j].lightNormalIndex; -
branches/christmas_branche/src/lib/graphics/importer/md2Model.h
r6188 r6191 69 69 typedef struct 70 70 { 71 unsigned char 71 unsigned char v[3]; //!< the vector of the vertex 72 72 unsigned char lightNormalIndex; //!< the index of the light normal 73 73 } sVertex;
Note: See TracChangeset
for help on using the changeset viewer.