Changeset 10327 in orxonox.OLD
- Timestamp:
- Jan 24, 2007, 2:42:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/effects/wobblegrid.cc
r10298 r10327 164 164 165 165 glPushAttrib(GL_ENABLE_BIT); 166 glDisable(GL_LIGHTING);167 glDisable(GL_FOG);166 // glDisable(GL_LIGHTING); 167 // glDisable(GL_FOG); 168 168 169 169 glMatrixMode(GL_MODELVIEW); … … 174 174 this->material->select(); 175 175 176 177 176 glTranslatef (this->getAbsCoor ().x, 178 177 this->getAbsCoor ().y, … … 199 198 200 199 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); 205 209 this->setAbsDir(dir); 206 210 }
Note: See TracChangeset
for help on using the changeset viewer.