Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2005, 6:43:49 PM (19 years ago)
Author:
bensch
Message:

heightmap: changes to revert afterwards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/world_entities/terrain.cc

    r6249 r6263  
    4242  this->init();
    4343
    44   this->tmp_mat = new Material(); 
     44  this->tmp_mat = new Material();
    4545  tmp_mat->setTransparency(1.0);
    4646  tmp_mat->setIllum(0.3);
     
    5757  tmp_mat->ambientTexture = NULL;
    5858 // tmp_mat->specularTexture = NULL;
    59  
     59
    6060  // this->loadParams(root);
    6161
    6262 char* heightmapName = ResourceManager::getFullName("pictures/heightmapHello.bmp");
    6363 char* colourmapName = ResourceManager::getFullName("pictures/heightmapHelloCM.bmp");
    64  hm = new HeightMap(heightmapName, colourmapName);
    65  hm->scale(Vector(23.0f,1.7f,23.0f));
    66  hm->load();
    67  this->model=hm;
     64// hm = new HeightMap(heightmapName, colourmapName);
     65// hm->scale(Vector(23.0f,1.7f,23.0f));
     66// hm->load();
     67// this->model=hm;
    6868
    6969 /*     this->model =  new HeightMap();
     
    126126
    127127      this->model->finalize(); */
    128    
     128
    129129 /*if (this->model != NULL)
    130130    this->ssp = new SpatialSeparation((AbstractModel*)this->model, 10.0f);*/
     
    224224  Vector tmpRot = this->getAbsDir().getSpacialAxis();
    225225  glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    226        
     226
    227227   //this->tmp_mat->select();
    228        
    229 
    230   hm->draw();
     228
     229
     230  //hm->draw();
    231231 /* if (this->objectList)
    232232    glCallList(this->objectList);
Note: See TracChangeset for help on using the changeset viewer.