Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2005, 3:24:14 PM (18 years ago)
Author:
patrick
Message:

christmas: the texture gets loaded now and is loadable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/christmas_branche/src/lib/graphics/importer/md2Model.cc

    r6188 r6191  
    121121  currVec = &this->data->pVertices[this->data->numVertices * this->animationState.currentFrame];
    122122  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 
    125123
    126124  for( int i = 0; i < this->data->numVertices; ++i)
     
    215213        }
    216214
    217 
    218215      for(; i > 0; i--, pCommands += 3) /* down counting for loop, next 3 gl commands */
    219216        {
     
    242239//   glEnable(GL_CULL_FACE);
    243240//   glCullFace(GL_BACK);
    244 
     241//
    245242//   this->processLighting();
    246243//   this->interpolate(/*verticesList*/);
     
    352349  this->numTexCoor = 0;
    353350
    354   this->scaleFactor = 1.0f;
    355 //   this->scaleFactor = 0.2f;
     351//   this->scaleFactor = 1.0f;
     352  this->scaleFactor = 0.2f;
    356353
    357354  this->fileName = NULL;
     
    448445  for(int i = 0; i < this->numFrames; ++i)
    449446    {
    450       printf("==============vertex loading for frame %i/%i========\n", i, this->numFrames);
    451447      frame = (sFrame*)(buffer + this->header->frameSize * i);
    452448      pVertex = this->pVertices + this->numVertices  * i;
     
    460456           pVertex[j][2] = (-1.0 * (frame->pVertices[j].v[1] * frame->scale[1] + frame->translate[1])) * this->scaleFactor;
    461457
    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]);
    468459
    469460          pNormals[j] = frame->pVertices[j].lightNormalIndex;
Note: See TracChangeset for help on using the changeset viewer.