Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2005, 10:59:26 PM (20 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: testing the new md2model, got segfaults yet

Location:
orxonox/branches/md2_loader/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/world_entities/test_entity.cc

    r4187 r4189  
    2828TestEntity::TestEntity () : WorldEntity()
    2929
    30   this->md2Model = new MD2Model();
     30  //this->md2Model = new MD2Model();
    3131
    32   MD2Model2* model2 = new MD2Model2();
    33   model2->loadModel("../data/models/tris.md2");
    34 
    35   this->material = new Material("Clown");
    36   this->material->setDiffuseMap("../data/models/tris.pcx");
    37   this->material->setIllum(3);
    38   this->material->setAmbient(1.0, 1.0, 1.0);
     32  this->md2Model2 = new MD2Model2();
     33  this->md2Model2->loadModel("../data/models/tris.md2");
     34  this->md2Model2->loadSkin("../data/models/tris.pcx");
    3935}
    4036
     
    6662 
    6763  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    68    this->getAbsDir().matrix (matrix);
     64  this->getAbsDir().matrix (matrix);
    6965  glMultMatrixf((float*)matrix);
    7066 
    7167
    7268  /* TESTGING TESTING TESTING */
    73   this->material->select();
     69  //this->material->select();
    7470  //this->md2Model->draw(this->model);
    75   this->md2Model->animate();
     71  //this->md2Model->animate();
     72
     73  this->md2Model2->draw();
    7674
    7775  glPopMatrix();
  • orxonox/branches/md2_loader/src/world_entities/test_entity.h

    r4159 r4189  
    66class MD2Loader;
    77class MD2Model;
     8class MD2Model2;
    89struct t3DModel;
    910class Material;
     
    2829  t3DModel* model;
    2930  MD2Model* md2Model;
     31  MD2Model2* md2Model2;
    3032  Material* material;
    3133
Note: See TracChangeset for help on using the changeset viewer.