Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10552 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 31, 2007, 7:23:36 AM (18 years ago)
Author:
patrick
Message:

trail removed

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/npc.cc

    r10550 r10552  
    8181  this->registerObject(this, NPC::_objectList);
    8282
    83   this->toList(OM_GROUP_01);
     83  this->toList(OM_GROUP_00);
    8484  this->bAIEnabled = false;
    8585
  • trunk/src/world_entities/space_ships/space_ship.cc

    r10543 r10552  
    387387
    388388  /// FIXME
    389   this->trail = new Trail( 5, 10, .2, this);
    390   this->trail->setTexture( "textures/engine.png");
    391 
    392   this->trailL = new Trail( 5, 10, .2, this);
    393   this->trailL->setTexture( "textures/engine.png");
    394 
    395   this->trailR = new Trail( 5, 10, .2, this);
    396   this->trailR->setTexture( "textures/engine.png");
     389//   this->trail = new Trail( 5, 10, .2, this);
     390//   this->trail->setTexture( "textures/engine.png");
     391//
     392//   this->trailL = new Trail( 5, 10, .2, this);
     393//   this->trailL->setTexture( "textures/engine.png");
     394//
     395//   this->trailR = new Trail( 5, 10, .2, this);
     396//   this->trailR->setTexture( "textures/engine.png");
    397397
    398398
     
    499499  WorldEntity::draw();
    500500
    501   glMatrixMode(GL_MODELVIEW);
    502   glPushMatrix();
    503 
    504   float matrix[4][4];
    505   glTranslatef (this->getAbsCoor ().x-1, this->getAbsCoor ().y-.2, this->getAbsCoor ().z);
    506   this->getAbsDir().matrix (matrix);
    507   glMultMatrixf((float*)matrix);
     501//   glMatrixMode(GL_MODELVIEW);
     502//   glPushMatrix();
     503
     504//   float matrix[4][4];
     505//   glTranslatef (this->getAbsCoor ().x-1, this->getAbsCoor ().y-.2, this->getAbsCoor ().z);
     506//   this->getAbsDir().matrix (matrix);
     507//   glMultMatrixf((float*)matrix);
    508508  //glScalef(2.0, 2.0, 2.0);  // no double rescale
    509509
    510510
    511   this->trail->draw();
    512 
    513   glTranslatef(0,0,-.5);
    514   this->trailL->draw();
    515 
    516   glTranslatef(0,0,1);
    517   this->trailR->draw();
    518 
    519   glPopMatrix();
     511//   this->trail->draw();
     512
     513//   glTranslatef(0,0,-.5);
     514//   this->trailL->draw();
     515
     516//   glTranslatef(0,0,1);
     517//   this->trailR->draw();
     518
     519//   glPopMatrix();
    520520  //this->debug(0);
    521521}
     
    579579
    580580//FIXME
    581   this->trail->tick(time);
    582   this->trailL->tick(time);
    583   this->trailR->tick(time);
     581//   this->trail->tick(time);
     582//   this->trailL->tick(time);
     583//   this->trailR->tick(time);
    584584
    585585  if (!this->isTravelDistanceInit)
     
    11431143void SpaceShip::setCameraDistance(float dist)
    11441144{
    1145      
     1145
    11461146  CameraMan* cm = State::getCameraman();
    11471147  Camera* c = cm->getCurrentCam();
    11481148  c->setViewTopDistance(dist);
    1149  
     1149
    11501150  if (this->hasPlayer())
    11511151    this->isTravelDistanceInit = false;
     
    11541154void SpaceShip::setCameraFovy(float fovy)
    11551155{
    1156      
     1156
    11571157  CameraMan* cm = State::getCameraman();
    11581158  Camera* c = cm->getCurrentCam();
    11591159  c->setViewTopFovy(fovy);
    1160  
     1160
    11611161  if (this->hasPlayer())
    11621162    this->isTravelDistanceInit = false;
     
    11671167     CameraMan* cm = State::getCameraman();
    11681168     Camera* c = cm->getCurrentCam();
    1169      
    1170      
     1169
     1170
    11711171  float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0);
    11721172  float y = x / c->getAspectRatio() / this->actionWidthPercentage;
Note: See TracChangeset for help on using the changeset viewer.