Docs

AR Camera ACCELEROMETER ๐Ÿ“ฑ๐Ÿคณ๐Ÿพ

Augmented Reality for Unity

AR Camera ACCELEROMETER – augmented reality for 90% of all mobile devices without using gyroscope and compass, blends game objects and information with the environment around you.

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

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.

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

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

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.

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ย surfaces 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 accelerometer. 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 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.

Testing

Android

You can test demo scene right in the Unity Editor with Unity Remote app. It supports accelerometer and device camera streams through USB-connection. But my testing device with Unity 2017.1 supports the only accelerometer for Unity Remote.

Besides, keep in mind, one Unity bug (WEBCAMTEXTURE.WIDTH/HEIGHT ALWAYS RETURNS 16) is still active if you press “Play” in the Unity Editor 2017.1.ย So do not use laptop webcam for testing of camera tracking.

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 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.

Download

Download on the Unity Asset Store.
Check also more myย AR Unity Assets.

Support

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

Advantages

No using of Gyro and Compass
Coverage of Devices
3 different forms of Tracking

Efficiency

An accelerometer is an internal mobile sensor that will measure acceleration forces: static (eg, the constant force of gravity pulling at your feet) or dynamic (caused by moving or vibrating the accelerometer). Unity has Input.acceleration (last measured linear acceleration of a device in three-dimensional space).

GET AR ASSETS FOR UNITY
User Rating: 5( 2 votes)
Tags

Andrew Sirota

Hi, friend! I am Founder at Makaka Games. I love Augmented Reality. I am open for communication and ready to implement your craziest ideas. Today we are Starting a new Experiment.

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: http://u3d.as/YSM
    โ˜„ Download: http://u3d.as/YSM
    โ˜„ Download: http://u3d.as/YSM

    โ›‘ I answer any questions: info@makaka.org
    โ›‘ Support: info@makaka.org

Leave a Reply