Next: 6 Input management
Up: 5 Graphics
Prev: 5.1 Color
Contents
As hinted in the presentation, FORTRAN 3D offers the possibility, on certain terminals disposing of a sufficiently large number of colors, to obtain a stereoscopic set of images for a relief vision of the three-dimensional objects. The color table of these terminals must be totally modifiable (on an APOLLO station this necessitates utilization in "borrow" mode). The utilization of this function is very simple: It corresponds to call it directly after the terminal declaration (DEFDEV). Thereafter, the object is plotted totally normally without any other modification. To be able to distinguish the relief, it is of course necessary to wear a pair of glasses with red and green lenses, with the red lens on the left. If the stereoscopic image is printed on a color printer, it then necessary to look at it with red and cyan (blue and green) lenses, with red lens still on the left.
INTEGER FUNCTION STEREO(FLAG, ECART) LOGICAL FLAG REAL ECART
generates a red-green stereoscopic couple on a color graphics terminal, or a red-cyan stereoscopic couple on a printer.
The parameters are as follows: