Today I will try without nVidia 3D Vision, special glasses and a 120Hz monitor to achieve true 3D images. The work will be done using the GLScene graphics library for Delphi / Lazarus / Borland C ++ on a PC with mediocre characteristics. You can repeat these actions using a camera, programs with a 3D image modeling function (for example, MathCAD, Maya, etc) or any GAPI. At the end of the article we need to get a three-dimensional image outside the monitor, which can be “touched”. This is not a revolution in technology, but a simple stereoscopic effect, which in everyday life is small, but fun for sight.
Stereo image
I will not describe here everything that Google can tell. Only the most important and necessary for work.
A stereo pair is a type of stereo image, represented by a pair of flat perspective images of an object, obtained from two different points of view, spaced at a distance to the corresponding interpupillary distance of a person.
First of all, we are interested in a horizontal stereo pair (side-by-side), which can be of two types: parallel and cross.

In parallel stereo pairs, the left image is intended for the left eye, and the right image - for the right one. For such images, the direction of gaze needs to be positioned in parallel, as if we were observing an object behind a screen.
Below you can see an example of a parallel stereo pair, and on the right is an image illustrating the direction of gaze.
')

In cross stereo pairs, the opposite is true: the left image is intended for the right eye, and the right image is for the left one. To observe the stereoscopic effect, we need to cross our eyes. The imaginary image will be located between you and the monitor, which will allow you to try to "touch" it.
An example from the past case. Just rearranged the images in places:
For each stereo image there are two imaginary - the main volumetric, and a mirror, turned inside out. If you see a mirror image, then simply change the focus to another (from cross to parallel or vice versa). For clarity, you can practice with the following image. It will change the depth of the arrangement of numbers relative to each other:
If the farthest number is 5, and the nearest is 4, then you are now looking at an example as a cross stereo pair. If on the contrary - as a parallel.
Viewing these pictures is an excellent training for people with a point of focus for a long time at the same distance from the eyes. Under this description are people involved in paper work or for PC. With good training with different stereo images, you can get rid of glasses and carry out prevention of the muscles of the eyeballs. But do not forget the measure, here as in sports: if it is not enough, then it is useful, if professionally, then you can be crippled. Parallel stereo pairs are more favorable for our vision, since this is a natural person’s view, but to learn how to see them, you need to practice well.
Only about 5% of people can not see stereo images at all. These people are not able to see the world in volume and they are not given the right to drive a car.
Implementation
To realize it on a photo / video camera, we need to place 2 devices on the same horizontal bar with distances between lenses of 7-8 cm. After that, the finished photos or video tracks should be aligned horizontally. Do not forget that you need to look at the images without tilting your head.
Now we are implementing this effect using the GLScene graphic library. We start the used IDE, we create VCL / LCL application, we place on the TGLScene form and two TGLScreenViewer. We set the size of the form to 800x400 and place viewers on it on the left and right sides. In TGLScene we create two cameras, a light source that should be placed in the second chamber, a ball, a couple of cubes, a plane. We will place both cameras in the TGLDummyCube, set the damm as TargetObject. Coordinates of cameras (3.0, -0.1) and (3.0.0.1). Do not forget to assign each viewer in his cell. There is no need to code. Desirable system requirements: widescreen monitor.
Here's what I got (the cameras are set for the cross stereo pair):
Download an example.Based on this, you can make a game, demoscene, or in the math package to see a complex graph.
Thank you all for your attention!
useful links
fishki.net/comment.php?id=65203images.google.comgoogle.ruExamples of parallel and cross stereopairs were taken from Wikipedia, the rest of the pictures are repeated many times on various sites with stereo images without attribution.