Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
VRex's avatar
VRex
Protege
11 years ago

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

  • 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.
  • Matlock's avatar
    Matlock
    Honored Guest
    "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.
  • @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.
  • AlesCZ's avatar
    AlesCZ
    Honored Guest
    VR + Anaglyph could theoretically increase the resolution. Videos not need to divide into two windows. But maybe it's stupid.
  • AlesCZ's avatar
    AlesCZ
    Honored Guest
    But we are talking primarily about Cardboard Solutions.