diff --git a/interface/resources/avatar/animations/teleport.fbx b/interface/resources/avatar/animations/teleport.fbx
new file mode 100644
index 0000000000..99c950ced6
Binary files /dev/null and b/interface/resources/avatar/animations/teleport.fbx differ
diff --git a/interface/resources/avatar/network-animation.json b/interface/resources/avatar/network-animation.json
index 3db40742c9..d1046d2c6b 100644
--- a/interface/resources/avatar/network-animation.json
+++ b/interface/resources/avatar/network-animation.json
@@ -53,8 +53,8 @@
},
{
"id": "preTransitAnim",
- "interpTarget": 6,
- "interpDuration": 6,
+ "interpTarget": 4,
+ "interpDuration": 4,
"transitions": [
{ "var": "idleAnim", "state": "idleAnim" },
{ "var": "transitAnim", "state": "transitAnim" }
@@ -62,8 +62,8 @@
},
{
"id": "transitAnim",
- "interpTarget": 6,
- "interpDuration": 6,
+ "interpTarget": 2,
+ "interpDuration": 2,
"transitions": [
{ "var": "preTransitAnim", "state": "preTransitAnim" },
{ "var": "postTransitAnim", "state": "postTransitAnim" }
@@ -71,8 +71,8 @@
},
{
"id": "postTransitAnim",
- "interpTarget": 6,
- "interpDuration": 6,
+ "interpTarget": 4,
+ "interpDuration": 4,
"transitions": [
{ "var": "transitAnim", "state": "transitAnim" },
{ "var": "idleAnim", "state": "idleAnim" }
@@ -97,7 +97,7 @@
"id": "preTransitAnim",
"type": "clip",
"data": {
- "url": "https://hifi-content.s3.amazonaws.com/luis/test_scripts/transitApp/animations/teleport01_warp.fbx",
+ "url": "qrc:///avatar/animations/teleport.fbx",
"startFrame": 0.0,
"endFrame": 10.0,
"timeScale": 1.0,
@@ -109,11 +109,11 @@
"id": "transitAnim",
"type": "clip",
"data": {
- "url": "https://hifi-content.s3.amazonaws.com/luis/test_scripts/transitApp/animations/teleport01_warp.fbx",
+ "url": "qrc:///avatar/animations/teleport.fbx",
"startFrame": 11.0,
- "endFrame": 11.0,
+ "endFrame": 18.0,
"timeScale": 1.0,
- "loopFlag": true
+ "loopFlag": false
},
"children": []
},
@@ -121,9 +121,9 @@
"id": "postTransitAnim",
"type": "clip",
"data": {
- "url": "https://hifi-content.s3.amazonaws.com/luis/test_scripts/transitApp/animations/teleport01_warp.fbx",
- "startFrame": 22.0,
- "endFrame": 49.0,
+ "url": "qrc:///avatar/animations/teleport.fbx",
+ "startFrame": 19.0,
+ "endFrame": 44.0,
"timeScale": 1.0,
"loopFlag": false
},
diff --git a/interface/src/avatar/MyAvatar.cpp b/interface/src/avatar/MyAvatar.cpp
index dd3c7f174b..8d47591d40 100755
--- a/interface/src/avatar/MyAvatar.cpp
+++ b/interface/src/avatar/MyAvatar.cpp
@@ -1252,15 +1252,6 @@ void MyAvatar::overrideAnimation(const QString& url, float fps, bool loop, float
_skeletonModel->getRig().overrideAnimation(url, fps, loop, firstFrame, lastFrame);
}
-void MyAvatar::overrideNetworkAnimation(const QString& url, float fps, bool loop, float firstFrame, float lastFrame) {
- if (QThread::currentThread() != thread()) {
- QMetaObject::invokeMethod(this, "overrideNetworkAnimation", Q_ARG(const QString&, url), Q_ARG(float, fps),
- Q_ARG(bool, loop), Q_ARG(float, firstFrame), Q_ARG(float, lastFrame));
- return;
- }
- _skeletonModel->getRig().overrideNetworkAnimation(url, fps, loop, firstFrame, lastFrame);
-}
-
void MyAvatar::restoreAnimation() {
if (QThread::currentThread() != thread()) {
QMetaObject::invokeMethod(this, "restoreAnimation");
@@ -1269,14 +1260,6 @@ void MyAvatar::restoreAnimation() {
_skeletonModel->getRig().restoreAnimation();
}
-void MyAvatar::restoreNetworkAnimation() {
- if (QThread::currentThread() != thread()) {
- QMetaObject::invokeMethod(this, "restoreNetworkAnimation");
- return;
- }
- _skeletonModel->getRig().restoreNetworkAnimation();
-}
-
QStringList MyAvatar::getAnimationRoles() {
if (QThread::currentThread() != thread()) {
QStringList result;
diff --git a/interface/src/avatar/MyAvatar.h b/interface/src/avatar/MyAvatar.h
index 2abda6aabd..799427530a 100644
--- a/interface/src/avatar/MyAvatar.h
+++ b/interface/src/avatar/MyAvatar.h
@@ -406,47 +406,6 @@ public:
*/
Q_INVOKABLE void restoreAnimation();
- /**jsdoc
- * Similarly to {@link MyAvatar.overrideAnimation}, this function will override the default avatar animations,
- * but only affecting the data the gets sent to other clients over the network. In the client, the avatar will move according
- * to the default animations but other clients will render your avatar movements according to the new animation.
- * To continue sending the default animations, use {@link MyAvatar.restoreNetworkAnimation}.
- *
Note: When using pre-built animation data, it's critical that the joint orientation of the source animation and target - * rig are equivalent, since the animation data applies absolute values onto the joints. If the orientations are different, - * the avatar will move in unpredictable ways. For more information about avatar joint orientation standards, see - * Avatar Standards.
- * @function MyAvatar.overrideNetworkAnimation - * @param url {string} The URL to the animation file. Animation files need to be .FBX format, but only need to contain the - * avatar skeleton and animation data. - * @param fps {number} The frames per second (FPS) rate for the animation playback. 30 FPS is normal speed. - * @param loop {boolean} Set to true if the animation should loop. - * @param firstFrame {number} The frame the animation should start at. - * @param lastFrame {number} The frame the animation should end at. - * @example