WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-27-2014, 05: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
 


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
How to switch between menu screens RodRSpv Vizard 1 03-02-2009 03:18 PM


All times are GMT -7. The time now is 03:47 PM.


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