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:

four cubes with black edges. Going clockwise from the upper left, the cube faces are red, green, gray, and blue.four cubes with black edges. Going clockwise from the upper left, the cube faces are red, green, gray, and blue.

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

four cubes with black edges and red background. Going clockwise from the upper left, the cube faces are all shades of red.four cubes with black edges and cyan background. Going clockwise from the upper left, the cube faces are yellow, yellow, cyan, and blue.

Add the two images together, yielding:

four cubes with black edges. Going clockwise from the upper left, the cube faces are yellow, yellow, gray, and magenta.

Add finishing touches to the result with the postDraw method:

four cubes with black edges. Going clockwise from the upper left, the cube faces are yellow, yellow, gray, and magenta.

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:

four cubes with black edges and yellow background. Going clockwise from the upper left, the cube faces are red, green, yellow, and brown.four cubes with black edges and blue background. Going clockwise from the upper left, the cube faces are shades of blue.

Add them together to make the anaglyph.

four cubes with black edges. Going clockwise from the upper left, the cube faces are red, green, gray, and purple.

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.