Selecting locations on a texture map

This first demonstration will show how we select specific points on a texture map facing the camera, without rotation. We shall use the periodic table from chemistry to select specific atomic elements. While we have performed ray-bounding box intersections in previous examples, this is quite different in that we want to select a specific location within the texture map. Such an application is well suited to select an item from a textured wall, such as an image of a doorknob, a light switch, or in education, pointing to specific organs of a human being.

Prepare for lift off

Our first example is applied to chemistry but the actual demonstration is picking an exact point in a polygon. We are using the mouse to select ...

Get WebGL HOTSHOT now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.