| 434 |
textureMan.OnTextureLoaded += textureCompleteCallback; |
textureMan.OnTextureLoaded += textureCompleteCallback; |
| 435 |
} |
} |
| 436 |
|
|
| 437 |
AVControl = new AvatarController(avatarConnection); |
AVControl = new AvatarController(avatarConnection, null); |
| 438 |
|
|
| 439 |
smgr.SetAmbientLight(new Colorf(0.6f, 0.6f, 0.6f, 0.6f)); |
smgr.SetAmbientLight(new Colorf(0.6f, 0.6f, 0.6f, 0.6f)); |
| 440 |
|
|
| 681 |
// Update Interpolation targets |
// Update Interpolation targets |
| 682 |
updateInterpolationTargets(); |
updateInterpolationTargets(); |
| 683 |
|
|
| 684 |
|
AVControl.update(System.Environment.TickCount - tickcount); |
| 685 |
|
|
| 686 |
// Ensure that the camera is still pointing at the target object |
// Ensure that the camera is still pointing at the target object |
| 687 |
cam.CheckTarget(); |
cam.CheckTarget(); |
| 688 |
|
|
| 725 |
|
|
| 726 |
if ((framecounter % modAVUpdates) == 0) |
if ((framecounter % modAVUpdates) == 0) |
| 727 |
{ |
{ |
| 728 |
AVControl.update(System.Environment.TickCount - tickcount); |
AVControl.UpdateRemote(); |
| 729 |
|
|
| 730 |
} |
} |
| 731 |
|
|
| 732 |
// Frame Limiter |
// Frame Limiter |
| 1064 |
} |
} |
| 1065 |
} |
} |
| 1066 |
|
|
| 1067 |
|
// Is this an update about us? |
| 1068 |
|
if (vObj.prim.ID == avatarConnection.GetSelfUUID) |
| 1069 |
|
{ |
| 1070 |
|
if (UserAvatar == null) |
| 1071 |
|
SetSelfVObj(vObj); |
| 1072 |
|
|
| 1073 |
|
} |
| 1074 |
|
|
| 1075 |
// Display the avatar's name over their head. |
// Display the avatar's name over their head. |
| 1076 |
SceneNode trans = smgr.AddEmptySceneNode(node, -1); |
SceneNode trans = smgr.AddEmptySceneNode(node, -1); |
| 1077 |
node.AddChild(trans); |
node.AddChild(trans); |
| 2427 |
} |
} |
| 2428 |
} |
} |
| 2429 |
|
|
|
// Is this an update about us? |
|
|
if (avatar.ID == avatarConnection.GetSelfUUID) |
|
|
{ |
|
|
if (UserAvatar == null) |
|
|
SetSelfVObj(avob); |
|
| 2430 |
|
|
|
} |
|
| 2431 |
|
|
| 2432 |
// Add to the Object Modification queue. |
// Add to the Object Modification queue. |
| 2433 |
lock (objectModQueue) |
lock (objectModQueue) |
| 2463 |
/// <param name="ky"></param> |
/// <param name="ky"></param> |
| 2464 |
private void DoMotorAction(KeyCode ky, bool kydown, bool held) |
private void DoMotorAction(KeyCode ky, bool kydown, bool held) |
| 2465 |
{ |
{ |
| 2466 |
|
//m_log.DebugFormat("{0},{1},{2}", ky.ToString(), kydown, held); |
| 2467 |
switch (ky) |
switch (ky) |
| 2468 |
{ |
{ |
| 2469 |
case KeyCode.Up: |
case KeyCode.Up: |
| 2909 |
if (UserAvatar == null) |
if (UserAvatar == null) |
| 2910 |
{ |
{ |
| 2911 |
UserAvatar = self; |
UserAvatar = self; |
| 2912 |
|
AVControl.AvatarNode = UserAvatar.node; |
| 2913 |
} |
} |
| 2914 |
} |
} |
| 2915 |
|
|