Skip to content

Instantly share code, notes, and snippets.

#Unity WebPlayerでOculus Riftのクオータニオンを取得するサンプル

サンプル

サンプルを解凍し、Oculus Riftを接続したら、Oculus Bridge.exeまたはWebRiftフォルダー内にあるRiftServer.exeを実行した後にtest.htmlをブラウザーで表示します。

サンプルコード こちらがサンプルコード(ブラウザー側はサンプル内のtest.htmlを見てください)

@ikkou
ikkou / Boxstarter.md
Last active December 28, 2018 05:32
Boxstarter

Windowsでも開発環境を一瞬で構築したい!

未開封のWindows PCと一緒に手渡された環境構築マニュアル、1つ1つ手作業で進めるだけで初日が終わってしまった、そんな時間の無駄を省く為のドキュメント。

コマンドプロンプトを起動

WindowsRを同時に押して、cmdと入力、Enterを押下

chocolateyのインストール

@GOROman
GOROman / KIRESOU
Last active January 1, 2016 23:09
環境: Windows7 64bit twurlでTwitterに画像を添付したいだけなのに ”403 Forbidden” でどうにも出来ないのでキレそう。。。  ⇒ 解決
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
@hecomi
hecomi / server.js
Created December 17, 2013 16:09
SimSimi API と Web Speech API と Unity をつなげるやつ
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';
@heistak
heistak / build.sh
Created August 29, 2013 15:41
Cygwin script to automate build of Mikulus Kinect for Mac/Windows and copy .zip to Dropbox.
#!/bin/bash
#-----------------------------------------------------------------------------------------------
# Unityをバッチモードで起動し、ビルドする
#-----------------------------------------------------------------------------------------------
# These are defined in Cygwin, but used by Mono's compilation.
unset TEMP
unset TMP
@GOROman
GOROman / gist:6248503
Last active October 7, 2018 22:06
OpenCVでWifi接続したGo Pro HERO3のライブ表示する
#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;
@heistak
heistak / MMD4MecanimExpressionCompatibility.cs
Last active September 12, 2021 16:28
MMD4Mecanimの表情制御をMMD for Unityと同じやり方(制御用GameObjectのZ位置を動かす)で出来るようにするスクリプト。
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.
@VoQn
VoQn / DetonatorTest.cs
Created March 3, 2013 11:08
Detonator Explosion Framework が最新の Unity だとインポート時に DetonatorTest.js がコンパイルエラーを出しやがるので、差し替え用の C# 書いた。使い方は detonatorPrefabs にインスペクタで Detonator が用意しているアセットを全部突っ込めばよい
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;
@boazsender
boazsender / modified-x-axis-intervals-and-labels.js
Created June 21, 2010 19:49
Raphael line chart with custom x-axis labels demo
//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