- Timestamp:
- Jun 27, 2005, 1:49:58 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4712 r4717 91 91 void OBBTreeNode::spawnBVTree(const int depth, sVec3D *verticesList, const int length) 92 92 { 93 PRINT( 0)("\n");93 PRINT(3)("\n"); 94 94 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); 96 96 this->depth = depth; 97 97 … … 122 122 else 123 123 { 124 PRINTF( 0)("Aboarding tree walk: less than 3 vertices left\n");124 PRINTF(3)("Aboarding tree walk: less than 3 vertices left\n"); 125 125 } 126 126 … … 133 133 else 134 134 { 135 PRINTF( 0)("Abording tree walk: less than 3 vertices left\n");135 PRINTF(3)("Abording tree walk: less than 3 vertices left\n"); 136 136 } 137 137 -
orxonox/trunk/src/lib/graphics/importer/md2Model.cc
r4697 r4717 203 203 } 204 204 205 205 206 for(; i > 0; i--, pCommands += 3) /* down counting for loop, next 3 gl commands */ 206 207 { 208 glTexCoord2f( ((float *)pCommands)[0], ((float *)pCommands)[1] ); 207 209 glNormal3fv(anorms[this->data->pLightNormals[pCommands[2]]]); 208 glTexCoord2f( ((float *)pCommands)[0], ((float *)pCommands)[1] );209 210 glVertex3fv(verticesList[pCommands[2]]); 210 211 } 211 212 glEnd(); 213 212 214 } 213 215 glDisable(GL_CULL_FACE); -
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4714 r4717 79 79 entityList = new tList<WorldEntity>(); 80 80 81 //a = new TestEntity(); a->setName("Clown1");81 a = new TestEntity(); a->setName("Clown1"); 82 82 b = new Environment(); b->setName("Jaeger"); 83 83 //c = new Terrain(); 84 84 85 //b->setRelCoor(0.0, 0.0, -10.0);85 b->setRelCoor(0.0, 0.0, -10.0); 86 86 //b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0))); 87 87 88 //entityList->add(a);89 88 entityList->add(a); 89 entityList->add(b); 90 90 91 91 CDEngine::getInstance()->setEntityList(entityList); 92 92 93 93 LightManager* lightMan = LightManager::getInstance(); 94 94 lightMan->setAmbientColor(.1,.1,.1); 95 95 lightMan->addLight(); 96 96 lightMan->setPosition(-5.0, 50.0, -40.0); -
orxonox/trunk/src/world_entities/test_entity.cc
r4714 r4717 32 32 33 33 // 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"); 35 35 this->obbTree = new OBBTree(7, (sVec3D*)this->md2Model->data->pVertices, this->md2Model->data->numVertices); 36 36 37 this->md2Model->setAnim( 0);37 this->md2Model->setAnim(STAND); 38 38 this->md2Model->debug(); 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.