Changeset 2605 for GTP/trunk/Lib/Vis
- Timestamp:
- 01/17/08 10:11:01 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlViewer.cpp
r2604 r2605 177 177 178 178 glLoadIdentity(); 179 gluLookAt(0.0f, 10.0f,0.0f, // eye is at (0,0,30)179 gluLookAt(0.0f, 0.0f, 10.0f, // eye is at (0,0,30) 180 180 0.0f, 0.0f, 0.0f, // center is at (0,0,0) 181 0.0f, 0.0f, 1.0f); // up is in positive Y direction181 0.0f, 1.0f, 0.0f); // up is in positive Y direction 182 182 183 183 build_rotmatrix(m.x, manipulatorLastQuat); … … 263 263 float quat[4]; 264 264 trackball(quat, 265 (2.0 * lastX - W) / W, 266 (H - 2.0 * lastY) / H, 267 (2.0 * x - W) / W, 268 (H - 2.0 * y) / H 269 ); 265 (2.0 * lastX - W) / W, 266 (H - 2.0 * lastY) / H, 267 (2.0 * x - W) / W, 268 (H - 2.0 * y) / H 269 ); 270 270 271 add_quats(quat, manipulatorLastQuat, manipulatorLastQuat); 271 272 }
Note: See TracChangeset
for help on using the changeset viewer.