Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5989 in orxonox.OLD for branches/height_map


Ignore:
Timestamp:
Dec 8, 2005, 3:16:54 PM (19 years ago)
Author:
bottac
Message:

Branch height_map loads now heightmapHello.bmp from your data-directory.
You might need an old revision of data for this branch. I use revision 110.

Location:
branches/height_map/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/height_map/src/lib/graphics/importer/height_map.cc

    r5980 r5989  
    6363        {
    6464                SDL_LockSurface(heightMap);
    65                 for(int i = 0 ; i < heightMap->h  ; i ++)
     65                for(int i = 0 ; i < heightMap->h  ; i +=1)
    6666                        {
    6767                        for(int j = 0; j < heightMap->w   ;  j += 1)
     
    7878                                       
    7979                                       
    80                                 this->addVertex( 10*(heightMap->h - i) , (( height)/15) - 200 ,10*j);
     80                                this->addVertex( 20*(heightMap->h - i) , (( height)/15) - 30 ,20*j);
    8181                        }       
    8282                        }
    8383SDL_UnlockSurface(heightMap);
    8484
    85 int c = (heightMap->w) / 1;
     85int c = (heightMap->w) ;
    8686int g = 0;
    8787
    88                 for(int i = 0; i < (heightMap->w)/1  -1  ; i ++)
     88                for(int i = 0; i < (heightMap->w)  -1  ; i += 1)
    8989                        {
    9090                                for(int j = 0; j < (heightMap->h)/1 - 1; j++)
  • branches/height_map/src/world_entities/terrain.cc

    r5976 r5989  
    4444  // this->loadParams(root);
    4545
    46  HeightMap * hm = new HeightMap("/home/bottac/svn/data/pictures/heightmapHello.bmp");
     46 char* heightmapName = ResourceManager::getFullName("pictures/heightmapHello.bmp");
     47 HeightMap * hm = new HeightMap(heightmapName);
    4748
    4849 hm->load();
Note: See TracChangeset for help on using the changeset viewer.