WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-04-2014, 01:35 AM
Erikvdb Erikvdb is offline
Member
 
Join Date: May 2013
Posts: 63
The code I use does the same trick but handles different resolutions automatically:

Code:
class Extend:
	def __init__(self):
		monitors = viz.window.getMonitorList()
		for m in monitors:
			if m.primary == True:
				ctrlsize = list(m.size)
			else:
				hmdsize = list(m.size)
		self.ctrlview = viz.addView()
		self.ctrlwndw = viz.addWindow()
		self.ctrlwndw.setSize(ctrlsize, mode=viz.WINDOW_PIXELS)
		self.ctrlwndw.setPosition(0,ctrlsize[1], mode=viz.WINDOW_PIXELS)
		self.ctrlwndw.setView(self.ctrlview)
		viz.MainWindow.setSize(hmdsize, mode=viz.WINDOW_PIXELS)
		viz.MainWindow.setPosition(ctrlsize,mode=viz.WINDOW_PIXELS)
This puts a normal, control window on your primary monitor and the viz.MainWindow on the secondary monitor, which would be your Oculus.
It does assume that the secondary monitor is on the right side of the primary.
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 02:18 PM


All times are GMT -7. The time now is 11:22 AM.


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