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 ...

Get 3D Programming for Windows® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.