Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3410 in orxonox.OLD


Ignore:
Timestamp:
Feb 19, 2005, 5:26:32 PM (19 years ago)
Author:
dave
Message:

branches/dave/src: Ok, Himmel heller gemacht in orxonox.cc durch hinzufuegen eine Lichquelle, zusaetzlich Himmel noch ein wenig gedreht

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

Legend:

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

    r3365 r3410  
    176176  GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0};
    177177  GLfloat whiteLight[] = {1.0, 1.0, 1.0,1.0};
     178  GLfloat brightLight[]={2.0,2.0,2.0,1.0};
    178179  GLfloat lightPosition[] = {10.0, 10, 19.0, 0.0};
     180  GLfloat lightPosition2[]={ 180.0,-20.0,-30.0,0.0};
    179181
    180182  glLightfv (GL_LIGHT0, GL_DIFFUSE, whiteLight);
    181183  glLightfv (GL_LIGHT0, GL_SPECULAR, whiteLight);
     184  glLightfv (GL_LIGHT1, GL_DIFFUSE, brightLight);
     185  glLightfv (GL_LIGHT1, GL_SPECULAR, brightLight);
    182186  glEnable (GL_LIGHTING);
    183187  glEnable (GL_LIGHT0);
     188  glEnable (GL_LIGHT1);
    184189  glEnable (GL_DEPTH_TEST);
    185190  glLightfv (GL_LIGHT0, GL_POSITION, lightPosition);
    186   glLightfv (GL_LIGHT0, GL_DIFFUSE, whiteLight);
    187    
     191  glLightfv (GL_LIGHT1, GL_POSITION, lightPosition2);
     192  //glLightfv (GL_LIGHT0, GL_DIFFUSE, whiteLight);
     193  //glLightfv (GL_LIGHT1, GL_D, brightLight); 
    188194  //glEnable (GL_TEXTURE_2D);
    189195  //  glEnable(GL_COLOR);
  • orxonox/branches/dave/src/skybox.cc

    r3409 r3410  
    4040    glPushMatrix();
    4141    glTranslatef(this->a,this->b,this->c);
    42     //glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z);
    43     glRotatef(-180.0f,0.0f,0.0f,1.0f);
    44     glRotatef(0.0f,0.0,1.0f,0.0f);
     42   
     43    glRotatef(-30,1,0,0);
     44    glRotatef(95.0f,0.0f,0.0f,1.0f);
     45    glRotatef(-250.0f,0.0,1.0f,0.0f);
     46   
    4547    gluSphere(sphereObj,200.0f,20,20);
    4648    glPopMatrix();
  • orxonox/branches/dave/src/world.cc

    r3409 r3410  
    678678      entity = entities->nextElement();
    679679    }
    680   printf("wird jetzt ausgefuehrt!\n");
     680 
    681681  skybox->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z);
    682682 
Note: See TracChangeset for help on using the changeset viewer.