Skip to main content
Up and Coming
January 5, 2015

Viewing Red/Cyan Anaglyphs with the Rift

Howdy,

I'm trying to experiment with viewing red/cyan anaglyph photos and videos using the Rift. I tried rendering a transparent cyan layer over the right eye and a red over the left, but it didn't seem to do the trick. Has anyone messed with this? Can anyone provide some insight into how this might work? Thanks so much.

VRex

    6 replies

    Inspiring
    January 5, 2015
    The way you do it is you discard a particular color channel (or pair of channels) from each eye.

    So for standard red/cyan anaglyph you would discard the red channel from the left eye, and then discard the blue and green channels from the right eye. You can do this pretty easily with a full-screen pixel shader, for example.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    January 6, 2015
    Obviously you don't want to put color filters in your Oculus Rift! :lol:
    Better idea is to convert them to side-by-side pairs with free software like StereoPhoto Maker.

    http://stereo.jpn.org/eng/stphmkr/
    Up and Coming
    January 23, 2015
    "cybereality" wrote:
    The way you do it is you discard a particular color channel (or pair of channels) from each eye.
    So for standard red/cyan anaglyph you would discard the red channel from the left eye, and then discard the blue and green channels from the right eye. You can do this pretty easily with a full-screen pixel shader, for example.


    You don't discard any colors because that will break the image.
    What if there was a blue object.
    In one eye you would see the blue object, and in the other eye you would not even see it.

    You would instead combine (R+G+B)/3 per pixel, and put that result into either the red, or blue channel for left or right.
    Inspiring
    January 23, 2015
    @matlock: I believe my instructions were correct. What I was talking about was how to take a stereo image already encoded as an anaglyph and viewing it with a Rift. Basically converting anaglyph into side-by-side. What you are saying is how to encode an anaglyph image from a full color stereo image. That is actually the opposite of what the OP is asking.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    New Participant
    April 4, 2016
    VR + Anaglyph could theoretically increase the resolution. Videos not need to divide into two windows. But maybe it's stupid.
    New Participant
    April 4, 2016
    But we are talking primarily about Cardboard Solutions.