WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
stereo vision with nvidia 3d vision mina5500 Vizard 2 10-23-2010 08:53 AM
comparing data between 2 continous frame and stereo vision cyclonseye Vizard 1 08-02-2010 12:28 PM
question about NVIDIA 3D vision Weihua An Vizard 5 08-02-2010 06:49 AM
emagin stereo vision quadro fx 570 smith11235 Vizard 5 08-05-2008 12:01 PM
Positioning objects: center johannes2 Vizard 2 02-12-2008 02:56 AM


All times are GMT -7. The time now is 10:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC