#1
|
|||
|
|||
Manipulating Tracker View
Hi There,
I use an Ascension FOB and I want to change the main view, i.g. rotate around the z-axis, so that the view for example looks always 90 deg rotated to the actual tracking view. Any Ideas? Thanks, Mike |
#2
|
|||
|
|||
Ok, I got it!
Code:
data = tracker.get() view = viz.get(viz.MAIN_VIEWPOINT) view.reset(viz.BODY_ORI) view.setEuler(data[3]+180,data[4],data[5], viz.BODY_ORI, viz.ABS_LOCAL) |
#3
|
|||
|
|||
You can also use a link to have Vizard automatically perform this operation for you. Example:
Code:
headLink = viz.link(tracker,viz.MainView,dstFlag=viz.LINK_BODY) headLink.postEuler([180,0,0],target=viz.LINK_ORI_OP) |
#4
|
|||
|
|||
Nice, thank you very much, works perfectly!!
Cheers Mike |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Interface with Tobii Eye Tracker | Uttama_vizard | Precision Position Tracker (PPT) | 1 | 12-12-2007 11:31 AM |
Can Vizard interact with the Arrington eye tracker? | Deltcho | Vizard | 1 | 09-18-2007 02:38 PM |
problem with stereo mode | shivanangel | Vizard | 3 | 10-17-2006 09:58 AM |
Moving view with object | Xliben | Vizard | 2 | 07-25-2005 05:36 PM |
keeping a 3d object in front of the view | tavaksai | Vizard | 1 | 07-07-2004 09:33 AM |