AR Session best practices for Mega Go
This article describes how to create and configure an AR session for Mega Go to get the best runtime effect on different types of devices.
Before you start
- Understand the basic concepts, composition, and workflow of AR Session
- Understand how to create a session
Default session configuration
For most applications, the default Mega Go session configuration is recommended. These configurations have been optimized for most common usage scenarios.
The default session supports the following types of devices:
- Devices that support 6DoF motion tracking (some modern phones and headsets)
- Devices that support 5DoF inertial navigation (most Android phones with gyroscopes and accelerometers)
In the Hierarchy view, right-click a blank area and use the menu EasyAR Sense > Mega > AR Session (Mega Go Default Preset) to create the 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, see the frame source group corresponding to the MegaGo_MotionTracking_Inertial preset in Frame source groups of preset AR Sessions
- MegaGoTrackerFrameFilter.MinInputFrameLevel is FiveDof
Select different presets
In addition to the default Mega session configuration, you can select different presets according to specific requirements to create sessions. The main difference between them is the types of devices they support. When creating a session with the menu or ARSessionFactory.CreateSession(ARSessionFactory.ARSessionPreset, ARSessionFactory.Resources), the available presets include:
- MegaGo_MotionTracking
- For the frame source components and their order, see the frame source group corresponding to the MegaGo_MotionTracking preset in Frame source groups of preset AR Sessions
- MegaGoTrackerFrameFilter.MinInputFrameLevel is SixDof
- MegaGo_MotionTracking_Inertial (default)
- For the frame source components and their order, see the frame source group corresponding to the MegaGo_MotionTracking_Inertial preset in Frame source groups of preset AR Sessions
- MegaGoTrackerFrameFilter.MinInputFrameLevel is FiveDof
- MegaGo_MotionTracking_Inertial_3DOF
- For the frame source components and their order, see the frame source group corresponding to the MegaGo_MotionTracking_Inertial_3DOF preset in Frame source groups of preset AR Sessions
- MegaGoTrackerFrameFilter.MinInputFrameLevel is ThreeDof
- MegaGo_MotionTracking_Inertial_3DOF_0DOF
- For the frame source components and their order, see the frame source group corresponding to the MegaGo_MotionTracking_Inertial_3DOF_0DOF preset in Frame source groups of preset AR Sessions
- MegaGoTrackerFrameFilter.MinInputFrameLevel is ZeroDof
Note
Mega Go runs differently on different types of devices. For details, see 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 runtime frame source selection process
- Read Add a frame source group to understand the configuration and usage of frame source groups
- Read Devices and platform applications supported by Mega to learn about devices supported by Mega and runtime effects on different devices