List
Find Surfance Problem
Posted Date: 2018-04-12 19:44     Edited Date: 2018-04-26 18:11     Writer: inactive

Hey guys, how are you? 

I`m facing, in my opinion, a tiny trouble when trying to make the app detect the surface angle. Let me try to explain it. Everytime I open the app and then click "Start tracking" the scenario is positioned using my device angle rather the surface angle. Its like the plugin doesnt recognice the surface and use my device perspective to place the scenario. 

Thanks in advance.

 


1. SDK Version: 3.5
2. Development Environment: Unity-Android
3. Tracker/Scanner: Instant Tracking
4. License Type: Free
5. Target Device(Optional): Moto G5

 

Posted Date: 2018-04-13 4:13     Edited Date: 2018-04-13 4:13     Writer: inactive

Hi,

Thank you for your interest in our SDK!  

Our Instant Tracker uses internally Android Rotation Vector related to both gyro and compass sensors.

Moto G5 has no gyro or compass sensor. 

If gyro or compass is not available on some phones, Instant Tracker assumes the front scene as the ground plane. So you could feel something's wrong.

If you want to check whether the current phone supports Android Rotation Vector or not, please refer to the following codes.


SensorManager mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);

List<Sensor> sensors = mSensorManager.getSensorList(TYPE_ROTATION_VECTOR);
Log.i(TAG, "# sensor : " + sensors.size());
for(int i=0; i<sensors.size(); i++)
{
   Log.i(TAG, sensors.get(i).getName());
}
if(sensors.isEmpty())
{
   Log.i(TAG,"There is no Rotaion Vector");
}

Sara
SDK Team, MAXST

Posted Date: 2018-04-13 23:36     Edited Date: 2018-04-14 0:03     Writer: inactive

Hey Sara!

Thanks for the fast response! Awesome to know that.

So, I think I didn't quite explain as well the matter as I thought and Icouldn't  try the code you wrote on unity. On the example I wrote I was using the Moto G5, and I read at the device specs that it has all it's necessary to work with your AR kit. My only problem is regarding the inicial placement of the 3D object, everything else works perfectly. I'm probably missing something at the inicial configs, but I don't know what it is. Wonder if you could give me some help.

Posted Date: 2018-04-16 2:36     Edited Date: 2018-04-16 2:36     Writer: inactive

Hello, 

Rotation vectors are also used to detect the initial pose.

Moto G5 has a gyroscope, but no magnetometer.

Try another device which has a gyroscope and a magnetometer sensor.

 

Sara
SDK Team, MAXST

Posted Date: 2018-04-26 18:11     Edited Date: 2018-04-26 18:11     Writer: inactive

Hi Sara,

Thanks for the help and sorry about the late response!