Anaglyphs
The graphics in this book achieve a three-dimensional look from perspective effects and hidden-surface removal. A wholly different approach to three-dimensional graphics takes account of stereoscopic vision. In real life we see depth because our two eyes receive two slightly different views.
One of the common ways of displaying stereoscopic scenes is the anaglyph, which is a composite image that consists of a left-eye view and a right-eye view. Quite commonly, the left-eye view is tinted red, and the right-eye view is tinted cyan. Put on a pair of 3D glasses with a red filter over the left eye and a cyan filter over the right, and the picture seems to have depth.
The project that concludes this book attempts to create a red/cyan anaglyph ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access