In this section of the tutorial we'll see how to use the Head and Hands avatar option. The head is used to move the viewpoint from a 1st person point of view and is not rendered. Either one or both hands can be rendered depending on the number of trackers and input devices available. Just like the previous sections, we'll use only the right hand.
Note: This section continues with the configuration and script used in the previous section.
This option works best in the 1st person so go ahead and remove the sub-window and group tracker used for the 3rd person viewpoint. From the Displays tab, select custom_window_2, and then click Remove Selected. From the Trackers tab, select group, and then click Remove Selected.
Let's also remove the male avatar. Go to the Avatars tab, select Male 2, and click Remove Selected.
Now click Add a New Avatar, select the Head and Hand option, and click Apply & Exit. Open the Animator Selection dialog box. Since there is no character to animate, the animator simply maps the tracker data to the head and hands without IK.
Click the button to assign a tracker for the head and select the options shown below:
Click the button to assign a tracker for the r_hand and select the options shown below:
After you've finished configuring the head and right hand click Apply & Exit to close the animator dialog box. In the scene graph tree, drag and drop custom_window under head and grabber under r_hand.
Now scroll the mouse wheel to move the hand in and out. The hand is fixed at head height because of the parent relationship that was defined in the animator. In the full avatar setup this was not an issue due to the IK constraints of the hand movement. To place the hand in a more reasonable starting position return to the Trackers tab. Select the Mouse Scrollwheel tracker and open the Offsets dialog box. Enter the following position offsets:
Run the script again. Although the hand is still relative to the head position, it can be moved as near or far away from the viewpoint as we want. This feature can be useful when manipulating objects with a desktop configuration.