#1
|
|||
|
|||
Temporarily cease Oculus DK2 rendering or hide display
I'm wondering if there is a way to momentarily stop rendering on the Oculus DK2? I'm looking to do something analogous to:
Code:
viz.setOption('viz.window.visible', 0) Code:
import oculus hmd = oculus.Rift() if not hmd.getSensor(): sys.exit('Oculus Rift not detected') else: profile = hmd.getProfile() hmd.setIPD(profile.ipd) # Setup navigation node and link to main view global navigationNode navigationNode = viz.addGroup() global viewLink viewLink = viz.link(navigationNode, viz.MainView) |
#2
|
|||
|
|||
Does the following work?
Code:
viz.setOption('viz.window.visible', 0) viz.MainWindow.visible(False) hmd.remove() |
#3
|
|||
|
|||
None of the options stop rendering or hide it or whatever on the hmd.
Code:
viz.MainWindow.visible(False) Code:
hmd.remove() I will have difficulty in hiding the scene with a quad since the user is immersed in the scene (subject can walk around and interact with the scene). In order to hide the scene with a quad I'd have to have reliable information about the head position and orientation which in the scenarios where I want to hide things, this data is inaccurate. Alternatively I think I'll try positioning a black sphere around the head when I want to hide the scene, so that only the position data needs to be robust. |
#4
|
|||
|
|||
You can use parent=viz.SCREEN to have an object in screen based coordinates instead of int eh virtual world. works with vizshape at least.
|
#5
|
|||
|
|||
@dcnieho, that's a great idea, it works great and you were right I don't have to worry about setting the position.
Code:
global HideSphere HideSphere = vizshape.addQuad(size=[1,1]) HideSphere.setParent(viz.SCREEN) HideSphere.setPosition(0.5,0.5,0) HideSphere.color(0,0,0) |
#6
|
|||
|
|||
Hi Jeff,
I wanted to note that the below: Is also a symptom of not having access to the screen on the HMD through vizard. It could well be the same underlying problem as getting resolution of HMD, etc. all viz.MainWindow operations are for the window on the desktop, not the HMD screen. |
Tags |
dk2, hide, oculus, rendering |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D text oculus for right to left languages | bbb | Vizard | 2 | 01-16-2016 07:02 AM |
Blank screen on external monitor when running a Vizard script with Oculus DK2 | mstan | Vizard | 4 | 09-03-2015 05:58 AM |
Oculus runtime disrupts clustering to mirror DK2 display | performlabrit | Vizard | 1 | 01-23-2015 07:00 AM |
Duplicate HMD display on primary monitor, with eyetracking info | performlabrit | Vizard | 3 | 09-19-2014 10:44 AM |