Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2005, 12:32:36 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: now using the home brewed material class for the model - and it works just perfect! orxonox has a very powerfull material class./orxonox :D

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

    r4157 r4158  
    4545      this->model->materialList[i].texureId = i;
    4646    }
     47
     48  this->material = new Material("Sky");
     49  this->material->setDiffuseMap("../data/models/tris.pcx");
     50  this->material->setIllum(3);
     51  this->material->setAmbient(1.0, 1.0, 1.0);
    4752}
    4853
     
    7681  //this->model->draw();
    7782  /* TESTGING TESTING TESTING */
     83  this->material->select();
    7884  this->md2Model->draw(this->model);
    7985
  • orxonox/branches/md2_loader/src/world_entities/test_entity.h

    r4157 r4158  
    77class MD2Model;
    88struct t3DModel;
     9class Material;
    910
    1011class TestEntity : public WorldEntity
     
    2930
    3031  unsigned int* textureArray;
     32  Material* material;
    3133
    3234};
Note: See TracChangeset for help on using the changeset viewer.