PDA

View Full Version : Viz.visible(viz.OFF) does not work in SteamVR


Zhi
06-20-2016, 07:46 PM
Hi,

I am using HTC vive with Vizard 5. I found that once the steamvr is connected, i.e.

hmd = steamvr.HMD()
if not hmd.getSensor():
sys.exit('SteamVR HMD not detected')

the following command stops working,

viz.visible(viz.OFF)

Can anyone tell me why this happens? How to control the visibility of the VR world in HTC vive?

Thanks in advance!

Zhi

Jeff
06-20-2016, 11:37 PM
Try changing the scene to an empty scene:

#Show or hide scene 1
vizact.onkeydown('1',viz.MainWindow.setScene,1)
vizact.onkeydown('2',viz.MainWindow.setScene,2)

Zhi
06-22-2016, 03:15 AM
Cool, it works! Thank you Jeff.