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.

Room mesh not always aligned with UP direction in Unity

edited January 2017 in Questions And Answers


I am using Unity to develop a Hololens app.

Most of the time the room mesh that I receive from the Lens is aligned with the UP direction in Unity's world (0,1,0).

However, it sometimes occurs that the room meshes suddenly losses its alignment with Unity UP vector, which results in a tilted mesh (about 40 degree off Unity's UP direction).

(Please note that the room mesh looks perfectly fine inside the lens, its just that its UP vector is off compared to Unity's UP so it looks tilted in the editor)

(Please also note that once the tilt happens the room meshes will be tilted both on the editor with remote debug, and when running the app directly on the lens itself).

Now I understand that the origin of the room is different from Unity but 40 degrees seems a bit off, that would also mean that many game properties would have to be changed accordingly (gravity direction for instance).

The strange thing is that the room is normally aligned with Unity's UP for a while, and then it changes for no obvious reason and cannot be reverted back to normal alignment and remains off 40 degrees, unless I create an entirely new scene (some obscure residual cache value might cause the problem ???)

Could anybody confirm that this behavior is not to be expected, and that a room mesh should always more or less be aligned with Unity's UP vector?

Sign In or Register to comment.