Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

Inaccuracy of picture and actual view

Hello,
the picture tells what my problem is. The black lines are drawn in the hololens with unity and GL right in the center:

GL.PushMatrix();
lineMaterial.SetPass(0);
GL.LoadOrtho();
GL.Begin(GL.LINES);
GL.Color(Color.blue);
GL.Vertex3(0, 0.5f, 0);
GL.Vertex3(1f, 0.5f, 0);
GL.Vertex3(0.5f, 0, 0);
GL.Vertex3(0.5f, 1f, 0);
GL.End();
GL.PopMatrix();

here is the picture, stretched to 1920 x 1200. The center of the black lines is 937 x 572 and the red lines 960 x 600.

I usually would assume, that they match perfectly, and that is what I want. How can I correct this with unity?
Thank you very much.

Answers

  • stepan_stulovstepan_stulov ✭✭✭
    edited November 2017

    Hey, @Khronossos

    HoloLens is a stereoscopic device. It renders two slightly different images one for each eye to create an illusion of depth. Strictly speaking, there is no such thing as a screen-shot of a stereoscopic image unless you use a, well, stereoscopic device to reproduce it. If I may speculate, you have obtained this screen-shot either via a locatable camera or via Device Portal. As far as I remember both methods capture only one eye. This could potentially be a reason for the misalignment.

    However, don't take my word on it. I'm not sure how 2D rendering relates to the stereoscopic-ness.

    I'd speculate if you could blend screen-shots of both eyes you'd have one black cross a bit to the left, one a bit to the right and finally your red cross in the middle.

    To really have it centered you'd need to have the screen-shot from the third camera somewhere in the middle of the HoloLens which it doesn't have I think.

    Hope this helps.

    Building the future of holographic navigation. We're hiring.

  • Hi,
    I experience the same problem while using 3d viewer beta on the hololens. My eyes perceive a perfect alignment but when i do media capturing (taking a picture thru cortana) the alignment is off on the picture.
    @stepan_stulov I have actually tried another 3rd party app that did not have this problem. Do you guys think this is a software based problem?

Sign In or Register to comment.