i
i
i
i
i
i
i
i
Contents xi
16.4DisplayingStereoscopicImages .............. 441
16.5AStereoscopicMoviePlayer................ 446
16.6 Capturing Stereo Pictures from a Pair of Video Cameras . . 459
16.7MakingaStereoMoviefromImageSequences....... 467
16.8 Summary . ........................ 475
Bibliography........................... 475
17 Programming Input and Force Feedback 477
17.1DirectInput ........................ 479
17.2ForceFeedbackwithDirectInput ............. 484
17.3HapticSoftwareLibrariesandTools............ 489
17.4Middleware ........................ 494
17.5 Interfacing Custom VR Hardware with the Applications . 496
17.6 Summary . ........................ 505
Bibliography........................... 505
18 Building on the Basics, Some Projects in VR 507
18.1VideoEditing ....................... 508
18.2 Stereo Movie and Picture Output for a Head-Mounted
Display........................... 510
18.3 Video Processing . . . ................... 510
18.4Chroma-Keying ...................... 511
18.5AMulti-ProjectorVRTheaterSystem........... 514
18.6 Using Image-Processing and Computer-Vision Libraries . . 520
18.7 Augmented Reality (AR) .................. 521
18.8VirtualSculptingin3D .................. 526
18.9 Summary . ........................ 534
Bibliography........................... 534
A Rotation with Quaternions 537
A.1 TheQuaternion...................... 538
A.2 QuaternionsandRotation................. 539
A.3 ConvertingaMatrixtoaQuaternion ........... 542
A.4 ConvertingaQuaterniontoEulerAngles ......... 542
A.5 InterpolatingQuaternions................. 544
B The Generalized Inverse 547
C Aligning Two Images in a Panoramic Mosaic 549