Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3307 in orxonox.OLD for orxonox/branches/parenting


Ignore:
Timestamp:
Dec 30, 2004, 12:55:57 AM (20 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: now parenting works visibly good :) meaning, that the old abilities have been reimplemented and are working now. turned coord system again to the old one to be able to enjoy the terrific green lands of orxonox

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

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/camera.cc

    r3302 r3307  
    238238  /* orientation and */
    239239  //glMultMatrixf ((float*)matrix);
     240
    240241  /*  translation */
    241   glTranslatef (this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z );
    242   //glTranslatef (-actualPlace.r.x, -actualPlace.r.y,- actualPlace.r.z);
    243 //Placement *plBound = bound->get_placement();
     242  //glTranslatef (this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z );
     243
    244244
    245245  // ===== second camera control calculation option
  • orxonox/branches/parenting/src/player.cc

    r3302 r3307  
    104104 
    105105  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    106   //PN glTranslatef(getPlacement()->r.x, getPlacement()->r.y, getPlacement()->r.z);
    107   //getPlacement()->w.matrix (matrix);
     106  printf("Player::draw() - (%f, %f, %f)\n", this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
     107  //rotate
    108108  this->getAbsDir ().matrix (matrix);
    109109  glMultMatrixf((float*)matrix);
    110110 
    111111  glMatrixMode(GL_MODELVIEW);
    112   //glRotatef(-90, 0,1,0);
    113112  obj->draw();
    114113  // glCallList(objectList);
     
    137136  Vector direction (1.0, 0.0, 0.0);
    138137  //direction = this->absDirection.apply (direction);
    139   Vector orthDirection (0.0, 0.0, 1.0);
     138  Vector orthDirection (0.0, 1.0, 0.0);
    140139  //orthDirection = orthDirection.cross (direction);
    141140
  • orxonox/branches/parenting/src/world.cc

    r3306 r3307  
    449449void World::draw ()
    450450{
    451   // draw geometry
    452  
    453451  // draw entities
    454452  WorldEntity* entity;
    455  
    456   //((WorldEntity*)this->nullParent)->processDraw ();
    457 
    458  
    459453  entity = this->entities->enumerate();
    460454  while( entity != NULL )
     
    462456      if( entity->bDraw ) entity->draw();
    463457      entity = this->entities->nextElement();
    464     }
    465  
     458    }
    466459 
    467460  // draw debug coord system
Note: See TracChangeset for help on using the changeset viewer.