2016年12月9日金曜日

Unity 5.5 0f3 with Leap Motion Hands Module 2.0

is not working! It says there is a compile error (s?).

Use Unity 5.4.3 if you import Leapmotion handsmodule.
Be careful!

Leap motionのhandsmoduleはUnity 5.5 では動かないようです。
時間無駄しました。5.4.3使ったらエラーなく動きました。
現時点では誰も報告していないようなので,とりいそぎ。


Show hands captured by Leap motion in Oculus DK2 with Windows 7, Unity 5.4.3, and Leap Orion 1.3.3 (core asset + Hands module assets)

2016年11月16日水曜日

Pupil Labs



I bought Pupil labs eye tracking camera system. The hardware looks very cheap, but the software is not bad. It run on My macbook air, though it is unstable and sometimes crashes.

The accuracy of gaze points is better than I expected. The above movie shows an example.


2016年8月28日日曜日

Oculus and VR player setting notes

ヘッドマウントディスプレイを買ったはいいけれど,なにかコンテンツがない場合には宝の持ち腐れですよね。私も,実験に使おうと勝手は見たものの,全く使わずに放置でした。とりあえずヘッドマウントディスプレイ(Oculus DK2)を使用して動画を見る方法は確立したので,メモします。他のヘッドマウントでも簡単に見られると思います。

360度動画(画像),およびヘッドマウントに対応しているMovie playerは色々あるようですが,一番使い勝手が良かったのは,VR Playerです。

同様の機能を持つものに,GoPro VR Playerがあります。これは,昔Koler Eyesっていう名前でしたが,いつのまにか変わっていました。ちなみにこっちは,私の環境ではすぐに設定できなかったのでポイっとしました。

[ How to use VR Player ]
インストールしたら,ドラッグ&ドロップで動画を再生できます。
Install a VR player into your computer and drag&drop a movie file onto it.

設定項目は,上のツールバーにあります。細かいものは,「Tools→Settings」へ。
基本的な 「Media」「Device」のみをいじります。

RICHO Thetaなどで撮影した360度動画をHMDで見たい場合 
If you want to watch 360° movie using a head mounted display.

Media 
-- Format: Mono
-- Projection: Sphere
-- Effects: None

Device 
-- Layout: Side by side
-- Distortion: Barrel (None)
-- Tracker: Oculus Rift DK2 (Choose own device's name)

Mediaが入力側,Deviceが出力側の設定だと考えれば簡単です。
Media and Device are for input and output settings respectively.

もし動画が既に両眼用(左右に動画が二つ並んでいる)になっている場合には,
If your movie file is dual one,

Media 
-- Format: Side by side
としてください。

HMDを使わずにPCでみたい場合には,
If using PC display,

Media 
-- Format: Mono
-- Projection: Sphere
-- Effects: None

Device 
-- Layout: Mono
-- Distortion: None
-- Tracker: Mouse (None)

とするといいでしょう。
マウスは一回クリックすると,操作モードになり,もう一度クリックすると戻ります。


【Amazon リンク】



   Oculus Rift 製品版       Galaxy Gear VR(スマホ入れるタイプ。安い)

とりあえず安く体験してみたい方は1000円でハコスコが売っているので,買ったらいいと思います。

動画を撮影する方も,RICHO Thetaを皮切りに,どんどん出ています(iPhoneに付けるのも売ってますね)ので,自分でコンテンツ作るのも非常に楽になってきています。





RICHOTHETAです。新しいモデルは綺麗だし,使いやすくなっていいですね。

2016年6月23日木曜日

MATLAB and LeapMotion



A very convenient motion tracker for hand, LeapMotion.
手のトラッキングに便利なリーププモーションを紹介。


Now, you can buy it only 6200 yen by Amazon. If you get 3D position data from LeapMotion using MATLAB, download Matleap.
ホント安いですね。Kinectもですが…量産とは恐ろしい。 MATLABで位置情報を取得したい時には,以下からmatleapをダウンロードします。

Download https://github.com/jeffsp/matleap

You can easily understand the initial settings by reading Read me file, and have to install Leapmotion SDK first. Matleap contains sample m file to get position data.
Read me読めば,最初のセッティングについてとりあえずわかります。簡単です。 LeapMotionに関しては,SDKをダウンロードして下さいね。 サンプルコードも付いてくるので,あんまり困ることはないです。


LeapMotion ifself always get position data as long as it capture a hand. MATLAB fetches the data from matleap_frame function.
LeapMotion自体はマウスのように,手がある限りずっとデータを取得しています。そこから,MATLABがmatleap_frame関数でデータをとってきます。

matleap_frame.m : read position data from LeapMotion


f = matleap_frame;
% an example of data contents
% f =
%             id: 354491
%      timestamp: 2.1655e+10
%     pointables: [1x5 struct]
%          hands: [1x1 struct]

Position data of fingertips are  f.pointables.position.
指先の一データはf.pointables.positionです。以下のような感じで取り出します。

point_num = length(f.pointables);
if (~isempty(point_num))&&(point_num>0)
    for i=1:point_num
        nowpos(i,:) = f.pointables(i).position;
    end
end

As default, matleap cannot get data other than fingertips, but it seems that you can get other data by changing codes by yourself.
デフォルトでは指先の位置データしか取得できませんが,コード書き換えればその他も可能なようです。
https://community.leapmotion.com/t/matleap-only-has-pointable-information/470/4

2016年1月5日火曜日

Ubuntu 15.4 + Psychtoolbox 3 on DELL Inspiron

Failed!

First, I installed Ubuntu 14LTS version onto a DELL Laptop, but WiFi controller couldn't work (driver  for Intel AC3165 is not provided). Then I installed Ubuntu 15.4, which can recognize well the network controller. 

MATLAB installation was very easy and did not meet any troubles. To install Psychtoolbox, I used NeuroDebian. After some configuration settings, I tried to install matlab-psychtoolbox-3, but the terminal said matlab-psychtoolbox-3-nonfree is required. Then I put it, it needs libglew1.9. I checked about libglew1.9, it cannot be installed on Ubuntu 15.4!

Therefore, if you want to install Psychtoolbox3 on Ubuntu, you need Ubuntu 14 LTS with a compatible WiFi controller. Or, you need to put a driver somehow. A USB WiFi network controller may be a solution..