mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 15:23:56 +02:00
Merge pull request #105 from birarda/master
fix the size of the heads of other avatars
This commit is contained in:
commit
93c47aa6e6
1 changed files with 8 additions and 24 deletions
|
@ -718,41 +718,25 @@ void Head::renderHead(int faceToFace) {
|
|||
glPushMatrix();
|
||||
|
||||
if (_usingBodySprings) {
|
||||
glTranslatef
|
||||
(
|
||||
_bone[ AVATAR_BONE_HEAD ].springyPosition.x,
|
||||
_bone[ AVATAR_BONE_HEAD ].springyPosition.y,
|
||||
_bone[ AVATAR_BONE_HEAD ].springyPosition.z
|
||||
);
|
||||
glTranslatef(_bone[ AVATAR_BONE_HEAD ].springyPosition.x,
|
||||
_bone[ AVATAR_BONE_HEAD ].springyPosition.y,
|
||||
_bone[ AVATAR_BONE_HEAD ].springyPosition.z);
|
||||
}
|
||||
else {
|
||||
glTranslatef
|
||||
(
|
||||
_bone[ AVATAR_BONE_HEAD ].position.x,
|
||||
_bone[ AVATAR_BONE_HEAD ].position.y,
|
||||
_bone[ AVATAR_BONE_HEAD ].position.z
|
||||
);
|
||||
glTranslatef(_bone[ AVATAR_BONE_HEAD ].position.x,
|
||||
_bone[ AVATAR_BONE_HEAD ].position.y,
|
||||
_bone[ AVATAR_BONE_HEAD ].position.z);
|
||||
}
|
||||
|
||||
|
||||
glScalef( 0.03, 0.03, 0.03 );
|
||||
|
||||
glRotatef(_head.yaw, 0, 1, 0);
|
||||
glRotatef(_head.pitch, 1, 0, 0);
|
||||
glRotatef(_head.roll, 0, 0, 1);
|
||||
|
||||
// Overall scale of head
|
||||
if (faceToFace) glScalef(2.0, 2.0, 2.0);
|
||||
else glScalef(0.75, 1.0, 1.0);
|
||||
glScalef(2.0, 2.0, 2.0);
|
||||
glColor3fv(skinColor);
|
||||
|
||||
|
||||
// Head
|
||||
if (_isMine) {
|
||||
glColor3fv(skinColor);
|
||||
}
|
||||
else {
|
||||
glColor3f(0,0,1); // Temp: Other people are BLUE
|
||||
}
|
||||
glutSolidSphere(1, 30, 30);
|
||||
|
||||
// Ears
|
||||
|
|
Loading…
Reference in a new issue