Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3403 in orxonox.OLD


Ignore:
Timestamp:
Feb 13, 2005, 6:06:28 PM (19 years ago)
Author:
dave
Message:

branches/dave/src/world.cc: Zeile 379 bin ich am Textur draufladenprobieren

Location:
orxonox/branches/dave/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/dave/src/environment.cc

    r3401 r3403  
    6161  glRotatef(90.0f,0.0f,1.0f,0.0f);
    6262  glScalef(.5f,.5f,.5f);
     63  this->model->draw();
    6364 
    64   this->model->draw();
    6565}
    6666
  • orxonox/branches/dave/src/world.cc

    r3401 r3403  
    9292  {20.0, 10.0, 5.0}, {40.0, -10.0, 0.0},
    9393  {60.0, -10.0, 5.0}, {80.0, 10.0, 5.0}};
     94
     95
    9496
    9597
     
    368370
    369371  // initialize debug coord system
     372   
     373 
    370374  objectList = glGenLists(1);
    371375  glNewList (objectList, GL_COMPILE);
    372376  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 
    374385  glBegin(GL_QUADS);
    375 
     386 
    376387  int sizeX = 100;
    377388  int sizeZ = 80;
     
    419430      }
    420431
    421   int snowheight=3;
     432  int snowheight=13;
    422433  for ( int i = 0; i<sizeX; i+=1)
    423434    for (int j = 0; j<sizeZ;j+=1)
     
    442453        }
    443454        glNormal3f(normal_vectors[i][j].x, normal_vectors[i][j].y, normal_vectors[i][j].z);
     455        glTexCoord2f(0.0f,0.0f);
    444456        glVertex3f(v1.x, v1.y, v1.z);
    445457        if(height[i+1][j]<snowheight){
     
    457469        }
    458470        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);
    459472        glVertex3f(v2.x, v2.y, v2.z);
    460473        if(height[i+1][j+1]<snowheight){
     
    473486        }
    474487        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);
    475489        glVertex3f(v3.x, v3.y, v3.z);
    476490        if(height[i][j+1]<snowheight){
     
    487501        }
    488502        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);
    489504        glVertex3f(v4.x, v4.y, v4.z);
    490505       
  • orxonox/branches/dave/src/world.h

    r3365 r3403  
    77#define _WORLD_H
    88
     9
    910#include "stdincl.h"
    1011#include "story_entity.h"
     12#include "importer/texture.h"
     13
    1114
    1215
     
    5861  tList<WorldEntity>* entities;
    5962 
     63 
    6064  // base level data
     65 
    6166  TrackManager* trackManager;
    6267  Track* track;
Note: See TracChangeset for help on using the changeset viewer.