AR Camera ACCELEROMETER

AR Camera ACCELEROMETER (Unity Asset) — augmented reality for 90% of all mobile devices without using gyroscope and compass, blends game objects and information with the surrounding environment.

Mobile Camera implements markerless augmented reality (AR) by using Unity Accelerometer and video camera on the player’s mobile device to display 2D or 3D objects as though they were in the real world.

Unity Asset Store | Download Button

Accelerometer vs Gyroscope

90% of all mobile devices have an accelerometer and video camera but only 20% have a gyroscope.

If you want greater coverage of devices, but less accuracy and stability, use AR Camera ACCELEROMETER.

If you want greater accuracy and stability, use AR Camera GYRO (docs).

You can also try to use both cameras for different cases.

Different devices have different accelerometers, and therefore different deviations and drifts.

Check also Top AR Engines for Unity.

AR Camera in Pokemon GO

If you want the same AR Camera like in Pokemon GO at the release time, then you need AR Camera GYRO (docs).

Camera View

You do not need to rotate or to move the camera in Unity Editor. You can position your own game objects in place of the demo objects.

Tracking

There are 3 different forms of tracking.
Only one at the same time can be selected for correct tracking.

The asset does not use a neural network to surfaces recognition. There is no surface recognition.

Tilting the phone away from yourself or toward yourself turns the camera in the game up or down.

Back Camera

It is used to track rotation using camera and Unity Accelerometer module. For rotation around the Y axis, an algorithm compares the pixel changes to the previous and current frames.

None Camera

It is used to track rotation using the only unity accelerometer with an approximation.
It consumes fewer resources than camera tracking and probably it is compatible with 90% smartphones.

Tilting the phone to the left or right rotates the camera about the Y-axis.

None Camera XZ Rotation

It is previous “None Camera” tracking but tilting the phone to the left or right rotates the camera about the Z-axis.

Tutorial

Getting Started with AR Camera Accelerometer

Folders & Files in package by default:

  • Makaka Games.

Steps

If you have any issues with the first launch then just Reach Support with Invoice Number and Get Help.

If you read this tutorial from PDF, first check the latest docs online to get actual information.

  1. Create New Unity Project with Unity 2018.3.7.
  2. Download and import AR Camera ACCELEROMETER into Unity.
  3. Open Demo Scene.
  4. Build for Mobile.

Testing

Android

Don’t use laptop webcam for testing of camera tracking because next Unity behavior is still active if you press “Play” in the Unity Editor 2017.1: (WEBCAMTEXTURE.WIDTH/HEIGHT ALWAYS RETURNS 16).

Tested with:

  • Lenovo A606 with Android 4.4;
  • Default orientation > Landscape left.

iOS

iPhone 4 or later has a gyroscope, so you can use AR Camera GYRO (docs) for greater accuracy and stability.

Limitations

  1. If we look straight down, the camera starts to rotate around the Y-axis very quickly.
  2. Camera tracking does not respond to very fast movements (excessive motion, blurred images).
  3. Camera tracking needs good illumination of the environment.

Advantages of AR Camera ACCELEROMETER

An accelerometer is an internal mobile sensor that will measure acceleration forces: static (the constant force of gravity pulling at your feet) or dynamic (caused by moving or vibrating the accelerometer):

  • No using of Gyro and Compass;
  • Wide Coverage of Devices;
  • 3 different forms of Tracking.

Unity has Input.acceleration (last measured linear acceleration of a device in three-dimensional space).

Support

First of all, read the latest docs online.
If it didn’t help, get the support.

Changelog

Check the current version of AR Camera Accelerometer on Asset Store.
The latest versions will be added as soon as possible.

1.3:

  • Unity version => 2018.3.7;
  • Fix low FPS in Unity Editor.

1.2:

Support for Unity Assets
I am Andrew Sirota, Founder at Makaka Games and full-time Publisher on Unity Asset Store. First of all, read the latest docs online. If it didn’t help, get the support.
Related Articles
One Comment
  1. ☄ AR Camera ACCELEROMETER – NEW UNITY ASSET

    When it comes to augmented reality, it is usually implied that the user of your game or application has a modern device.

    Moreover, such a smartphone should not be from the budget class itself. We need a gyroscope, and even a higher OS version and so on.

    In budget devices, there is an accelerometer sensor, which is not designed to implement augmented reality. More precisely, it does not provide enough data.

    It turns out that such users will not be able to use the AR-application. But if you really, really want, then you can give them such a chance.

    I have developed an AR camera for Unity using an accelerometer.
    Researchers say that it works on 90% of devices. Enjoy.

    Download on Asset Store.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Spelling error report

The following text will be sent to our editors: