PDA

View Full Version : screen reference frame for stereo


cade_mccall
05-17-2007, 11:54 AM
Hi-

I've got a program where I stick a texture quad to the screen, but when I run it in stereo it only appears in one eye. Is there a way to around that?

Thanks,
Cade

Jerry
05-18-2007, 10:49 AM
Here is one way:


from viz import *

go(STEREO)

scene(1, LEFT_EYE)
scene(2, RIGHT_EYE)

x = add(TEXT3D,'duck',SCREEN,1)
x1 = add(TEXT3D,'duck',SCREEN,2)

g = add('duck.wrl',WORLD,1)
g.duplicate(2)

g.translate(0,1.8,4)


Here the text message is added to the screen in both scene 1 and scene 2.
Any objects added to the world must be duplicated, as shown, in order to
appear in both eyes.