Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6472 in orxonox.OLD for branches/height_map/src/world_entities


Ignore:
Timestamp:
Jan 11, 2006, 2:11:16 PM (19 years ago)
Author:
bottac
Message:

Added Class Tile to HeightMap (allows a primitive LOD Implementation).

File:
1 edited

Legend:

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

    r6329 r6472  
    5858  tmp_mat->specularTexture = NULL;
    5959 
    60     const  char* texture_name = "pictures/ground1.tga";
     60    const  char* texture_name = "pictures/ground.tga";
    6161  tmp_mat->setDiffuseMap(texture_name);
    6262  tmp_mat->setAmbientMap(texture_name);
     
    6767 char* colourmapName = ResourceManager::getFullName("pictures/heightmapHelloCM.bmp");
    6868 hm = new HeightMap(heightmapName, colourmapName);
    69  hm->scale(Vector(43.0f,1.10f,43.0f));
    70  hm->shift(Vector(-1000.0,-1500.0,-1000.0));
     69 hm->scale(Vector(23.0f,0.7f,23.0f));
     70 hm->shift(Vector(-1000.0,-90.0,-4000.0));
    7171 hm->load();
    7272 this->model=hm;
     
    235235 
    236236 this->tmp_mat->select();
     237   
    237238 hm->draw();
    238239 /* if (this->objectList)
Note: See TracChangeset for help on using the changeset viewer.