Changeset 9917 in orxonox.OLD for branches/network
- Timestamp:
- Nov 4, 2006, 12:01:24 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/importer/md2/md2Model.cc
r9915 r9917 92 92 rebuildInfo(); 93 93 94 // this->debug();94 // this->debug(); 95 95 } 96 96 … … 141 141 this->data = MD2Data::Pointer(new MD2Data(modelFileName, skinFileName, scale)); 142 142 this->rebuildInfo(); 143 144 return true; 143 145 } 144 146 … … 311 313 glNormal3fv(anorms[this->data->pLightNormals[pCommands[2]]]); 312 314 glVertex3fv(this->verticesList[pCommands[2]]); 315 printf("vertex: %f, %f, %f\n", this->verticesList[pCommands[2]][0], this->verticesList[pCommands[2]][1], this->verticesList[pCommands[2]][2]); 313 316 } 314 317 glEnd(); … … 323 326 { 324 327 //static sVec3D this->verticesList[MD2_MAX_VERTICES]; /* performance: created only once in a lifetime */ 325 int* pCommands = this->data->pGLCommands;328 // int* pCommands = this->data->pGLCommands; 326 329 /* some face culling stuff */ 327 330 // glPushAttrib(GL_POLYGON_BIT); … … 450 453 this->loadModel(modelFileName); 451 454 this->loadSkin(skinFileName); 452 455 453 456 PRINTF(0)("model %s, skin %s\n", modelFileName.c_str(), skinFileName.c_str()); 454 457 } … … 570 573 delete [] buffer; 571 574 fclose(pFile); 575 576 return true; 572 577 } 573 578 … … 592 597 this->material.setIllum(3); 593 598 this->material.setAmbient(1.0, 1.0, 1.0); 594 } 599 600 return true; 601 }
Note: See TracChangeset
for help on using the changeset viewer.