Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Hololens projection matrix

mkentiemkentie
edited January 2017 in Questions And Answers

Hi,

I'm using remoting, but I assume this is the same when running directly on the Hololens. The projection matrix I'm getting from the API has a slightly strange format.

  1. First of all, it looks to be an off-center projection matrix. Could you explain why this is, isn't it enough for the 3D effect that the two camera view matrices are different?
  2. Furthermore, element 2,1 of the matrix has a value (however small); why is this the case? In No projection matrix samples I've been able to find set this to anything. In my example this is -0.002639. https://msdn.microsoft.com/en-us/library/windows/desktop/bb205350(v=vs.85).aspx
  3. For the 3D engine I'm using I need to extract the FOV from the matrix; is it correct that this is 33.8 degrees horizontal and 19 degrees vertical?

Example:
3.76853, 0, 0, 0
-0.002639 6.6520, 0, 0
0.0423 0.442 1.005 1.0
0, 0, -0.1.005, 0

Answers

  • Options
    lsplsp
    edited April 2017

    The off-center is OK, the frustum is asymmetric. From rough estimates (pen and paper and screenshot) I see that the FOVs are 45 deg horizontal and 22 vertical. BTW for me m33=-1.005, m34=-1 (so it's a right-handed reference).

Sign In or Register to comment.