November 2002
Intermediate to advanced
848 pages
19h 59m
English
Picking is a bread and butter user interface technique for 3D. There are many forms of picking which we will discuss shortly, but the general idea is that picking is the process of selecting an object or polygon with an input device.
A general algorithm for picking is depicted in Figure 12.4, and the steps are as follows:
1. |
Convert the mouse click or other input event into the display device coordinates (that is, screen).
|
2. |
Cast a ray from the user's eye position through the display device coordinates.
|
3. |
Convert the ray into the virtual space.
|
4. |
Test for the intersection of any eligible model parts with the ray and report these as picked.
|