![]() |
|
#1
|
|||
|
|||
|
apply transformations on vizconnect link
Dear All,
As part of our experiment setup, we use a few link operations to, e.g., rotate the virtual world with respect to the physical world. This worked fine before when i imported my own trackers and manually linked them to the MainView. With vizconnect, I can't get this to work, I am probably abusing something or missing a priority setting. This is the example code Code:
headTrack = vizconnect.getTracker('head_tracker')
headLink = headTrack.getLink()
posRotationOperator = headLink.postEuler([0,0,0], target=viz.LINK_POS_OP)
posRotationOperator.setEuler([10,0,0])
# if i now try to see if the view differs from the raw tracker output, i see it doesn't:
print tuple(headTrack.getPosition(viz.ABS_GLOBAL)) + tuple(headTrack.getPosition(viz.ABS_GLOBAL)))
print tuple(headLink.getPosition(viz.ABS_GLOBAL)) + tuple(headLink.getEuler(viz.ABS_GLOBAL)))
print tuple(viz.MainView.getPosition(viz.ABS_GLOBAL)) + tuple(viz.MainView.getEuler(viz.ABS_GLOBAL)))
Thanks! |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Switching between input devices setup in vizconnect and not using vizconnect | JB_HP_Viz | Vizard | 1 | 01-20-2015 06:19 AM |
| Vizconnect Save As Dialog | Jeff | Vizard | 0 | 05-01-2014 10:45 AM |
| Introducing a rotation offset into a link | EnvisMJ | Vizard | 1 | 11-13-2013 06:51 AM |
| Link only one Axis | Andy | Vizard | 7 | 06-18-2013 03:30 AM |
| Pre/Post transformations | pattie | Vizard | 5 | 10-02-2006 05:20 PM |