SmartBody : Configuring Gazing

SmartBody characters that use gazing need to have the following joints:

 

Joint Name

Joint NameGaze part
spine1Back
spine2Back
spine3Chest
spine4Chest
spine5Chest
skullbaseNeck
eyeball_leftEyes
eyeball_rightEyes

 

 

If a character lacks those joint names (or joints that are mapped to those names), then the gaze controller will be unable to properly function. For details on mapping skeletons to match the SmartBody format, see the section on Mapping Skeletons to SmartBody.

The gaze controller sets limits on the amount of movement for each joint that can be directed by the gaze. These limits can be adjusted by setting the following attributes on the character:

AttributeDefault ValueDescription
gaze.speedEyes1000

Relative speed of the eyes during gazing. The default value of 1000 is set to approximate

the speed of normal human eye movement. Thus, to move the eyes half as fast, set this to 500,

or twice as fast,set this to 2000.

gaze.speedNeck1000

Relative speed of the neck during gazing. The default value of 1000 is set to approximate

the speed of normal neck movement. Thus, to move the neck half as fast, set this to 500,

or twice as fast,set this to 2000.

gaze.limitPitchUpEyes-35The upper pitch limit of the eyes (X-axis)
gaze.limitPitchDownEyes35The lower pitch limit of the eyes (X-axis)
gaze.limitHeadingEyes40The heading limits of the eyes (Y-axis)
gaze.limitRollEyes0The roll limits of the eyes (Z-axis)
gaze.limitPitchUpNeck-45The upper pitch limit of the neck (X-axis)
gaze.limitPitchDownNeck45The lower pitch limit of the neck (X-axis)
gaze.limitHeadingNeck90The heading limits of the neck (Y-axis)
gaze.limitRollNeck35The roll limits of the neck (Z-axis)
gaze.limitPitchUpChest-6The upper pitch limit of the chest (X-axis)
gaze.limitPitchDownChest6The lower pitch limit of the chest (X-axis)
gaze.limitHeadingChest15The heading limits of the chest (Y-axis)
gaze.limitRollChest5The roll limits of the chest (Z-axis)
gaze.limitPitchUpBack-15The upper pitch limit of the back (X-axis)
gaze.limitPitchDownBack15The lower pitch limit of the back (X-axis)
gaze.limitHeadingBack30The heading limits of the back (Y-axis)
gaze.limitRollBack10The roll limits of the back (Z-axis)

 

For example, to make the speed of the eye movement 20% faster, do:

mycharacter = scene.getCharacter(name)
mycharacter.setDoubleAttribute("gaze.speedEyes", 1200)