Changeset 3410 in orxonox.OLD for orxonox/branches/dave/src
- Timestamp:
- Feb 19, 2005, 5:26:32 PM (20 years ago)
- Location:
- orxonox/branches/dave/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/dave/src/orxonox.cc
r3365 r3410 176 176 GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0}; 177 177 GLfloat whiteLight[] = {1.0, 1.0, 1.0,1.0}; 178 GLfloat brightLight[]={2.0,2.0,2.0,1.0}; 178 179 GLfloat lightPosition[] = {10.0, 10, 19.0, 0.0}; 180 GLfloat lightPosition2[]={ 180.0,-20.0,-30.0,0.0}; 179 181 180 182 glLightfv (GL_LIGHT0, GL_DIFFUSE, whiteLight); 181 183 glLightfv (GL_LIGHT0, GL_SPECULAR, whiteLight); 184 glLightfv (GL_LIGHT1, GL_DIFFUSE, brightLight); 185 glLightfv (GL_LIGHT1, GL_SPECULAR, brightLight); 182 186 glEnable (GL_LIGHTING); 183 187 glEnable (GL_LIGHT0); 188 glEnable (GL_LIGHT1); 184 189 glEnable (GL_DEPTH_TEST); 185 190 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); 188 194 //glEnable (GL_TEXTURE_2D); 189 195 // glEnable(GL_COLOR); -
orxonox/branches/dave/src/skybox.cc
r3409 r3410 40 40 glPushMatrix(); 41 41 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 45 47 gluSphere(sphereObj,200.0f,20,20); 46 48 glPopMatrix(); -
orxonox/branches/dave/src/world.cc
r3409 r3410 678 678 entity = entities->nextElement(); 679 679 } 680 printf("wird jetzt ausgefuehrt!\n");680 681 681 skybox->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z); 682 682
Note: See TracChangeset
for help on using the changeset viewer.