Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4170 in orxonox.OLD for orxonox/branches/shadows


Ignore:
Timestamp:
May 11, 2005, 11:22:00 PM (20 years ago)
Author:
dave
Message:

branches/shadow/src:der Boden hat nicht mehr so komische Farben

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

Legend:

Unmodified
Added
Removed
  • orxonox/branches/shadows/src/shadow.cc

    r4008 r4170  
    5656}
    5757
    58 void Shadow::init(GLuint ground_id_imported)
     58void Shadow::init(GLuint ground_id_imported,Material*  boden)
    5959{
    6060   
     
    6565   
    6666   
    67     this->mat=new Material("Ground");
    68     this->mat->setDiffuseMap("../data/pictures/ground.tga");
    69     this->mat->setIllum(3);
     67    //this->mat=new Material("Ground");
     68    //this->mat->setDiffuseMap("../data/pictures/ground.tga");
     69    //this->mat->setIllum(3);
     70    this->mat=boden;
    7071   
    7172    glClearDepth(1);
  • orxonox/branches/shadows/src/shadow.h

    r3839 r4170  
    5151        Shadow(OBJModel* player,Player* playerangle);
    5252        ~Shadow();
    53         void init(GLuint ground_id);
     53        void init(GLuint ground_id,Material* boden);
    5454        void createShadow();
    5555        void draw();
  • orxonox/branches/shadows/src/world.cc

    r4008 r4170  
    400400 
    401401  // Initializing the Ground, and loading a Texture into it.
    402   //Material* boden = new Material("Ground");
    403   //boden->setDiffuseMap("../data/pictures/ground.tga");
     402  Material* boden = new Material("Ground");
     403  boden->setDiffuseMap("../data/pictures/ground.tga");
    404404  // Setting the illumination mode otherwise it is flat-shaded.
    405   //boden->setIllum(3);
     405  boden->setIllum(3);
    406406  //boden->select();
    407407  int sizeX = 100;
     
    524524   
    525525  glEndList();
    526  shadow->init(objectList); 
     526 shadow->init(objectList,boden); 
    527527 
    528528}
Note: See TracChangeset for help on using the changeset viewer.