Anaglyphic 3D (Red/Cyan) using Shaders
in
Share your Work
•
6 months ago
I couldn't find a simple method to create anaglyphs in Processing (there was
a library but it's deprecated) so I gave shaders a go.
Right now, we're merely taking two PImage objects (one for the left eye, one for the right eye) and combining them using one of two methods: simple Red/Cyan color filters or a channel subtraction somewhat similar to the
Dubois method. The first one was ported from straight GLSL and the second one from a Core Image filter by John Einselen (see references below).
I guess the next step will be to add two cameras, deal with divergence, assymetric frustrum and
the whole shebang :)
Fork it on Github:
https://github.com/SableRaf/Processing-Experiments/tree/master/2013/AnaglyphShader
I'm forever indebted to these people for making the original shaders: