WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-08-2017, 04:14 AM
DJV DJV is offline
Member
 
Join Date: Mar 2017
Posts: 12
Changing the monitor / TV view from Stereoscopic?

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
Reply With Quote
  #2  
Old 03-10-2017, 02:50 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Which HMD are you using?
Reply With Quote
  #3  
Old 03-10-2017, 03:58 AM
DJV DJV is offline
Member
 
Join Date: Mar 2017
Posts: 12
We have HTC Vive and want to display that normally. We have a monitor we want to display in mono

Thanks
Reply With Quote
  #4  
Old 03-13-2017, 03:13 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Add the following lines of code in either the postInit section of your vizconnect file or in your application script:

Code:
hmd = steamvr.getExtension().getHMDList()[0]
hmd.setMonoMirror(viz.ON)
Reply With Quote
  #5  
Old 03-15-2017, 07:46 AM
DJV DJV is offline
Member
 
Join Date: Mar 2017
Posts: 12
Jeff - I ran the code you suggested in the application and get this error :

Quote:
hmd.setMonoMirror(viz.ON)
AttributeError: 'SteamVRHMD' object has no attribute 'setMonoMirror'
Reply With Quote
  #6  
Old 03-16-2017, 01:07 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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:

Code:
import steamvr
hmd = steamvr.getExtension().getHMDList()[0]
hmd.setMonoMirror(True)
Do you still get an error? If so, please attach your vizconnect file here.
Reply With Quote
  #7  
Old 03-16-2017, 04:28 AM
DJV DJV is offline
Member
 
Join Date: Mar 2017
Posts: 12
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.
Reply With Quote
  #8  
Old 03-16-2017, 11:11 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The vizconnect introduction and tutorials 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.
Attached Files
File Type: zip vizconnect_config_vive.zip (3.7 KB, 1052 views)
Reply With Quote
  #9  
Old 03-17-2017, 06:30 AM
DJV DJV is offline
Member
 
Join Date: Mar 2017
Posts: 12
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 :

Quote:
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'
Reply With Quote
  #10  
Old 03-17-2017, 07:16 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
What version of Vizard 5 are you running, is it 5.7? You can check by going to Help > About Vizard.
Reply With Quote
  #11  
Old 03-17-2017, 10:52 AM
DJV DJV is offline
Member
 
Join Date: Mar 2017
Posts: 12
5.7 correct
Reply With Quote
  #12  
Old 03-19-2017, 09:14 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Try running the following code on it's own. Does this work?

Code:
import viz
viz.go()

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

viz.add('dojo.osgb')
Reply With Quote
  #13  
Old 03-20-2017, 07:39 AM
DJV DJV is offline
Member
 
Join Date: Mar 2017
Posts: 12
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.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
animation path problem - coordinates not resetting jelly Vizard 7 04-26-2016 10:45 AM
Stereoscopic view question atamasan Vizard 2 03-09-2010 09:13 PM
View nlfrnassimi Vizard 0 03-17-2009 02:01 AM
View nlfrnassimi Vizard 4 03-12-2009 05:25 AM
problem with stereo mode shivanangel Vizard 3 10-17-2006 09:58 AM


All times are GMT -7. The time now is 03:30 AM.


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