From: Bruce S. <bas...@un...> - 2003-09-05 15:01:33
|
Actually already in the new version there exist the options scene.stereo = 'redblue' (and also scene.stereo = 'redcyan'), intended to make stereo images viewable with simple red/blue glasses (red over the left eye). For redblue to work the scene has to be grayscale, not color, and therein lies a design issue, because there is more than one way to convert colors to grayscale, and the conversion depends somewhat on context. In order to enable lots of people to participate in the discussion of what conversion (or conversion options, plural) is/are appropriate, there is a grayscale conversion routine now available in the "Contributed programs" section of http://vpython.org. You can run it directly (it has a test scene in it), or you can say from visual import * from grayscale import * scene.stereo = 'redblue' # or 'redcyan' # make a color scene grayscale(scene) # do animation, etc. in 3D using red-blue glasses See the comments in the program for more about the issues. Or maybe Hugh Fisher or John Zelle will offer a tutorial here. Bruce Sherwood |