Changeset 3403 in orxonox.OLD for orxonox/branches/dave/src
- Timestamp:
- Feb 13, 2005, 6:06:28 PM (20 years ago)
- Location:
- orxonox/branches/dave/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/dave/src/environment.cc
r3401 r3403 61 61 glRotatef(90.0f,0.0f,1.0f,0.0f); 62 62 glScalef(.5f,.5f,.5f); 63 this->model->draw(); 63 64 64 this->model->draw();65 65 } 66 66 -
orxonox/branches/dave/src/world.cc
r3401 r3403 92 92 {20.0, 10.0, 5.0}, {40.0, -10.0, 0.0}, 93 93 {60.0, -10.0, 5.0}, {80.0, 10.0, 5.0}}; 94 95 94 96 95 97 … … 368 370 369 371 // initialize debug coord system 372 373 370 374 objectList = glGenLists(1); 371 375 glNewList (objectList, GL_COMPILE); 372 376 glLoadIdentity(); 373 glColor3f(1.0,0,0); 377 //glColor3f(1.0,0,0); 378 379 //BodenTextur reinladen 380 Texture* boden=new Texture(); 381 boden->loadImage("../data/models/ground.tga"); 382 383 384 374 385 glBegin(GL_QUADS); 375 386 376 387 int sizeX = 100; 377 388 int sizeZ = 80; … … 419 430 } 420 431 421 int snowheight= 3;432 int snowheight=13; 422 433 for ( int i = 0; i<sizeX; i+=1) 423 434 for (int j = 0; j<sizeZ;j+=1) … … 442 453 } 443 454 glNormal3f(normal_vectors[i][j].x, normal_vectors[i][j].y, normal_vectors[i][j].z); 455 glTexCoord2f(0.0f,0.0f); 444 456 glVertex3f(v1.x, v1.y, v1.z); 445 457 if(height[i+1][j]<snowheight){ … … 457 469 } 458 470 glNormal3f(normal_vectors[i+1][j].x, normal_vectors[i+1][j].y, normal_vectors[i+1][j].z); 471 glTexCoord2f(1.0f,0.0f); 459 472 glVertex3f(v2.x, v2.y, v2.z); 460 473 if(height[i+1][j+1]<snowheight){ … … 473 486 } 474 487 glNormal3f(normal_vectors[i+1][j+1].x, normal_vectors[i+1][j+1].y, normal_vectors[i+1][j+1].z); 488 glTexCoord2f(1.0f,1.0f); 475 489 glVertex3f(v3.x, v3.y, v3.z); 476 490 if(height[i][j+1]<snowheight){ … … 487 501 } 488 502 glNormal3f(normal_vectors[i][j+1].x, normal_vectors[i][j+1].y, normal_vectors[i][j+1].z); 503 glTexCoord2f(0.0f,1.0f); 489 504 glVertex3f(v4.x, v4.y, v4.z); 490 505 -
orxonox/branches/dave/src/world.h
r3365 r3403 7 7 #define _WORLD_H 8 8 9 9 10 #include "stdincl.h" 10 11 #include "story_entity.h" 12 #include "importer/texture.h" 13 11 14 12 15 … … 58 61 tList<WorldEntity>* entities; 59 62 63 60 64 // base level data 65 61 66 TrackManager* trackManager; 62 67 Track* track;
Note: See TracChangeset
for help on using the changeset viewer.