青いやつの進捗日記。

メモとしてべんきょうのしんちょくをかいていきます。あとで自分が検索しやすいもん

平面認識

「UnityでCubeを床に投げるARKitアプリを作る」っていうチュートリアルやった。で、重力空間変更してみた。

www.atmarkit.co.jp これですこれ。 まあそのとおりやれば出来ます。 UnityARHitTestExample.csにupdate()内に if (Input.touchCount > 0 && cam != null) { //CreatePrimitiveで動的にGameObjectであるCubeを生成する GameObject cube = GameObject.CreateP…

UnityARHitTestExampleをUnity上でオフにするのはなんでや

public void Frame1() { frame1.GetComponent<UnityEngine.XR.iOS.UnityARHitTestExample> ().enabled = true; frame2.GetComponent<UnityEngine.XR.iOS.UnityARHitTestExample> ().enabled = false; frame3.GetComponent<UnityEngine.XR.iOS.UnityARHitTestExample> ().enabled = false; } public void Frame2() { frame1.…</unityengine.xr.ios.unityarhittestexample></unityengine.xr.ios.unityarhittestexample></unityengine.xr.ios.unityarhittestexample>

なんでHitCubeParent > HitCube を消したのか

試しにオンにしてみると、 frame2の上にCubeが乗り、 認識したところをタップすると、全部画像3枚ごとCube含めて移動し、 frame1をどこか配置しようとするとまたまるごと移動しますがframe1は消え、 frame2を配置しようとすると特に変わらずまるごと移動、 f…

ARKitをクラブで使うと想定した時に、暗いところ、そして一部明るい(VJの)場合のARKitの振る舞いは?

ARKit1.5で、平面認識と垂直認識を試す 私は今ざっくりクラブでARを使うというような場面を想定していて、 でもARKitは暗い場面が苦手だと。 (まあ当たり前ですよね) 暗いけど一部明るい空間(VJが入ってるクラブ、みたいな)のときのARKitの振る舞いを調…