This file contains 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
# | |
# python make_input.py --fps 1 movie01 movie02 | |
# | |
# Will create an input folder in the curren directory then | |
# invoke ffmpeg to extract frames from each video and copy | |
# the resulting frames into that input folder. | |
# | |
import argparse | |
import os |
This file contains 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
# create a support video call channel for TribeXR users to join via the vr client or via the web. | |
import requests | |
from requests.adapters import HTTPAdapter | |
from requests.packages.urllib3.util.retry import Retry | |
import json | |
from urllib.parse import urlencode, quote_plus | |
import webbrowser | |
import time |
This file contains 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
(master)~/code/OpenXRSamples/build > cmake --version | |
cmake version 3.17.2 | |
CMake suite maintained and supported by Kitware (kitware.com/cmake). | |
(master)~/code/OpenXRSamples/build > cmake .. -A x64 | |
-- Building for: Visual Studio 16 2019 | |
-- EZVCPKG v0.1 starting up | |
Website: https://github.com/jherico/ezvcpkg | |
-- EZVCPKG_BASEDIR envrionment variable not found and basedir not set, using default C:\msys64\home\ajthy/.ezvcpkg | |
-- EZVCPKG initializing |
This file contains 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
static struct m_image buffer = M_IMAGE_IDENTITY(); | |
#include <math.h> | |
#include <m_math.h> | |
#include <m_raster.h> | |
typedef struct Prim_t { | |
int type; // 0 = sphere, 1 = box | |
float m[6]; | |
float inv_m[6]; |
This file contains 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"; | |
// | |
// record.js | |
// | |
// Created by David Rowe on 5 Apr 2017. | |
// 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 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 normalizedMousePos = {x: 0, y: 0}; | |
function animHandler(props) { | |
props.lookAroundAlpha = {x: normalizedMousePos.x, y: -normalizedMousePos.y, z: 0}; | |
return props; | |
} | |
Controller.mouseMoveEvent.connect(function (e) { | |
normalizedMousePos.x = ((2 * e.x) / Window.innerWidth) - 1; | |
normalizedMousePos.y = ((2 * e.y) / Window.innerHeight) - 1; |
This file contains 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
// click to sit, click again to stand | |
(function () { | |
var seated = false; | |
var entity; | |
this.preload = function(entityID) { | |
entity = entityID; | |
}; |
This file contains 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() { // BEGIN LOCAL_SCOPE | |
var TABLET_BUTTON_NAME = "BLENDSHAPE"; | |
var HTML_URL = "https://hifi-public.s3.amazonaws.com/tony/html/blendshapetest_arkit.html?2"; | |
var BLENDSHAPETEST_CHANNEL = "com.highfidelity.blendshapetest"; | |
var IS_LOCAL = true; | |
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system"); | |
var tabletButton = tablet.addButton({ | |
text: TABLET_BUTTON_NAME, |
This file contains 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
// | |
// blendshapetest-agent-client.js | |
// | |
/* eslint indent: ["error", 4, { "outerIIFEBody": 0 }] */ | |
(function() { // BEGIN LOCAL_SCOPE | |
var TABLET_BUTTON_NAME = "BLENDSHAPE"; | |
var HTML_URL = "https://hifi-public.s3.amazonaws.com/tony/html/blendshapetest_arkit.html"; | |
var BLENDSHAPETEST_CHANNEL = "com.highfidelity.blendshapetest"; |
This file contains 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
// | |
// blendshapetest-agent-server.js | |
// | |
/* eslint indent: ["error", 4, { "outerIIFEBody": 0 }] */ | |
(function() { // BEGIN LOCAL_SCOPE | |
var BLENDSHAPETEST_CHANNEL = "com.highfidelity.blendshapetest"; | |
Agent.isAvatar = true; | |
Avatar.skeletonModelURL = "https://hifi-public.s3.amazonaws.com/tony/avatars/arkit/arkit_facecap_avatar.fst"; |
NewerOlder