Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4717 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 27, 2005, 1:49:58 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some other md2 files to load

Location:
orxonox/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r4712 r4717  
    9191void OBBTreeNode::spawnBVTree(const int depth, sVec3D *verticesList, const int length)
    9292{
    93   PRINT(0)("\n");
     93  PRINT(3)("\n");
    9494  this->treeIndex = this->obbTree->getID();
    95   PRINTF(0)("OBB Depth: %i, tree index: %i, numVertices: %i\n", depth, treeIndex, length);
     95  PRINTF(3)("OBB Depth: %i, tree index: %i, numVertices: %i\n", depth, treeIndex, length);
    9696  this->depth = depth;
    9797
     
    122122    else
    123123    {
    124       PRINTF(0)("Aboarding tree walk: less than 3 vertices left\n");
     124      PRINTF(3)("Aboarding tree walk: less than 3 vertices left\n");
    125125    }
    126126
     
    133133    else
    134134    {
    135       PRINTF(0)("Abording tree walk: less than 3 vertices left\n");
     135      PRINTF(3)("Abording tree walk: less than 3 vertices left\n");
    136136    }
    137137
  • orxonox/trunk/src/lib/graphics/importer/md2Model.cc

    r4697 r4717  
    203203        }
    204204
     205
    205206      for(; i > 0; i--, pCommands += 3) /* down counting for loop, next 3 gl commands */
    206207        {
     208          glTexCoord2f( ((float *)pCommands)[0], ((float *)pCommands)[1] );
    207209          glNormal3fv(anorms[this->data->pLightNormals[pCommands[2]]]);
    208           glTexCoord2f( ((float *)pCommands)[0], ((float *)pCommands)[1] );
    209210          glVertex3fv(verticesList[pCommands[2]]);
    210211        }
    211212      glEnd();
     213
    212214    }
    213215  glDisable(GL_CULL_FACE);
  • orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc

    r4714 r4717  
    7979  entityList = new tList<WorldEntity>();
    8080
    81   //a = new TestEntity(); a->setName("Clown1");
     81  a = new TestEntity(); a->setName("Clown1");
    8282  b = new Environment(); b->setName("Jaeger");
    8383  //c = new Terrain();
    8484
    85   //b->setRelCoor(0.0, 0.0, -10.0);
     85  b->setRelCoor(0.0, 0.0, -10.0);
    8686  //b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));
    8787
    88    //entityList->add(a);
    89    entityList->add(b);
     88  entityList->add(a);
     89  entityList->add(b);
    9090
    9191  CDEngine::getInstance()->setEntityList(entityList);
    9292
    9393  LightManager* lightMan = LightManager::getInstance();
    94     lightMan->setAmbientColor(.1,.1,.1);
     94  lightMan->setAmbientColor(.1,.1,.1);
    9595  lightMan->addLight();
    9696  lightMan->setPosition(-5.0, 50.0, -40.0);
  • orxonox/trunk/src/world_entities/test_entity.cc

    r4714 r4717  
    3232
    3333//   this->md2Model = new MD2Model("models/tris.md2", "models/tris.pcx");
    34   this->md2Model = new MD2Model("models/shogun.md2", "maps/shogun.pcx");
     34  this->md2Model = new MD2Model("models/ogro.md2", "maps/ogro.pcx");
    3535  this->obbTree = new OBBTree(7, (sVec3D*)this->md2Model->data->pVertices, this->md2Model->data->numVertices);
    3636
    37   this->md2Model->setAnim(0);
     37  this->md2Model->setAnim(STAND);
    3838  this->md2Model->debug();
    3939}
Note: See TracChangeset for help on using the changeset viewer.