Skip to main content

Dubois Anaglyphs

This is the most advanced Generator, based on a research paper written by Erik Dubois. The algorithm is explained in detail here. Camera3D implements the algorithm in a highly optimized way so it can be used in a real-time animation.

Start with the same right and left images:

/images/camera3D/dubois_redcyan_anaglyph/fourcubes-left-component.png/images/camera3D/dubois_redcyan_anaglyph/fourcubes-right-component.png

Filter each image. For this Generator, all colors are mapped to a shade of red or a shade of cyan.

/images/camera3D/dubois_redcyan_anaglyph/fourcubes-left-component-modified.png/images/camera3D/dubois_redcyan_anaglyph/fourcubes-right-component-modified.png

Add the two images together, yielding:

/images/camera3D/dubois_redcyan_anaglyph/fourcubes-composite.png

Add finishing touches to the result with the postDraw method:

/images/camera3D/dubois_redcyan_anaglyph/fourcubes-final.png

With red-cyan 3D Glasses the red and green cubes look yellow. The blue one doesn't look that great but it would look better with a less intense blue.

This Generator can make amber-blue anaglyphs. This is how the images are filtered:

/images/camera3D/dubois_amberblue_anaglyph/fourcubes-left-component-modified.png/images/camera3D/dubois_amberblue_anaglyph/fourcubes-right-component-modified.png

Add them together to make the anaglyph.

/images/camera3D/dubois_amberblue_anaglyph/fourcubes-composite.png

With amber-blue 3D Glasses the red cube looks redish-pink, the green cube looks green and the blue cube looks like a brownish-purple. Everything has a color of some kind that is close to the original. This is the genius of Dubois anaglyphs and amber-blue filtering.

Also notice that without glasses the end result looks more reasonable than the others do without glasses.

If you are a Dubois Anaglyph aficionado, you may want to enter your own transformation matrices instead of using the default values provided for you by Camera3D. Look at the Javadocs or source code to learn how to do this.