List
[SOLVED] Instant Tracker gravity direction
Posted Date: 2018-04-18 11:23     Edited Date: 2018-04-20 9:28     Writer: inactive

Hi,

I want to develop Instant Tracker application that simulated physics. But gravity direction in towards into screen. Gravity direction must be planar surface. I wrote a object spawner under Instant Trackable Behaviour. Objects are spawned but gravity is not changed by position. Instantiated objects drop towards into screen.


1. SDK Version:
    3.5.0
2. Development Environment: (eg. Unity-Android, Unity-iOS, Native Android, Native iOS) 
    Unity Android
3. Tracker/Scanner:
    Tracker
4. License Type(Free / Pro-One Time Fee / Pro-Subscription / Enterprise):
    Free
5. Target Device(Optional):
    Android Samsung A3
 

Posted Date: 2018-04-18 18:09     Edited Date: 2018-04-18 18:09     Writer: inactive

Hi,

Thank you for using our sdk.

We can not understand your exact problem with only text.

So..

Could you please share your video capture file of your program?

If our team can get it we can help you more easily.

 

Jack

SDK Team, MAXST

Posted Date: 2018-04-20 0:59     Edited Date: 2018-04-20 0:59     Writer: kscho

Hello.

It seems that Galaxy A3 does not have gyro or compass.

MAXST AR SDK's Instant Tracker uses Android Rotation Vector internally related to both gyro and compass sensors.

If your target device has no gyro or compass sensor, the engine can not find the initial pose. If there is no sensor value, our engine assumes the front scene as a ground plane.

If you want to check whether the current device support Android Rotation Vector, 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");
}

Thanks.

 

John

SDK Team, MAXST

 

Posted Date: 2018-04-20 6:52     Edited Date: 2018-04-20 6:52     Writer: inactive

Samsun Galaxy A3 has sensors. It works well.

I solved my problem by changing AR Camera > ArManager script.

I changed World Center Mode to TARGET.

Otherwise camera stays static on y axis so gravity direction seems like towards into screen. If you change World Center Mode to TARGET, at this time plane stays static and camera moves around by movement.

More example and document pls

Posted Date: 2018-04-20 9:28     Edited Date: 2018-04-20 9:28     Writer: inactive

Oh, It's very nice to hear that you solve the problem and allow us know it.

We sometimes received similar issues from developers and we assume that your solution can be applied to them.

Thank you very much.

Jack

Maxst SDK Team