
Using 3D Data
53
# Store all the tracker sensors we can find, it does not matter if
some are not available
composite.storeTracker(composite.HEAD, viz.mergeLinkable(headpos,
headori))
composite.storeTracker(composite.LHAND,
vrpn7.addTracker(
'PPT0@'
+hostname,
1
))
composite.storeTracker(composite.RHAND,
vrpn7.addTracker(
'PPT0@'
+hostname,
2
))
composite.storeTracker(composite.LFOOT,
vrpn7.addTracker(
'PPT0@'
+hostname,
3
))
composite.storeTracker(composite.RFOOT,
vrpn7.addTracker(
'PPT0@'
+hostname,
4
))
composite.storeTracker(composite.HIP,
vrpn7.addTracker(
'PPT0@'
+hostname,
5
))
# Make the orientation of the hands match that of the viewpoint (if
selected)
copyHandOri =
1
if
copyHandOri: composite.copyHandOriFromHead()
# ---- Display ----
pass
# ---- Input ----
composite.createLeftHand(hand.MultiInputSensor(pinchButtons=[viz.KEY_PA
GE_UP,viz.MOUSEBUTTON_LEFT], fistButtons=[viz.MOUSEBUTTON_MIDDLE]))
composite.createRightHand(hand.MultiInputSensor(pinchButtons=[viz.KEY_P
AGE_DOWN,viz.MOUSEBUTTON_RIGHT], fistButtons=[viz.MOUSEBUTTON_MIDDLE]))
# ---- Avatar ----
composite.createAvatarNone()
# ---- Finalize Composite ----
composite.finishTrackers()
composite.defineViewpoint(offset=[
0
,
0
,
0
])
# Can adjust the
position of the viewpoint if needed
# ---- Extra Adjustments Editable By The User ----
# Note that the examples below will not work with LiveCharacters,
only inputs with individual trackers
#
composite.getRawTracker(composite.HEAD).getLink().postEuler([0,0,45])
# Apply 45 degree offset to the head tracker
# composite.getLeftHand().setScale([2,2,2])
# Apply scale to the left hand representation
# composite.getLeftHand().alpha(0.0)
# Make the left hand invisible
# composite.getRawTracker(composite.LHAND).getLink().postTrans([0,-
Содержание PPT-E
Страница 1: ...WorldViz Precision Position Tracker Operating Instructions WorldViz 2011...
Страница 2: ......
Страница 6: ......
Страница 8: ......
Страница 37: ...Hardware Installation 31...
Страница 40: ...PPT User s Manual 34...
Страница 52: ...PPT User s Manual 46...
Страница 64: ...PPT User s Manual 58 USING THE 3D VIEW...
Страница 99: ...Usage Scenarios 93...
Страница 138: ...PPT User s Manual 132...
Страница 150: ...PPT User s Manual 144...