Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3913 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Apr 21, 2005, 1:38:34 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: importer: functionality improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/skybox.cc

    r3895 r3913  
    187187  model->addVertexNormal (-1.0, 0.0, 0.0);
    188188
    189   model->addUseMtl(material[0]);
     189  model->setMaterial(material[0]);
    190190  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 3,2,4, 4,3,4, 6,4,4, 5,1,4); // top
    191   model->addUseMtl(material[1]);
     191  model->setMaterial(material[1]);
    192192  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 7,4,2, 8,1,2, 2,2,2, 1,3,2); // bottom
    193   model->addUseMtl(material[2]);
     193  model->setMaterial(material[2]);
    194194  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 1,1,3, 2,2,3, 4,3,3, 3,4,3); // left
    195   model->addUseMtl(material[3]);
     195  model->setMaterial(material[3]);
    196196  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 5,3,1, 6,4,1, 8,1,1, 7,2,1); // right
    197   model->addUseMtl(material[4]);
     197  model->setMaterial(material[4]);
    198198  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 2,1,6, 8,2,6, 6,3,6, 4,4,6); // front
    199   model->addUseMtl(material[5]);
     199  model->setMaterial(material[5]);
    200200  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 7,1,5, 1,2,5, 3,3,5, 5,4,5); // back
    201201 
Note: See TracChangeset for help on using the changeset viewer.