Showing the changes to scripts/developer (1 of 1 file). Show all
Unified · Split
| @@ -22,12 +22,12 @@ var MAXIMUM_LOAD_TIME = NOMINAL_LOAD_TIME * 2; · 21 unmodified lines | |||
| 22 | var MINIMUM_AVATARS = 25; // changeable by prompt | 22 | var MINIMUM_AVATARS = 25; // changeable by prompt |
| 23 | 23 | ||
| 24 | var DENSITY = 0.3; // square meters per person. Some say 10 sq ft is arm's length (0.9m^2), 4.5 is crowd (0.4m^2), 2.5 is mosh pit (0.2m^2). | 24 | var DENSITY = 0.3; // square meters per person. Some say 10 sq ft is arm's length (0.9m^2), 4.5 is crowd (0.4m^2), 2.5 is mosh pit (0.2m^2). |
| 25 | var SOUND_DATA = {url: "http://howard-stearns.github.io/models/sounds/piano1.wav"}; | 25 | var SOUND_DATA = {url: "http://hifi-content.s3.amazonaws.com/howard/sounds/piano1.wav"}; |
| 26 | var AVATARS_CHATTERING_AT_ONCE = 4; // How many of the agents should we request to play SOUND at once. | 26 | var AVATARS_CHATTERING_AT_ONCE = 4; // How many of the agents should we request to play SOUND at once. |
| 27 | var NEXT_SOUND_SPREAD = 500; // millisecond range of how long to wait after one sound finishes, before playing the next | 27 | var NEXT_SOUND_SPREAD = 500; // millisecond range of how long to wait after one sound finishes, before playing the next |
| 28 | var ANIMATION_DATA = { | 28 | var ANIMATION_DATA = { |
| 29 | "url": "http://howard-stearns.github.io/models/resources/avatar/animations/idle.fbx", | 29 | "url": "http://hifi-content.s3.amazonaws.com/howard/resources/avatar/animations/idle.fbx", |
| 30 | // "url": "http://howard-stearns.github.io/models/resources/avatar/animations/walk_fwd.fbx", // alternative example | 30 | // "url": "http://hifi-content.s3.amazonaws.com/howard/resources/avatar/animations/walk_fwd.fbx", // alternative example |
| 31 | "startFrame": 0.0, | 31 | "startFrame": 0.0, |
| 32 | "endFrame": 300.0, | 32 | "endFrame": 300.0, |
| 33 | "timeScale": 1.0, | 33 | "timeScale": 1.0, |
| @@ -121,7 +121,7 @@ function messageHandler(channel, messageString, senderID) { · 87 unmodified lines | |||
| 121 | position: Vec3.sum(MyAvatar.position, {x: coord(), y: 0, z: coord()}), | 121 | position: Vec3.sum(MyAvatar.position, {x: coord(), y: 0, z: coord()}), |
| 122 | orientation: Quat.fromPitchYawRollDegrees(0, Quat.safeEulerAngles(MyAvatar.orientation).y + (turnSpread * (Math.random() - 0.5)), 0), | 122 | orientation: Quat.fromPitchYawRollDegrees(0, Quat.safeEulerAngles(MyAvatar.orientation).y + (turnSpread * (Math.random() - 0.5)), 0), |
| 123 | soundData: chatter && SOUND_DATA, | 123 | soundData: chatter && SOUND_DATA, |
| 124 | skeletonModelURL: "http://howard-stearns.github.io/models/resources/meshes/defaultAvatar_full.fst", | 124 | skeletonModelURL: "http://hifi-content.s3.amazonaws.com/howard/resources/meshes/defaultAvatar_full.fst", |
| 125 | animationData: ANIMATION_DATA | 125 | animationData: ANIMATION_DATA |
| 126 | }); | 126 | }); |
| 127 | } | 127 | } |