WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-18-2008, 11:23 AM
wouters wouters is offline
Member
 
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
Left and Right Eye Stereo

Hi,

I am trying to use two computers to render a simulation with Vizard. Is there any way to use one computer to render the left eye and one computer to render the right eye? Right now if I try to render the simulation this way only half of the screen has an image on it. Here is the code I am using to do this:

viz.ipd(0.06)
viz.go(viz.STEREO | viz.FULLSCREEN | viz.HMD)

viz.pushmask(viz.MASTER)
viz.setscene(2, viz.RIGHT_EYE)
viz.popmask()

viz.pushmask(viz.CLIENT1)
viz.setscene(3, viz.LEFT_EYE)
viz.popmask()
Reply With Quote
  #2  
Old 03-18-2008, 11:34 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You should use the viz.STEREO_RIGHT/viz.STEREO_LEFT modes for each computer. Here is some sample code:
Code:
viz.ipd(0.06)
viz.go(viz.FULLSCREEN)

viz.pushmask(viz.MASTER)
viz.stereo(viz.STEREO_RIGHT|viz.HMD)
viz.popmask()

viz.pushmask(viz.CLIENT1)
viz.stereo(viz.STEREO_LEFT|viz.HMD)
viz.popmask()
Reply With Quote
  #3  
Old 03-18-2008, 11:34 AM
wouters wouters is offline
Member
 
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
Smile

Never mind. I figured it out.

viz.pushmask(viz.MASTER)
viz.go(viz.STEREO_RIGHT | viz.FULLSCREEN | viz.HMD)
viz.popmask()

viz.pushmask(viz.CLIENT1)
viz.go(viz.STEREO_LEFT | viz.FULLSCREEN | viz.HMD)
viz.popmask()
Reply With Quote
Reply

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


All times are GMT -7. The time now is 09:56 AM.


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