SlideShare a Scribd company logo
1 of 29
Download to read offline
Oculus Rift + Unityと入出力機器と私 
2014.10.25 OcuFes開発者会発表資料 
きゅーこん 
@cubic9com 
http://cubic9.com/
Oculus Riftゲット! 
さあゲームを作ろう!
あ、でも操作方法… 
どうしよう?
Oculus Rift着けてると 
手元見えなくね?
みんなどうしてるんだろう?
ゲームコントローラー 
~慣れてるので手元が見えなくても大丈夫~ 
● ゲームパッド(Xbox360コントローラーなど) 
● Room VR by 株式会社ネクスト様 
● 木造校舎を歩く by @iron_drill 氏 
● ステアリングコントローラ(ハンドル) 
● 3D駐車シミュレーター by @FrameSynthesisJ 
● 鉄騎コントローラ 
● めかしむ☆ by @izm 氏 
http://www.xbox.com/ja-JP/xbox360/
個人的には 
とはいえ、 
もっとVR空間に入りたい
それと、 
身体感覚が伴わないと 
VR酔いしやすいらしい
身体感覚が伴う入力機器(1/2) 
● 手、腕 
● PS3 Move:Tempulus by @WheetTweet 氏 
● Novint Falcon:MikuMiku Akushu by @GOROman 氏 
● Leap Motion: 
– Perilous Dimension by @yasei_no_otoko 氏 
● Razer Hydra: 
– Oculus + Razer Hydraでバーチャルリアリティ by @Nao_u_ 
– 振り子ワイヤーアクション by @waffle_maker 
● Sixense STEM System 
● ControlVR 
● Dexmo http://www.novint.com/index.php/novintfalcon
身体感覚が伴う入力機器(2/2) 
● 足 
● バランスWiiボード:VRエ○レカ by @n_yositaka 氏 
● Virtuix Omni 
● 全身 
● Kinect:Mikulus Kinect Online by @Needle 氏 
● 人形 
● QUMARION:OcumaRion by @mizuki_izuna 氏 
http://www.virtuix.com/
でも
欲しい入力機器がない 
もしくは 
お金がない
レッツ自作!
“物体”をさわさわしたい(1/2) 
ファミコン用PAXパワーグローブを改造。 
PCに無線接続できるようにした。 
振動モータ 
(VMP-10BC) 
MOSFETという種類の 
トランジスタによる 
モータ駆動回路 
Arduino Fio 
無線モジュール 
(XBee ZB) 
曲げセンサ 
(元々内蔵) 
9軸センサ 
(MPU-9150) 
http://arduino.cc/en/Main/ArduinoBoardFio 
http://www.digi.com/products/wireless-wired-embedded- 
solutions/zigbee-rf-modules/zigbee-mesh- 
module/xbee-zb-module 
http://strawberry-linux.com/catalog/items? 
code=12150 
http://www.sparkfun.com/products/10264
“物体”をさわさわしたい(2/2) 
● SerialPortを使う場合は次の点に注意する。 
● [Edit]>[Project Settings] 
>[Player]>[Other Settings]で 
[Api Compatibility Level]を 
[.Net 2.0 Subset]から 
[.Net 2.0]に変える。 
● Threadを使って、 
非同期処理するようにする。 
● 詳しくは下記をご覧ください。 
http://cubic9.com/Devel/%C5%C5%BB%D2%B9%A9%BA%EE/ 
Arduino/PaxPowerGlove/
片手で使えるゲームパッドが欲しい(1/2) 
WiiのヌンチャクコントローラをPCに接続した。 
こんなの。 
Arduino Leonardo 
ヌンチャク 
コントローラ 
http://www.nintendo.co.jp/wii/controllers/ 
信号取り出し基板 
(WiiChuck) 
http://arduino.cc/en/Main/arduinoBoardLeonardo 
http://www.sparkfun.com/products/9281 
Arduino LeonardoやArduino Microは 
簡単にキーボードやマウスなどのHIDに成りすませる。 
今回は普通のUSBゲームパッドに成りすましている。
片手で使えるゲームパッドが欲しい(2/2) 
● 簡単にUSB機器が作れるのでオススメ! 
● Arduino Leonardoをゲームパッドとして 
認識させたい場合は次の点に注意する。 
● 標準のHID.cppでは 
キーボードとマウスにしかなれないため、 
ゲームパッドになるためには、 
パッチをあてる必要がある。 
● 詳しくは下記をご覧ください。 
http://cubic9.com/Devel/%C5%C5%BB%D2%B9%A9%BA%EE/Arduino 
/%A5%B2%A1%BC%A5%E0%A5%B3%A5%F3%A5%C8%A5%ED%A1%BC%A5%E9% 
A1%BC/
そんなこんなで
“物体”をさわさわできた! 
“Mikujalus” 
http://cubic9.com/Devel/OculusRift/Mikujalus/
ただ
ネットで配布できなくない?
身近なものを入力機器として使う 
● iPhone 
– Oculus Witch by 面白法人カヤック様 
● Oculus Rift 
– VR Ski jump by @oukaichimon 氏 
– Hiyoshi Jump by @warapuri 氏 
– 公園彼女 by @minoaimino 氏 
– 見習い空賊と天空の少女 by @udasan_koubou 氏 
http://oculusvr.com/
で。
インスパイア(1/2) - DroidGlove 
● 改造パワーグローブの代わりに使える 
Androidアプリを作ってみた。 
https://play.google.com/store/apps/details?id=com.cubic9.android.droidglove 
● Sensor.TYPE_ACCELEROMETER、 
Sensor.TYPE_MAGNETIC_FIELDを 
使用して姿勢角を取得。 
(本当はQuaternionで取得できるROTATION_VECTORを 
使いたかったが、磁北基準でしか取得できなかったので諦めた。) 
● PCとはOSC over UDPで通信。 
● サンプルUnityプロジェクトおよび 
DroidGloveのソースを配布中。 
対応アプリの開発はご自由に! 
http://cubic9.com/Devel/OculusRift/DroidGlove/
インスパイア(2/2) - その場ジョギングで移動 
● 改造ヌンチャクの代わりになるものが必要。 
● 片手操作にしてもゲームパッドで移動するのは 
あまり直感的ではなかった。 
● そこで、Oculus Riftを被って、 
その場でジョギング的な上下運動をすると、 
見ている方向に進むようにしてみた。 
● OVRDevice.GetAcceleration()で 
Oculus Riftの加速度を取得して 
上下運動を検知。 
値に応じてOVRPlayerControllerを 
移動させる。 
http://oculusvr.com/
まとめ
まとめ 
● 入力機器がなければ作れる! 
● でもあんまり凝ると 
ネットで配れなくなる! 
● ということで何か加えたいときは、 
身近なものを使うといいかもです!
ご清聴ありがとうございました。 
いまいち萌えない 
Oculusちゃん
おまけ - 使えそうな既製品 
● アールティ PAWセンサー 
● KOKUYO フィンガープレゼンター黒曜石 
● 3Dconnexion : SpaceNavigator(3D マウス) 
● BitTradeOne BitTouch(USBタッチスイッチデバイス) 
● サンワサプライ オプトトラックボールPRO 
● BlueMouse Technology OZUPAD-AIR 
● 上海問屋 USB接続フットスイッチ 
● 上海問屋 ボディソニック トランスデューサ

More Related Content

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

2014.10.25 OcuFes開発者会 in DCExpo2014発表資料「Oculus Rift + Unityと入出力機器と私」発表者:きゅーこん