bart_kevelham
August 24th, 2005, 06:06 PM
Hi all,
I am new to ARToolkit and I'm trying to get the coordinates of the camera (it's location and orientation) in markerspace coordinates. That is, with z pointing up from the marker. Now, I have been able to transform the result of arGetTransMat in such a way that I do get the correct location, but the orientation isn't correct.
For some reason, when I hold the camera at a fixed position and do a roll, the results I get would suggest a roll in the other direction. (Translations of the camera are handled correctly). I have followed the following approach to get from Markerposition in cameraspace to camera in markerspace:
1. negate the translation in the matrix returned by arGetTransMat
2. transpose the rotation in the matrix returned by arGetTransMat
Am I missing something? I have seen several discussions on this issue but (as far as I could tell) no real solution. If I overlooked it, I'm sorry and a link would suffice.
Kind regards,
Bart
p.s. nice work on the new website. Looks really good and instructive.
I am new to ARToolkit and I'm trying to get the coordinates of the camera (it's location and orientation) in markerspace coordinates. That is, with z pointing up from the marker. Now, I have been able to transform the result of arGetTransMat in such a way that I do get the correct location, but the orientation isn't correct.
For some reason, when I hold the camera at a fixed position and do a roll, the results I get would suggest a roll in the other direction. (Translations of the camera are handled correctly). I have followed the following approach to get from Markerposition in cameraspace to camera in markerspace:
1. negate the translation in the matrix returned by arGetTransMat
2. transpose the rotation in the matrix returned by arGetTransMat
Am I missing something? I have seen several discussions on this issue but (as far as I could tell) no real solution. If I overlooked it, I'm sorry and a link would suffice.
Kind regards,
Bart
p.s. nice work on the new website. Looks really good and instructive.