Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I was reading this study where lazy eyes could be fix by playing this 3D game of Tetris: http://www.bbc.com/news/health-22245620 TL;DR The Tetris game is modified to where some blocks are red and some blocks are blue. By wearing 3D glasses, this forces both eyes to work together in order to complete the game. I bought some 3D glasses, but instead of playing Tetris, I would like to implement this on my Mac computer. Basically, I want my computer to display some parts of it in red, and some parts of it in blue. That way when I'm on the computer all the time, my eyes will be learning how to work together. Do you think it will work? Can someone one help me with this? The case study has been shown to work in adults as well, but I don't wanna play Tetris everyday for an hour. Especially since I'm on the computer for hours.
Posted
Comments
Sergey Alexandrovich Kryukov 13-May-15 23:24pm    
All right, what's the problem? What do you want to use on input, to generate anaglyph images? What language(s) do you want to use, Objective-C, Java, C#... UI and graphics library, and so on? How much work do you want to invest?
—SA

So, what's the problem? The ideas of anaglyph generations are fairly simple, but there are some delicate moments related to vision. Learn the theory; it's also not very complicated. I've selected some academic materials for you:
http://www.ee.cuhk.edu.hk/~snli/Anaglyph_SPIC2013.pdf[^],
http://www.alessandrofrancesconi.it/projects/anaglyphgenerator/ag_slideshow.pdf[^],
http://icit.zuj.edu.jo/icit09/PaperList/Papers/Image%20and%20Signal%20Processing/578.pdf[^],
http://cgit.nutn.edu.tw:8080/cgit/PaperDL/WSY_100506083318.PDF[^],
http://www.vis.uni-stuttgart.de/uploads/tx_vispublications/stereo-main_01.pdf[^],
http://www.academia.edu/7531567/3D_Image_Generation_from_One_Single_Image[^],
http://3dtv.at/Knowhow/AnaglyphComparison_en.aspx[^].

If this is not enough, you can find a lot of literature. After all, this is mostly the elementary stereo geometry. Consider two projections of a real 3D scene, on for one eye, another for another one, taking into account the distance between eyes. Model the mapping from to 3D to two 2D images, make then two semi-transparent monochrome images of two different colors. Match the model with the situation when a viewer uses a computer screen and color glasses.

See also this interesting CodeProject article: Creating a 3D Image from a DepthMap[^].

Sorry, the code is in C#, but 1) you need just to understand the algorithms, translating from C# is not a big problem; 2) you can use C# on Mac OS X through Mono, alternative open-source CLR implementation.

—SA
 
Share this answer
 
The problem is I'm not a coder! I'm going to outsource it anyway. Thanks for the help?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900