PDA

View Full Version : Changing the monitor / TV view from Stereoscopic?


DJV
03-08-2017, 04:14 AM
Is there any way to make the monitor view one eye? or make it mono like a conventional screen? The request was made by some viewing this to have it a conventional view when we are using a HMD, we want to be able to see the monitor, or TV as a mono view.

Any help is appreciated.

Thanks

Jeff
03-10-2017, 02:50 AM
Which HMD are you using?

DJV
03-10-2017, 03:58 AM
We have HTC Vive and want to display that normally. We have a monitor we want to display in mono

Thanks

Jeff
03-13-2017, 03:13 AM
Add the following lines of code in either the postInit section of your vizconnect file or in your application script:

hmd = steamvr.getExtension().getHMDList()[0]
hmd.setMonoMirror(viz.ON)

DJV
03-15-2017, 07:46 AM
Jeff - I ran the code you suggested in the application and get this error :


hmd.setMonoMirror(viz.ON)
AttributeError: 'SteamVRHMD' object has no attribute 'setMonoMirror'

Jeff
03-16-2017, 01:07 AM
Make sure you have the latest version of Vizard 5 by going to Help > Check for Updates. Then try adding the following code in the postInit section of the vizconnect file:

import steamvr
hmd = steamvr.getExtension().getHMDList()[0]
hmd.setMonoMirror(True)

Do you still get an error? If so, please attach your vizconnect file here.

DJV
03-16-2017, 04:28 AM
I cannot find any file named only vizconnect. I apologize as im completely new to this.

Looked for any extension but to no avail. I tried the vizconnect_config file as well as the vizconnect_config_steamvr files but to no avail.

Thanks again for the help Jeff.

Jeff
03-16-2017, 11:11 PM
The vizconnect introduction (http://docs.worldviz.com/vizard/#vizconnect_introduction.htm) and tutorials (http://docs.worldviz.com/vizard/#vizconnect_tutorial_displays_and_trackers.htm) are a good place to start for learning vizconnect.

Try running the attached vizconnect file. This was created with the vive preset option in vizconnect and then modified by adding the mono mirror code to the postInit section.

DJV
03-17-2017, 06:30 AM
Thanks - I'm reading them now. I appreciate all the help. I've been slowly gaining ground in this through no small part to your efforts - Thanks again!


I've inserted your vizconnect file, and added into my code :

vizconnect.go('vizconnect_config_vive')


I get this error :

Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\Users\330-FGVR1\Desktop\VR\CT\_SCAN TEMPLATE.py", line 11, in <module>
vizconnect.go('vizconnect_config_vive')
File "C:\Program Files\WorldViz\Vizard5\python\vizconnect\__init__. py", line 2178, in go
ConfigurationManager.add(fullPath)
File "C:\Program Files\WorldViz\Vizard5\python\vizconnect\__init__. py", line 500, in add
newConfiguration.add(callVizGo=isFirstGoCall)
File "C:\Program Files\WorldViz\Vizard5\python\vizconnect\__init__. py", line 207, in add
self._postInit()
File "C:\Program Files\WorldViz\Vizard5\python\vizconnect\__init__. py", line 336, in _postInit
self._returns['postInit'] = self._module.postInit()
File "C:/Users/330-FGVR1/Desktop/VR/CT/vizconnect_config_vive.py", line 592, in postInit
hmd.setMonoMirror(True)
AttributeError: 'SteamVRHMD' object has no attribute 'setMonoMirror'

Jeff
03-17-2017, 07:16 AM
What version of Vizard 5 are you running, is it 5.7? You can check by going to Help > About Vizard.

DJV
03-17-2017, 10:52 AM
5.7 correct

Jeff
03-19-2017, 09:14 PM
Try running the following code on it's own. Does this work?

import viz
viz.go()

import steamvr
hmd = steamvr.HMD()
hmd.setMonoMirror(True)
viz.link(hmd.getSensor(), viz.MainView)

viz.add('dojo.osgb')

DJV
03-20-2017, 07:39 AM
Yes that code works.

I imported that into my current file and the window appears mono.
I however am stuck in the loaded position and when I attempt to navigate the hands move away from me and the HMD display is stuck in the position the file opens.

Thanks for your ongoing support. It's clear I have alot to learn and your help has been invaluable.