Mega Go 向け AR Session のベストプラクティス
この記事では、さまざまな種類のデバイスで最適な runtime effect を得るために、Mega Go 向けの AR session を作成および設定する方法を説明します。
開始する前に
- AR Session の基本概念、構成、workflow を理解する
- session を作成する方法を理解する
Default configuration の session
ほとんどのアプリケーションでは、default の Mega Go session configuration の使用を推奨します。これらの configuration は、一般的な使用シナリオの多くに合わせて最適化されています。
default session は次の種類のデバイスをサポートします。
- 6DoF motion tracking をサポートするデバイス (一部の最新 phone と headset)
- 5DoF inertial navigation 機能をサポートするデバイス (gyroscope と accelerometer を備えた多くの Android phone)
Hierarchy view の blank 領域を右クリックし、メニュー EasyAR Sense > Mega > AR Session (Mega Go Default Preset) から default Mega Go session を作成できます。
対応する script code は次のとおりです。
ARSessionFactory.CreateSession(ARSessionFactory.ARSessionPreset.MegaGo_MotionTracking_Inertial)
この session は MegaGo_MotionTracking_Inertial preset を使用します。
- frame source components とその順序については、Preset AR Sessions の frame source groups の MegaGo_MotionTracking_Inertial preset に対応する frame source group を参照してください
- MegaGoTrackerFrameFilter.MinInputFrameLevel は FiveDof です
異なる presets を選択する
default の Mega session configuration 以外にも、具体的な要件に応じて異なる presets を選択して session を作成できます。主な違いは、サポートするデバイス種類です。 メニューおよび ARSessionFactory.CreateSession(ARSessionFactory.ARSessionPreset, ARSessionFactory.Resources) を使用して session を作成する場合、選択可能な presets は次のとおりです。
- MegaGo_MotionTracking
- frame source components とその順序については、Preset AR Sessions の frame source groups の MegaGo_MotionTracking preset に対応する frame source group を参照してください
- MegaGoTrackerFrameFilter.MinInputFrameLevel は SixDof です
- MegaGo_MotionTracking_Inertial (default)
- frame source components とその順序については、Preset AR Sessions の frame source groups の MegaGo_MotionTracking_Inertial preset に対応する frame source group を参照してください
- MegaGoTrackerFrameFilter.MinInputFrameLevel は FiveDof です
- MegaGo_MotionTracking_Inertial_3DOF
- frame source components とその順序については、Preset AR Sessions の frame source groups の MegaGo_MotionTracking_Inertial_3DOF preset に対応する frame source group を参照してください
- MegaGoTrackerFrameFilter.MinInputFrameLevel は ThreeDof です
- MegaGo_MotionTracking_Inertial_3DOF_0DOF
- frame source components とその順序については、Preset AR Sessions の frame source groups の MegaGo_MotionTracking_Inertial_3DOF_0DOF preset に対応する frame source group を参照してください
- MegaGoTrackerFrameFilter.MinInputFrameLevel は ZeroDof です
注記
Mega Go はデバイス種類によって runtime effect が異なります。詳細は Mega がサポートするデバイスと platform applications を参照してください。
次のステップ
関連トピック
- Frame sources を読み、frame sources の基本概念と runtime frame source selection process を理解します
- Frame source group を追加する を読み、frame source groups の設定と使用方法を理解します
- Mega がサポートするデバイスと platform applications を読み、Mega がサポートするデバイスと異なるデバイスでの runtime effects を理解します