サンプルを解凍し、Oculus Riftを接続したら、Oculus Bridge.exeまたはWebRiftフォルダー内にあるRiftServer.exeを実行した後にtest.htmlをブラウザーで表示します。
サンプルコード こちらがサンプルコード(ブラウザー側はサンプル内のtest.htmlを見てください)
Cygwinにしたら解決しました・・・ | |
$ ruby -v | |
ruby 1.9.3p448 (2013-06-27) [x86_64-cygwin] | |
$ twurl -v | |
0.9.1 | |
$ twurl -d 'status=HELLO KARAAGE!' -X POST "/1.1/statuses/update_with_media.json" --file "TEST.png" --file-field "media[]" -t |
var http = require('http'); | |
var https = require('https'); | |
var querystring = require('querystring'); | |
var fs = require('fs'); | |
var ws = require('ws').Server; | |
var wss = []; | |
var HTTPS_PORT = 23456; | |
var UNITY_PORT = 12345; | |
var HTML_PATH = 'index.html'; |
#!/bin/bash | |
#----------------------------------------------------------------------------------------------- | |
# Unityをバッチモードで起動し、ビルドする | |
#----------------------------------------------------------------------------------------------- | |
# These are defined in Cygwin, but used by Mono's compilation. | |
unset TEMP | |
unset TMP |
#include <opencv2/opencv.hpp> | |
int main() | |
{ | |
cv::VideoCapture cap( "http://10.5.5.9:8080/live/amba.m3u8" ); | |
cv::namedWindow( "GoPro" ); | |
cv::Mat frame; | |
do { | |
cap >> frame; |
using UnityEngine; | |
using System.Collections; | |
// Script to make MMD4Mecanim's expressions controllable like MMDforUnity's expressions. | |
// Move the Z localPosition of an expression GameObject from 0.0-1.0 to control that expression. | |
/* | |
* Instructions: | |
* 1. Copy the "Expression" GameObject (and its children) from inside a MMDforUnity-imported model to inside a MMD4Mecanim-imported model. | |
* 2. Select all the individual GameObjects for the expressions inside the "Expression" GameObject. |
using UnityEngine; | |
using System.Collections; | |
public class DetonatorTest : MonoBehaviour { | |
public GameObject currentDetonator; | |
private int _currentExpIdx = -1; | |
private bool buttonClicked = false; | |
public GameObject[] detonatorPrefabs; | |
public float explosionLife = 10; |
//based on the source of http://g.raphaeljs.com/linechart.html | |
var options = { | |
axis: "0 0 1 1", // Where to put the labels (trbl) | |
axisxstep: 16 // How many x interval labels to render (axisystep does the same for the y axis) | |
}; | |
document.addEventListener('DOMContentLoaded', function () { | |
// Make the raphael object |