#1
|
|||
|
|||
HeadTracking Rotation does not match
Hello everybody,
I really tried hard. But I don't get the Rotation of my Head right. The positional tracking works as I wanted it. Is swapQuat the right command for it? For example, if i roll the Headtarget the view pitches upwards. I don't understand the positions in the swapQuat. 1,2,3 means Rotation around the x,y,z achses from my tracking Device, right? My Tracking Target has the z-axis in viewing direction, y to the sky and x to the left. The Position in the matrix coresponds to the axis of my mainview. This is Z in the direction of my view and x to the right and y in the sky, right? Code:
head.swapPos([-1,3,-2]) head.swapQuat([-1,3,-2,4]) HeadLink=viz.link(head, viz.MainView) HeadLink.preEuler([0,0,270]) I just dont get it what to do. Can you help? Thanks a lot for a quick reply! |
#2
|
|||
|
|||
What tracking system are you using? The following code will do a right-to-left conversion:
Code:
#Negate Z value of position headTracker.swapPos([1,2,-3]) #Negate X,Y value of quaternion headTracker.swapQuat([-1,-2,3,4]) |
#3
|
|||
|
|||
Hi Jeff,
Vicon Tracker. |
#4
|
|||
|
|||
I really don't understand it. After two ours of trying I found this as a working solution.
Code:
#Negate Z value of position head.swapPos([-1,3,-2]) #Negate X,Y value of quaternion head.swapQuat([-1,-3,-2,4]) I would really appreciate if you could give me some Input on the swapQuat funkction. Thanks! Last edited by ChrisMa; 11-22-2013 at 04:27 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Joystick Rotation | mhead10 | Vizard | 9 | 11-26-2012 12:06 PM |
set bone rotation - cal3d | munteanu24d | Vizard | 0 | 03-23-2010 04:25 AM |
Unable to perform 360 rotation using vizact.spinto | vijaykiran | Vizard | 2 | 09-29-2009 08:39 AM |
tracking head rotation orientation | VAmanda | Vizard | 3 | 09-21-2005 04:57 PM |
getting absolute rotation | tavaksai | Vizard | 1 | 08-03-2004 01:40 PM |