Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2005, 10:35:26 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: added indexing algorithm and material drawing functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.cc

    r4898 r4901  
    1818#include "quadtree.h"
    1919#include "quadtree_node.h"
     20#include "material.h"
    2021
    2122using namespace std;
     
    3132   this->pModelInfo = pModelInfo;
    3233   this->treeDepth = treeDepth;
     34
     35   this->materials = new Material*[4];
     36
     37   for(int i = 0; i < 4; ++i)
     38   {
     39     materials[i] = new Material();
     40     materials[i]->setIllum(3);
     41   }
     42   materials[0]->setAmbient(0.0, 0.3, 0.0);
     43   materials[1]->setAmbient(0.4, 0.0, 0.2);
     44   materials[2]->setAmbient(1.0, 0.0, 0.0);
     45   materials[3]->setAmbient(5.0, 3.0, 1.0);
     46
    3347
    3448   this->rootNode = new QuadtreeNode(this->pModelInfo, this->treeDepth);
Note: See TracChangeset for help on using the changeset viewer.