Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3409 in orxonox.OLD


Ignore:
Timestamp:
Feb 19, 2005, 4:53:50 PM (19 years ago)
Author:
dave
Message:

branches/dave/src: Ok, fehler behoben, jetzt kann man noch eigene Himmel einfuegen, je nach belieben:) enjoy./orxonox

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

Legend:

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

    r3408 r3409  
    2727Skybox::~Skybox(){}
    2828
     29void Skybox::updatePosition(float x,float y,float z)
     30{
     31    this->a=x;
     32    this->b=y;
     33    this->c=z;
     34}
    2935
    3036
    31 
    32 void Skybox::draw(WorldEntity* myplayer)
     37void Skybox::draw()
    3338{
    3439
    3540    glPushMatrix();
    36     //Vector shift(myplayer->getRelCoor());
    37     //glTranslatef(shift.x,shift.y,shift.z);
    38     glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z);
     41    glTranslatef(this->a,this->b,this->c);
     42    //glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z);
    3943    glRotatef(-180.0f,0.0f,0.0f,1.0f);
    4044    glRotatef(0.0f,0.0,1.0f,0.0f);
    41     gluSphere(sphereObj,250.0f,20,20);
     45    gluSphere(sphereObj,200.0f,20,20);
    4246    glPopMatrix();
    4347
     
    4650
    4751
    48 
    49 
    50 
    51 
    52 
    53 
  • orxonox/branches/dave/src/skybox.h

    r3408 r3409  
    1010private:
    1111    GLUquadricObj *sphereObj;
     12    float a,b,c;
    1213   
    1314   
     
    1819   
    1920   
     21   void updatePosition(float x,float y,float z);
     22   void draw();
    2023   
    21    void draw(WorldEntity* myplayer);
     24   
     25   
    2226   
    2327   
  • orxonox/branches/dave/src/world.cc

    r3408 r3409  
    521521  trackManager->debug(2);
    522522  delete trackManager;
    523  
    524 
    525  
    526   glEnable(GL_TEXTURE_2D);
    527   sky->select();
    528  
    529  
     523   
    530524  glEndList(); 
    531525}
     
    596590 
    597591  glCallList (objectList);
    598   skybox->draw(localPlayer);
     592
     593
     594  //After calling the list, draw the skysphere
     595 
     596  glEnable(GL_TEXTURE_2D);
     597  sky->select();
     598  skybox->draw();
    599599 
    600600}
     
    678678      entity = entities->nextElement();
    679679    }
    680  
    681  
     680  printf("wird jetzt ausgefuehrt!\n");
     681  skybox->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z);
    682682 
    683683  //for( int i = 0; i < tracklen; i++) track[i].tick (seconds);
Note: See TracChangeset for help on using the changeset viewer.