Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10327 in orxonox.OLD for branches/playability/src


Ignore:
Timestamp:
Jan 24, 2007, 2:42:48 PM (18 years ago)
Author:
nicolasc
Message:

wobby unfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/effects/wobblegrid.cc

    r10298 r10327  
    164164
    165165  glPushAttrib(GL_ENABLE_BIT);
    166   glDisable(GL_LIGHTING);
    167   glDisable(GL_FOG);
     166//   glDisable(GL_LIGHTING);
     167//   glDisable(GL_FOG);
    168168
    169169  glMatrixMode(GL_MODELVIEW);
     
    174174  this->material->select();
    175175
    176  
    177176  glTranslatef (this->getAbsCoor ().x,
    178177                  this->getAbsCoor ().y,
     
    199198
    200199  Vector up = Vector(0, 1, 0);
    201   Vector h = up.cross(view);
    202   up = h.cross(view);
    203 
    204   Quaternion dir = Quaternion::lookAt( Vector(), view, up);
     200//   if ( up.dot(view) == 0 )
     201//     up = Vector(1, 0, 0);
     202//   if ( up.dot(view) == 0 )
     203//     up = Vector (0, 0, 1);
     204
     205  Vector h = up.cross(view/*.getNormalized()*/);
     206  up = h.cross(view/*.getNormalized()*/);
     207  Quaternion dir = Quaternion::lookAt( this->getAbsCoor(), this->getAbsCoor() + up, view);
     208//   Quaternion dir = Quaternion::lookAt( Vector(), view, up);
    205209  this->setAbsDir(dir);
    206210}
Note: See TracChangeset for help on using the changeset viewer.