Oculus RiftはWebでも使えるようにしたライブラリやツールなどがいくつか作成されていますので紹介及び問題点をあげます。
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
#include <string> | |
#include <sstream> | |
#include "mbed.h" | |
#include "EthernetInterface.h" | |
#include "sha1config.h" | |
#include "sha1.h" | |
//#define TEXT_LCD | |
#ifdef TEXT_LCD |
#ニコ動(ノーマル/ステレオ全天球動画)用Oculus Rift ビューワー Chrome拡張機能 ニコ動にこのような全天球動画が投稿されていたら、それをOculus Riftで見る(立体視)Chrome拡張機能を作ってみました。 現在はWindowsとMacでの動作を確認しました。
####更新履歴 2014/04/30
- Oculus Riftビューワーで映像が表示されない問題を修正
2014/04/29
- デフォルトをステレオからノーマルに変更。
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
using UnityEngine; | |
using System.Collections; | |
using WebSocketSharp; | |
using MiniJSON; | |
using System; | |
using System.Collections.Generic; | |
public class CreateLabel : MonoBehaviour { | |
WebSocket ws; | |
double fov; |
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
// Win32Apiを使用しているためWindowsのみサポート | |
using UnityEngine; | |
using UnityEditor; | |
using System.Runtime.InteropServices; | |
using System; | |
using System.Collections.Generic; | |
//Version 0.21 | twitter:@izm update for DK2 | |
//Version 0.2 | s.b.Newsom Edition |
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 http = require('http'); | |
var https = require('https'); | |
var parseString = require('xml2js').parseString; | |
var net = require('net'); | |
var nicoLogin = function() { | |
var buf = new Buffer('mail=hoge&password=pass'); | |
var options = { | |
host: 'secure.nicovideo.jp', | |
path: '/secure/login?site=niconico', |
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
<!-- | |
ゲーム用フレームワークは使ったことがないため、ほぼナマなJSに書き換えました。 | |
FキーでOculusRift描画、Zキーでゼロポジションリセット。 | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>sample</title> | |
<style type="text/css"> | |
body { |
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 isNegativeZero(x) { | |
return x === 0 && 1 / x === Number.NEGATIVE_INFINITY; | |
} |
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"; | |
function sequentialReader(buf) { | |
this.buffer = buf; | |
this.offset = 0; | |
} | |
sequentialReader.prototype.readUInt8 = function () { | |
var val = this.buffer.readUInt8(this.offset); | |
this.offset++; | |
return val; |
OlderNewer