Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 10, 2004, 10:47:40 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/importer: vertex normals are read in for real.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/importer/importer/framework.cc

    r2780 r2794  
    1515  glLoadIdentity(); // Reset the view
    1616 
    17   glMatrixMode(GL_PROJECTION);                                          // Select The Projection Matrix
     17  glMatrixMode(GL_PROJECTION);
    1818  glLoadIdentity();     
    1919  gluPerspective(45.0f,500/375,0.1f,100.0f);
     
    2121  whiteLight[1] = .5+.5*sin(rotator*10);
    2222  whiteLight[2] = .5+.5*sin(rotator*10);
     23
     24  GLfloat lightPosition[] = {10.0*sin(rotator*10), 10, 19.0, 0.0};
     25  glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
     26
    2327  glLightfv(GL_LIGHT0, GL_DIFFUSE, whiteLight);
    2428  obj->draw();
     
    4650  obj = new Object (argv[1]);
    4751
    48   GLfloat lightPosition[] = {10.0, 5.0, 19.0, 0.0};
    4952  GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0};
    50   glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
    5153  glLightfv(GL_LIGHT0, GL_DIFFUSE, whiteLight);
    5254  glLightfv(GL_LIGHT0, GL_SPECULAR, whiteLight);
Note: See TracChangeset for help on using the changeset viewer.