Changeset 2860 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Camera.cpp
- Timestamp:
- 08/21/08 20:17:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Camera.cpp
r2844 r2860 42 42 void Camera::Precompute(const Vector3 &direction) 43 43 { 44 /*45 Vector3 side = CrossProd(Vector3(1, 0, 0), direction);46 Vector3 up = -Normalize(CrossProd(side, direction));47 Vector3 right = -Normalize(CrossProd(direction, up));48 */49 44 Vector3 up = Vector3(0, 0, 1); 50 45 Vector3 right = Normalize(CrossProd(up, direction)); … … 53 48 mBaseOrientation = Matrix4x4(right, up, direction); 54 49 mViewOrientation = mBaseOrientation; 55 56 /*cout << "right: " << right << endl;57 cout << "up: " << up << endl;58 cout << "dir: " << direction << endl;59 */60 50 } 61 51 … … 241 231 } 242 232 243 Vector3 h2 = direction; // h2.x = 0;233 Vector3 h2 = direction; 244 234 245 235 if (SqrMagnitude(h2) > 0) 246 236 { 247 237 h2.Normalize(); 248 mYaw = -acos(DotProd(h2, h1)); //Vector3(0, 1, 0)));238 mYaw = -acos(DotProd(h2, h1)); 249 239 } 250 240
Note: See TracChangeset
for help on using the changeset viewer.