List
Rotated coordinates
Posted Date: 2019-04-05 7:22     Edited Date: 2019-04-09 0:44     Writer: alex798

Please provide your development details as below;

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

1)4.1

2)unity-android

3)Image

4)free

5)Redmi note 4

Hello, recently i found out that in your sdk all positioning is rotated 90 around x axis(so default camera is the same)- What is the easiest way to change that without issues with functionality?- hard to use existing scripts with that situation...

Posted Date: 2019-04-08 4:28     Edited Date: 2019-04-08 6:04     Writer: inactive

The GL user puts things in front of the objects to be rendered.

Unity users, however, put things on the floor.

We just rotated it in Unity, so if you want to use it in a way that is familiar to GL

Remove the following two lines.

AbstractARManager.cs
Update ()
{
   Quaternion rotation = Quaternion.Euler (90, 0, 0);
}

Trackable.cs
public Matrix4x4 GetPose ()
{
   Quaternion rotation = Quaternion.Euler (90, 0, 0);
}

 

Leo

Maxst Support Team

Posted Date: 2019-04-08 8:13     Edited Date: 2019-04-08 8:13     Writer: alex798

Thanks for reply,

I think it would be wiser to make Quaternion rotation = Quaternion.Euler (0, 0, 0); or functions that use rottion will crash...

Also should I change line in Trackable     rotation = Quaternion.Euler (-90, 0, 0); as well?

Posted Date: 2019-04-09 0:44     Edited Date: 2019-04-09 0:44     Writer: inactive

Thanks for the good advice. Good luck to you!

 

Leo

Maxst Support Team