Better joint mappings, switch to working (more or less) model.

This commit is contained in:
Andrzej Kapolka 2014-04-17 10:41:46 -07:00
parent 00829e0289
commit 03c3952e52
2 changed files with 4 additions and 4 deletions

View file

@ -15,12 +15,12 @@ var AMPLITUDE = 45.0;
var cumulativeTime = 0.0; var cumulativeTime = 0.0;
print("# Joint list start");
var jointList = MyAvatar.getJointNames(); var jointList = MyAvatar.getJointNames();
var jointMappings = "\n# Joint list start";
for (var i = 0; i < jointList.length; i++) { for (var i = 0; i < jointList.length; i++) {
print("jointIndex = " + jointList[i] + " = " + i); jointMappings = jointMappings + "\njointIndex = " + jointList[i] + " = " + i;
} }
print("# Joint list end"); print(jointMappings + "\n# Joint list end");
Script.update.connect(function(deltaTime) { Script.update.connect(function(deltaTime) {
cumulativeTime += deltaTime; cumulativeTime += deltaTime;

View file

@ -13,7 +13,7 @@
var animation = AnimationCache.getAnimation("http://www.fungibleinsight.com/faces/hip_hop_dancing_2.fbx"); var animation = AnimationCache.getAnimation("http://www.fungibleinsight.com/faces/hip_hop_dancing_2.fbx");
Avatar.skeletonModelURL = "http://www.fungibleinsight.com/faces/vincent.fst"; Avatar.skeletonModelURL = "http://www.fungibleinsight.com/faces/beta.fst";
Agent.isAvatar = true; Agent.isAvatar = true;