This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.1", | |
"root": { | |
"id": "ikOverlay", | |
"type": "overlay", | |
"data": { | |
"alpha": 0.0, | |
"boneSet": "fullBody", | |
"alphaVar": "overlayAlpha", | |
"boneSetVar": "overlayBoneSet" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentlyRunningScripts = ScriptDiscoveryService.getRunning(); | |
for (var i = 0; i < currentlyRunningScripts.length; i++) { | |
if (currentlyRunningScripts[i].name === "simplifiedUI.js") { | |
ScriptDiscoveryService.stopScript(currentlyRunningScripts[i].url); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Identifier for the animation state handler, we use this to remove the handler at the end of the script. | |
var animHandlerId; | |
// List of animations to load. Included with the emote.js app. | |
var animNames = ["Crying", "Surprised", "Dancing", "Cheering", "Waving", "Fall", "Pointing", "Clapping", "Sit1", "Sit2", "Sit3", "Love"]; | |
// We use this to hold all the animation urls, cached resources and animation objects. | |
var animData = {}; | |
// The current montage animation we are playing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var leftHandRotation = {x: -83, y: -36, z: -81}; | |
var leftHandTranslation = {x: -0.05, y: -0.0, z: 0.14}; | |
var rightHandRotation = {x: -83, y: 36, z: 81}; | |
var rightHandTranslation = {x: 0.05, y: 0, z: 0.14}; | |
// | |
// tablet app boiler plate | |
// | |
var TABLET_BUTTON_NAME = "HANDOFF"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// mirrorClient.js | |
// | |
// Created by Patrick Manalich | |
// Edited by Rebecca Stankus on 8/30/17. | |
// Edited by David Back on 11/17/17. | |
// Copyright 2017 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.0. | |
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// botPlayback.js | |
// | |
// Distributed under the Apache License, Version 2.0. | |
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
// | |
var RECORDINGS_ARRAY = [ | |
"eventer1.hfr", | |
"waiting1.hfr", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MotionMatching coefficient tuning app | |
var TABLET_BUTTON_NAME = "MOMATCH"; | |
var HTML_URL = "https://s3.amazonaws.com/hifi-public/tony/html/motionMatching.html?2"; | |
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system"); | |
var tabletButton = tablet.addButton({ | |
text: TABLET_BUTTON_NAME, | |
icon: "https://s3.amazonaws.com/hifi-public/tony/icons/tpose-i.svg", | |
activeIcon: "https://s3.amazonaws.com/hifi-public/tony/icons/tpose-a.svg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LEFT_HAND_INDEX = 0; | |
var RIGHT_HAND_INDEX = 1; | |
var LEFT_FOOT_INDEX = 2; | |
var RIGHT_FOOT_INDEX = 3; | |
var HIPS_INDEX = 4; | |
var SPINE2_INDEX = 5; | |
var HEAD_INDEX = 6; | |
// default to minimal filtering | |
var HAND_SMOOTHING_TRANSLATION = 1.0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// dancecard.js | |
// | |
// Created by Anthony J. Thibault on 2018-12-15 | |
// Copyright 2016 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.0. | |
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gold Noise ©2015 dcerisano@standard3d.com | |
// - based on the Golden Ratio, PI and the Square Root of Two | |
// - superior distribution | |
// - fastest noise generator function | |
// - works with all chipsets (including low precision) | |
precision lowp float; | |
float PHI = 1.61803398874989484820459 * 00000.1; // Golden Ratio |