Forum

Author Topic: import camera  (Read 774 times)

wangvnn

  • Newbie
  • *
  • Posts: 2
    • View Profile
import camera
« on: October 31, 2018, 11:30:59 PM »
Hi,

I have camera position and orientation in Unity coordinate system (right handed).
How do I convert it into PhotoScan coordinate system and export them in xml format?
I have tried different methods but I have no luck with the conversion.
When I imported them into PhotoScan I get correct position but not orientation as well and where the camera facing...
Any one does this before?
And any information about which coordinate system PhotoScan is using?

Thanks  a lot.

wangvnn

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: import camera
« Reply #1 on: November 02, 2018, 09:19:49 PM »
I figured it out in the hard way, stuff like this should be in the manual, but it is scattered all over the places, and that makes it really hard to work with the software.

Here are the 2 transformations combined:  (2 of them, 1 is from left to right handed, 1 for image's coordinate)

 Left handed (Unity):  x to right, y to up, z to in, image 's x follow x, image's y follow y (z follow z)
Xx Yx  Zx Tx
Xy Yy  Zy Ty
Xz Yz  Zz  Tz
0    0   0      1

To Right Handed (PhotoScan):  x to right, y to up, z to out, image 's x follow x, image's y follow -y (z follow z)
 Xx  -Yx   Zx  Tx
 Xy  -Yy   Zy  Ty
-Xz   Yz  -Zz  -Tz
0      0      0     1
(Minor correction -Yx, -Yy, Yz)

Hope this help others.
« Last Edit: November 07, 2018, 08:00:59 PM by wangvnn »