Next: Polygons
Up: 3D Rotation Specification
Previous: 3D Rotation User
\
- Define portion of screen to be projection of virtual sphere.
- Get two sequential samples of mouse position, S and T.
- Map 2D point S to 3D unit vector on sphere.
- Map 2D vector to 3D tangental velocity .
- Normalize .
- Axis: .
- Angle: .
(Choose so a rotation can be obtained.)
- Save T to use as S for next time.
CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab
cs488@cgl.uwaterloo.ca