WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-07-2009, 09:46 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
Here's a simple stereo viewer which presents the left and right
side-by-side stereo image to the left and right eye of an HMD.
This works with a stereo video as well as a stereo still image.

Code:
from viz import *

go(HMD | STEREO)

thepic = add('stereoimage.jpg')

screen1 = add(TEXQUAD, WORLD, 1)
screen1.scale(2,.8,1)
screen1.translate(.5,1.82,.91)

screen2 = add(TEXQUAD, WORLD, 2)
screen2.scale(2,.8,1)
screen2.translate(-.44,1.82,.91)

setscene(1, LEFT_EYE)
setscene(2, RIGHT_EYE)

screen1.texture(thepic)
screen2.texture(thepic)
Reply With Quote
Reply


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
Connecting vizard to a camera dan12345 Vizard 1 11-11-2008 03:09 PM


All times are GMT -7. The time now is 09:20 PM.


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