Changeset 2792 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Nov 10, 2004, 6:06:36 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r2636 r2792 158 158 glClearColor(0.0, 0.0, 0.0, 0.0); 159 159 glEnable(GL_DEPTH_TEST); 160 glEnable(GL_COLOR);161 glShadeModel(GL_FLAT);160 // glEnable(GL_COLOR); 161 // glShadeModel(GL_SMOOTH); 162 162 163 163 // create camera -
orxonox/trunk/src/world.cc
r2731 r2792 98 98 this->pathnodes = new Vector[6]; 99 99 this->pathnodes[0] = Vector(0, 0, 0); 100 this->pathnodes[1] = Vector( -100, 40, 0);101 this->pathnodes[2] = Vector(-100, 140, 0);102 this->pathnodes[3] = Vector(0, 180, 0);103 this->pathnodes[4] = Vector(100, 140, 0);104 this->pathnodes[5] = Vector(100, 40, 0);100 this->pathnodes[1] = Vector(1000, 0, 0); 101 // this->pathnodes[2] = Vector(-100, 140, 0); 102 // this->pathnodes[3] = Vector(0, 180, 0); 103 // this->pathnodes[4] = Vector(100, 140, 0); 104 // this->pathnodes[5] = Vector(100, 40, 0); 105 105 106 106 // create the tracks … … 174 174 glNewList (objectList, GL_COMPILE); 175 175 glLoadIdentity(); 176 glColor3f(1.0,0,0); 176 177 glBegin(GL_LINES); 177 178 float height [500][100]; 179 for ( int i = 0; i<=200; i+=1) 180 { 181 for (int j = 0; j<=50;j+=1) 182 { 183 height[i][j] = rand()/200321400; 184 185 } 186 } 187 for ( int i = 0; i<=200; i+=1) 188 { 189 for (int j = 0; j<=50;j+=1) 190 { 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); 196 } 197 } 198 glEnd(); 199 /* 200 glBegin(GL_LINES); 178 201 for( float x = -128.0; x < 128.0; x += 25.0) 179 202 { … … 213 236 214 237 } 215 238 */ 216 239 //draw track 240 glBegin(GL_LINES); 217 241 glColor3f(0,1,1); 218 242 for( int i = 0; i < tracklen; i++)
Note: See TracChangeset
for help on using the changeset viewer.