WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 01-31-2014, 07:28 AM
smat smat is offline
Join Date: Jan 2014
Posts: 1
unlinking view from HMD


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:

hmd = oculus.Rift()
sensor = hmd.getSensor(), viz.MainView)
However, here is the problem: In my scenario, it should be possible to temporarily "unlink" the viewing-angle from the HMD-input. While in some situations in the scenario the user should be able to "look around" and change the viewing angle by moving the HMD, in other situations, looking around should not be possible and the viewing angle should not change when the user moves/turns the HMD (because during this period of time, the viewing angle is passively changed, and should not be alterable by the user). In other words: I am looking for a way to "turn on" (use) and "turn off" (ignore) the oculus input multiple times within my scenario.

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!
Reply With Quote
Old 02-01-2014, 12:24 AM
Frank Verberne Frank Verberne is offline
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Hi Matthias,

You should create a variable for the link, and then you can remove the link. See the code below:
hmd = oculus.Rift()
sensor = hmd.getSensor()

#To link
viewLink =, viz.MainView)

#To unlink:
You should use the unlink code on the appropriate times in your code.

Good luck!
Reply With Quote

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
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

All times are GMT -7. The time now is 12:13 PM.

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