Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3589 in orxonox.OLD


Ignore:
Timestamp:
Mar 17, 2005, 2:53:46 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the Material on the sphere gets displayed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/primitive.cc

    r3588 r3589  
    3535  //this->model = new OBJModel("");
    3636  this->object = gluNewQuadric();
    37 
     37 
    3838  gluQuadricTexture(this->object, GL_TRUE);
    3939
    4040  this->material = new Material("Sphere");
    41   this->material->setDiffuseMap("../data/pictures/sky-replace.jpg");
     41  this->material->setDiffuseMap("../data/pictures/load_screen.jpg");
    4242  this->material->setIllum(3);
    43   this->material->setSpecular(.3, .3, .3);
     43  this->material->setAmbient(1, 1, 1);
    4444}
    4545
     
    7474void Primitive::tick (float time)
    7575{
    76   //Vector v(0.0, 0.0, 1.0);
    77   //Quaternion q(10.0, v);
    78   //this->relDirection = this->relDirection * q;
     76  //  Vector v(0.0, 0.0, 1.0);
     77  //  Quaternion q(10.0, v);
     78  //  this->setRelDir(&(this->relDirection * q));
    7979}
    8080
     
    9292  //this->getAbsDir().matrix (matrix);
    9393  //glMultMatrixf((float*)matrix);
     94  this->material->select();
    9495  gluSphere(this->object, 2, 20, 20);
    9596
Note: See TracChangeset for help on using the changeset viewer.