diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-09-09 23:17:14 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-09-09 23:17:14 +0000 |
commit | 5e9ee8863e0ffe38551dcffb195a894129019a71 (patch) | |
tree | e9f60577e4419c9f03a0d2b68a30184efb71ada0 /demos/opengl/camera.cpp | |
parent | 146c9e449443453f3932b60cd1bab47f688403e7 (diff) |
opengl demo, now working:
- quaternion vs euler angles interpolation (though the Euler angle version looks a bit too bad)
- navigation using either a mapping from 2D screen coordinates to 3D points on a sphere
or the standard approach mapping mouse displacements as rotations around camera's axes.
Diffstat (limited to 'demos/opengl/camera.cpp')
-rw-r--r-- | demos/opengl/camera.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/demos/opengl/camera.cpp b/demos/opengl/camera.cpp index f704771b6..85fdc0c82 100644 --- a/demos/opengl/camera.cpp +++ b/demos/opengl/camera.cpp @@ -205,18 +205,6 @@ void Camera::localTranslate(const Vector3f& t) mViewIsUptodate = false; } -void Camera::localRotate(float dTheta, float dPhi) -{ - float dist = (position() - mTarget).norm(); - - setOrientation( AngleAxisf(dTheta, up()) - * AngleAxisf(dPhi, right()) - * orientation()); - mTarget = position() + dist * direction(); - - mViewIsUptodate = false; -} - void Camera::updateViewMatrix(void) const { if(!mViewIsUptodate) |