View Single Post
  #2  
Old 02-15-2011, 09:51 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Are you just wanting to display a separate image to each eye? If so, here is a sample script showing how to accomplish this:
Code:
import viz
viz.go(viz.STEREO_HORZ|viz.FULLSCREEN)

# Create texture quads for each eye
left_quad = viz.addTexQuad(parent=viz.ORTHO)
left_quad.disable(viz.RENDER_RIGHT)
viz.link(viz.CenterCenter,left_quad)

right_quad = viz.addTexQuad(parent=viz.ORTHO)
right_quad.disable(viz.RENDER_LEFT)
viz.link(viz.CenterCenter,right_quad)

# Create texture for each eye
left_texture = viz.addTexture('townhall_L_posz.JPG')
right_texture = viz.addTexture('townhall_R_posz.JPG')

# Apply textures to quads
left_quad.texture(left_texture)
left_quad.setScale(left_texture.getSize())

right_quad.texture(right_texture)
right_quad.setScale(right_texture.getSize())
Reply With Quote