Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2811 in orxonox.OLD for orxonox/trunk/src/world.cc


Ignore:
Timestamp:
Nov 11, 2004, 2:45:54 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the ObjectImporter to trunk: merged with
svn merge branches/importer/src/ trunk/src/ -r 2794:HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world.cc

    r2792 r2811  
    177177  glBegin(GL_LINES);
    178178  float height [500][100];
     179  float size = 2.0;
    179180    for ( int i = 0; i<=200; i+=1)
    180181      {
    181182        for (int j = 0; j<=50;j+=1)
    182183          {
    183             height[i][j] = rand()/200321400;
     184            height[i][j] = rand()/200321400 + (j-25)*(j-25)/30;
    184185           
    185186          }
     
    189190        for (int j = 0; j<=50;j+=1)
    190191          {       
    191             glVertex3f(5*i,        5*j-125,      height[i][j] -20);
    192             glVertex3f(5*i+5.0,    5*j-125,      height[i+1][j]-20);
    193             //      glVertex3f(5*i+5.0,    5*j+5.0-125,  height[i+1][j+1]-20);
    194             glVertex3f(5*i,        5*j-125,      height[i][j] -20);
    195             glVertex3f(5*i,        5*j+5.0-125,  height[i][j+1]-20);
     192            glVertex3f(size*i,        size*j-25*size,      height[i][j] -20);
     193            glVertex3f(size*i+size,    size*j-25*size,      height[i+1][j]-20);
     194            //      glVertex3f(size*i+5.0,    size*j+5.0-12size,  height[i+1][j+1]-20);
     195            glVertex3f(size*i,        size*j-25*size,      height[i][j] -20);
     196            glVertex3f(size*i,        size*j+size -25*size,  height[i][j+1]-20);
    196197          }
    197198      }
Note: See TracChangeset for help on using the changeset viewer.