Hello, I am using your native iOS sdk for tracking and Metal for drawing on an other layer. In the didTrackTarget method I simply pass the projection matrix and the model view matrix to my Metal renderer class and it forks just as it is suppose to work. My object appears on the marker and moves with it. The only problem is that I dont want this to happen. I would like to fix my object in the origin an just rotate.
So in English I would like to ignore tha translation and just use the rotation.
I did a bit of research and I found that it is possible to revers the operations on teh model view matrix if it is not too complicated and if I know the exact order of them.
So could you help me please solve this or at least tell me something about that matrix"s composition so I can find a solution?
almost 7 years ago
Hi Kemenes, The model view matrix is calculated in a standard 3d game dev manner. For our Unity extension we also did some matrix decomposition based on similar approaches like described here and here.
I hope this answer in helpful. Please let me know if you need further information.