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

Can I watch 3D movie in Unity with hololens?

I will place a screen in the wall, and the movie will be left-right format that can use VR to see.
When I watch the movie in the screen with hololens, I can experience the sense of depth of the movie. Can I achieve this purpose in Unity?

Best Answer

  • Options
    t_xliangt_xliang
    Answer ✓

    OK, I find another way to achieve the goal in unity.
    First set a tag to distinguish which eye is rendering now. And change this value in
    "OnOnPreRender", which called twice per frame (once per eye):
    private int m_currentEye = 0;
    void OnPreRender()
    {
    Shader.SetGlobalInt("RenderingEye", m_currentEye);
    m_currentEye = m_currentEye^1;
    }

    And then in shader file:

    Add this shader to the GameObject who contains the 3d video.
    note: I use the unity 5.6.0f3 which contains "VideoPlayer" component.

Answers

  • Options
    Peter_NZPeter_NZ ✭✭✭

    VoyeuR VR claims to do this. I haven't used it so I can't comment on how well it works.

  • Options

    Thank you for your advise.
    But when I go to the
    [https://www.microsoft.com/en-gb/store/p/voyeur-vr/9nblggh4wxpk]"
    I can't download the app,it says "This app does not work on your device."

  • Options
    Peter_NZPeter_NZ ✭✭✭

    Really? Have you tried downloading it on your Hololens or from PC?

  • Options
    t_xliangt_xliang
    Answer ✓

    OK, I find another way to achieve the goal in unity.
    First set a tag to distinguish which eye is rendering now. And change this value in
    "OnOnPreRender", which called twice per frame (once per eye):
    private int m_currentEye = 0;
    void OnPreRender()
    {
    Shader.SetGlobalInt("RenderingEye", m_currentEye);
    m_currentEye = m_currentEye^1;
    }

    And then in shader file:

    Add this shader to the GameObject who contains the 3d video.
    note: I use the unity 5.6.0f3 which contains "VideoPlayer" component.

Sign In or Register to comment.