From: Press, S. <sha...@ai...> - 2003-03-10 23:16:59
|
It isn't obvious, mainly because all the work is done in software (ie very few OpenGL calls). All the work is done in glrender.cpp The getprojection method sets the frustum using the paremeters <-R,R,-T,T,nearplane,farplane>. For what I am doing I call this method twice, returning a different frustum for the left and right windows <-R,0,-T,T,nearplane,farplane> <0,R,-T,T,nearplane,farplane> I assume you are trying to work in a single window however. For a stereo effect you simply: getbufferLE,getprojection(LE),render,getbufferRE,getprojection(RE),render On a non-stero card this of course will not work properly. VPython continuously renders so what happened to me in practice was that the left eye image would appear, the right eye image would appear and dissapear, wait while VPython does other stuff, left eye image appears etc This caused a strobing effect that made me ill. |