View Single Post
  #2  
Old 02-27-2014, 04:50 PM
masaki masaki is offline
Member
 
Join Date: Jan 2008
Posts: 63
One way to do this would be to let Vizard's application window span the entire width of the oculus and your external monitor. Then you can have 2 sub-windows but have one cover the width of the oculus and the next cover the width of the external monitor. If your monitor is not the same resolution as the oculus, you'll need to figure out exactly how to size and position your sub windows. You Also need to take into consideration where the external monitor is relative to the oculus e.g. left or right. The following example works on an Oculus running at 1080 with another monitor to the right of it at the same resolution.
Code:
import viz
import oculus

viz.go()

#set your full screen rectangle to be exactly double the width of 1920x1080
viz.window.setFullscreenRectangle([0,0,1920*2,1080])
viz.window.setFullscreen(1)

#create a subwindow for the mono view
monoWindow = viz.addWindow()
#set the width of the subwindow to be half
monoWindow.setSize(.5,1)
#position the subwindow to start half way 
monoWindow.setPosition(.5,1)
#render the main window in stereo for the oculus
oculus.Rift( window=viz.MainWindow )
#set window size to half width
viz.MainWindow.setSize(.5,1)

viz.add('piazza.osgb')
The other option is to use a local cluster.

Masaki
Reply With Quote