#1
|
|||
|
|||
unlinking view from HMD
Hi,
I'm completely new to Vizard, and do also have only limited knowledge about python programming. But I hope you can help me with the following problem. I use an Oculus HMD together with my virtual environment, and the view-angle within the environment is automatically adapted to the input of the Oculus-gyroscope. So if you wear the HMD and you turn your head, the viewing direction within the virtual environment turns too. This is realized by the following code: Code:
hmd = oculus.Rift() sensor = hmd.getSensor() viz.link(hmd.getSensor(), viz.MainView) Is there any way of "unlinking" the view from the oculus for a limited period of time within the scenario? Thank you very much in advance! Best, Matthias |
#2
|
|||
|
|||
Hi Matthias,
You should create a variable for the link, and then you can remove the link. See the code below: Code:
hmd = oculus.Rift() sensor = hmd.getSensor() #To link viewLink = viz.link(hmd.getSensor(), viz.MainView) #To unlink: viewLink.remove() Good luck! Frank |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Freeform view on an animated object problem | jaylocco | Vizard | 2 | 06-08-2009 08:09 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 |
keeping a 3d object in front of the view | tavaksai | Vizard | 1 | 07-07-2004 09:33 AM |