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
Agent.isAvatar = true; | |
Avatar.position = {x: 0, y: 0, z: 0}; | |
Avatar.orientation = {x: 0, y: 0, z: 0, w: 1}; //{x: 0.7071067811865475, y: 0, z: 0, w: 0.7071067811865475}; | |
// "https://storage.googleapis.com/limitlessserv-144100.appspot.com/hifi%20assets/Animation/myYisup.fst"; | |
var fstUrl = "https://s3.amazonaws.com/hifi-public/tony/fixed-sphinx/sphinx.fst"; | |
Avatar.skeletonModelURL = fstUrl; | |
var animUrl = "https://storage.googleapis.com/limitlessserv-144100.appspot.com/hifi%20assets/Animation/HiFi_Sphinx_Anim_Kneel_09.fbx?10"; | |
var animUrl = "https://s3.amazonaws.com/hifi-public/tony/sphinx/Riddle_Blackboard-1.fbx"; | |
//Avatar.startAnimation(animUrl, 24, 1.0, true, false, 10, 256); |
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
// | |
// Pal.qml | |
// qml/hifi | |
// | |
// People Action List | |
// | |
// Created by Howard Stearns on 12/12/2016 | |
// Copyright 2016 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.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
var spawnPoint = Vec3.sum(Vec3.sum(MyAvatar.position, Vec3.multiply(1.0, Quat.getFront(MyAvatar.orientation))), {x: 0, y: 0.5, z: 0}); | |
var forward = Quat.getFront(MyAvatar.orientation); | |
var right = Vec3.cross(Quat.getFront(MyAvatar.orientation), Quat.getUp(MyAvatar.orientation)); | |
var WEB_BRIDGE_HTML = "https://s3.amazonaws.com/hifi-public/tony/webBridgeTest.html?2"; | |
var TROMBONE_URL = "https://s3.amazonaws.com/hifi-public/tony/audio/sad-trombone.wav"; | |
var SCREAM_URL = "https://s3.amazonaws.com/hifi-public/tony/audio/wilhelm-scream.wav"; |
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
// | |
// swingTwistTest.js | |
// examples | |
// | |
// Created by Anthony Thibault on 2016/11/18 | |
// 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
(function () { | |
var clicked = false; | |
this.clickDownOnEntity = function (entityID, mouseEvent) { | |
var props = Entities.getEntityProperties(entityID, ["userData"]); | |
try { | |
var userData = JSON.parse(props.userData); | |
if (userData && userData.location) { | |
location = userData.location; | |
} | |
} catch (err) { |
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 locationList = [ | |
"eschatology", | |
"localhost" | |
]; | |
var index = 0; | |
var time = Math.random(); | |
Script.setInterval(function () { | |
index = (index + 1) % locationList.length; |
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
// This script will produce a crash in nvoglv64.dll after 5-10 minutes. | |
MODEL_URLS = [ | |
"http://hifi-content.s3.amazonaws.com/ozan/dev/anim/standard_anims_160127/kneel.fbx", | |
"http://hifi-content.s3.amazonaws.com/ozan/dev/avatars/camera_man/pod/_latest/camera_man_pod/camera_man_pod.fbx", | |
"http://hifi-content.s3.amazonaws.com/Avatars/production/simple_robot/simple_robot.fbx", | |
"http://mpassets.highfidelity.com/e76946cc-c272-4adf-9bb6-02cde0a4b57d-v1/DefaultStylizedFemale.fbx", | |
"http://hifi-content.s3.amazonaws.com/Avatars/production/priscilla/priscilla/priscilla.fbx", | |
"http://mpassets.highfidelity.com/d029ae8d-2905-4eb7-ba46-4bd1b8cb9d73-v1/Will.fbx", | |
"http://hifi-content.s3.amazonaws.com/Avatars/production/matthew/shirt/matthew/matthew.fbx", |
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
# | |
# Tool to extract atp files from the asset server cache. | |
# Usage: python2 atp-extract.py -[lxa] [filename] | |
# | |
# cd into the c:\Users\BettySpaghetti\AppData\Roaming\High Fidelity\assignment-client\assets dir | |
# run 'python2 atp-extract.py -l' to list all files | |
# run 'python2 atp-extract.py -x file' to extract that particular file to the current directory. | |
# run 'python2 atp-extract.py -a' to extract all files. | |
# |
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
"use strict"; | |
/* jslint vars: true, plusplus: true */ | |
/* global Agent, Avatar, Script, Entities, Vec3, Quat, print */ | |
// | |
// avatar-storm.js | |
// | |
// Created by Anthony Thibault on 11/13/16. | |
// Copyright 2016 High Fidelity, Inc. | |
// | |
// Distributed under the Apache License, Version 2.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
"use strict"; | |
/*jslint vars: true, plusplus: true*/ | |
/*global Agent, Avatar, Script, Entities, Vec3, Quat, print*/ | |
// | |
// crowd-agent.js | |
// scripts/developer/tests/performance/ | |
// | |
// Created by Howard Stearns on 9/29/16. | |
// Copyright 2016 High Fidelity, Inc. | |
// |