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:


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


Add the two images together, yielding:


Add finishing touches to the result with the postDraw method:


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:


Add them together to make the anaglyph.


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.