WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-26-2016, 06:59 AM
bbb bbb is offline
Member
 
Join Date: Nov 2015
Posts: 46
Head orientation data

Hi Jeff,
How does Vizard translate the head direction from the Oculus DK2 to shifts in the view? I need to know the head orientation of participant in the experiment as I already asked you about (http://forum.worldviz.com/showthread.php?t=5834) and i thought that maybe i can get it the way Vizard does.

Thanks.
Reply With Quote
  #2  
Old 10-26-2016, 05:05 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Are you using a vizconnect configuration file to connect to the Oculus? If so, viewpoint updates are based on parent nodes in the scenegraph. For example if there is both a tracker and a transport in the scenegraph, the final viewpoint orientation in global coordinates is equal to the transport orientation plus the tracker orientation.

To get a handle to the oculus tracker in a vizconnect based application, use the getTracker command with the tracker name defined in the vizconnect GUI:

Code:
oculusTracker = vizconnect.getTracker('head_tracker')
You can get a handle to the viewpoint orientation using the following:

Code:
view = viz.MainView
Use vizact.onupdate to register a function and get the tracker or viewpoint data each frame:

Code:
def printData():
	
	print 'tracker orientation', oculusTracker.getEuler()
	print 'view orientation',view.getEuler()
	
vizact.onupdate(0,printData)
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
Adjusting starting head orientation of viztracker surf3rguy Precision Position Tracker (PPT) 4 01-06-2012 05:47 PM
problem in setting the orientation of bones bharatbhushan Vizard 0 06-30-2009 04:30 AM
Head tracking logging & realtime data tmcw Vizard 2 08-18-2007 10:31 AM
tracking head rotation orientation VAmanda Vizard 3 09-21-2005 04:57 PM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 08:48 AM


All times are GMT -7. The time now is 06:34 AM.


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