Best Practices for AR Sessions with Mega Go
This article introduces how to create and configure an AR session for Mega Go to achieve the best performance on different types of devices.
Before You Start
- Understand the basic concepts, components, and workflow of AR Session.
- Learn how to create a session.
Sessions with Default Configuration
For most applications, it is recommended to use the default Mega Go session configuration. These configurations have been optimized and are suitable for most common usage scenarios.
The default session supports the following types of devices:
- Devices that support 6DoF motion tracking (some modern mobile phones and headsets).
- Devices that support 5DoF inertial navigation (most Android phones with gyroscopes and accelerometers).
Right-click on a blank area in the Hierarchy view and select EasyAR Sense > Mega > AR Session (Mega Go Default Preset) from the menu to create a default Mega Go session.
The corresponding script code is as follows:
ARSessionFactory.CreateSession(ARSessionFactory.ARSessionPreset.MegaGo_MotionTracking_Inertial)
This session uses the MegaGo_MotionTracking_Inertial preset:
- For the frame source components and their order, refer to the frame source group corresponding to the MegaGo_MotionTracking_Inertial preset in Preset AR Session Frame Source Group.
- MegaGoTrackerFrameFilter.MinInputFrameLevel is FiveDof.
Selecting Different Presets
In addition to the Mega session with the default configuration, you can also choose different presets to create a session according to specific requirements. The main difference between them lies in the types of supported devices. When creating a session using the menu and ARSessionFactory.CreateSession(ARSessionFactory.ARSessionPreset, ARSessionFactory.Resources), the available presets include:
- MegaGo_MotionTracking
- For the frame source components and their order, refer to the frame source group corresponding to the MegaGo_MotionTracking preset in Preset AR Session Frame Source Group.
- MegaGoTrackerFrameFilter.MinInputFrameLevel is SixDof.
- MegaGo_MotionTracking_Inertial (default)
- For the frame source components and their order, refer to the frame source group corresponding to the MegaGo_MotionTracking_Inertial preset in Preset AR Session Frame Source Group.
- MegaGoTrackerFrameFilter.MinInputFrameLevel is FiveDof.
- MegaGo_MotionTracking_Inertial_3DOF
- For the frame source components and their order, refer to the frame source group corresponding to the MegaGo_MotionTracking_Inertial_3DOF preset in Preset AR Session Frame Source Group.
- MegaGoTrackerFrameFilter.MinInputFrameLevel is ThreeDof.
- MegaGo_MotionTracking_Inertial_3DOF_0DOF
- For the frame source components and their order, refer to the frame source group corresponding to the MegaGo_MotionTracking_Inertial_3DOF_0DOF preset in Preset AR Session Frame Source Group.
- MegaGoTrackerFrameFilter.MinInputFrameLevel is ZeroDof.
Note
The performance of Mega Go varies on different types of devices. For more details, refer to Devices and Platform Applications Supported by Mega.
Next Steps
- Add Tracking Targets
- Enable Editor Tools
- Add 3D Content Aligned with the Real World
- Control the Tracking Process
Related Topics
- Read Frame Sources to understand the basic concepts of frame sources and the process of selecting frame sources at runtime.
- Read Add a Group of Frame Sources to learn how to configure and use data source groups.
- Read Devices and Platform Applications Supported by Mega to understand the devices supported by Mega and its performance on different devices.