Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5989 in orxonox.OLD for branches/height_map/src/lib


Ignore:
Timestamp:
Dec 8, 2005, 3:16:54 PM (18 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.

File:
1 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++)
Note: See TracChangeset for help on using the changeset viewer.