Spawning AR Items
For more detailed information on spawning and using AR Items with Motive.io, see this article.
What Can I Spawn?
With Motive you can place different types of objects in the real world for your users to see. You can spawn 3D objects, images, and videos with different options including position, size, transparency, etc. You can also create audio landscapes by spawning locative-audio which can become quieter or louder based on distance from your player.
Where Can I Spawn Them?
In Motive three types of AR positioning work together and have common programmatic interfaces that dramatically simplify the process of dealing with the different underlying technologies.
Location AR lets you position your AR items at GPS locations in the real world. If available, Location AR objects will utilize real-world tracking (ARKit, ARCore, etc.), otherwise they will fall back to using GPS tracking.
Scene AR lets you position your AR items relative to the user (or another location). Scene AR does not rely on real-world locations, but instead relies on positioning relative to a center position (e.g. your user). Scene AR objects use real-world tracking if available (ARKit, ARCore, etc.), otherwise they fall back to using GPS tracking. Scene AR is useful for creating experiences that can be played anywhere and don’t require your player to be in a specific location.
Marker AR uses visual targets as anchors for placing your AR items. Motive utilizes frameworks like Vuforia to connect AR items to visual markers. This means that you can specify an image target to place any number of AR Items (images, videos, 3D objects) on top of or nearby. Using Motive, you can update these AR objects through scripting based on any conditions or actions taken by your player.
Location AR and Scene AR objects give you some extra options that affect how they’re displayed. These includes options such as:
- Always Face Viewer. Ensures that the object is always oriented towards the user. Especially useful for Image or Video objects.
- Visible Range. The range at which the item is visible.
- Distance Variation. The way this item is displayed based on distance (fixed size/variation)
Interacting with AR Items
The different positioning methods have common underlying technologies that allow you to interact with AR objects no matter which positioning method is used. For example, once an AR item is spawned, you can attach Inspectors, effects, or create AR Tasks that work the same way no matter what kind of AR item it is.
An AR Task uses an existing AR Item as a focus for the player to interact with. This lets you use the power of Motive Tasks and Assignments with AR Items. A players can be asked to collect this AR Item, or to place something at this AR Item in exchange for something. These tasks can also be extended to perform custom actions.
Location AR Collectibles
You can spawn AR items to be collected by your players. These items can be spawned dynamically using Scene AR (see Ghost Hunter) to constantly populate the world around your player with items to collect.
When viewing an AR item, you may want your player to have some additional information about the object, or some options on interacting with the object. Using AR Inspectors, you can show UI elements that only appear when your player is currently looking at the AR Object. These UI elements include buttons that can allow your player to make choices on what action to take.