-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portrait orientation support #1
Comments
Hi @shaunsahdev thanks! As far as I remember, if the device rotates, depth and color image from device camera does not rotate. We should transform color and depth information of a point regarding to the device orientation. This is not a big deal to implement. If I had a spare time, I would have already implemented it :) |
You don't actually need to do those transformations. It is enough to just take the rotation into account when getting the world point. There might be something that I'm missing here, but it seems to work. E.g.:
|
Thanks for code snippet. I meant this by saying 'transform color and depth information of a point regarding to the device orientation'. |
Right 👍. I first thought it specifically meant rotating the XRCpuImages so they would match with the screen orientation. But of course it does not really matter if it is the screen coordinates that are rotated or the cpu images. Except that the latter would have been a lot more work. |
Hi, this looks great! do you know why it only works in landscape-left orientation? Thanks.
The text was updated successfully, but these errors were encountered: