Skip to content
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

Can these samples run on the hololens? #6

Open
prodev2015 opened this issue Oct 31, 2019 · 3 comments
Open

Can these samples run on the hololens? #6

prodev2015 opened this issue Oct 31, 2019 · 3 comments

Comments

@prodev2015
Copy link

prodev2015 commented Oct 31, 2019

Hello, I want to know if these openXR samples can run on the Hololens. If possible, can you tell me how to do that?

@jherico
Copy link
Owner

jherico commented Oct 31, 2019

I don't have hololens hardware to test with and my attempts at getting the hololens emulator working have been pretty dismal so far.

There are a number of places where the examples are hard-coded to assume a VR HMD, rather than AR (like where I set the environment blend mode to opaque in the FrameEndInfo structure. I'm also not familiar with the whole hololens ecosystem and if it's possible to run a GLFW based application that outputs to the headset. However, it should be possible to at least adapt the bulk of the code to work. Without a development environment for hololens though I can't really provide any more detailed guidance than that.

I may open a patreon or github patron account for people who want to contribute to my examples work and if successful with that I may pop for a hololens rental for at least long enough to validate some working code. Keep an eye out for links in the readme.

@yl-msft
Copy link

yl-msft commented Apr 23, 2020

FYI, there are some hololens openxr samples here:
https://github.com/microsoft/OpenXR-MixedReality

Would love to know what do you like to see in addition in those samples.

@tilkinsc
Copy link

That repository is pretty abysmal when it comes to looking through code. They turned the modularity up for no reason and you are going to jump through functions and back to understand it like a madman. Not to mention it only targets d3d11. This example supports hololens with just a few changes, without regard of how to implement the swapchain rendering algo. Being MS also, there are functions that you will need specifically for hololens I think which is in openxr_platform.h. That being said, if you want to drop the SDL and GLFW dependency on windows here is how you get a basic window and context on windows: https://pastebin.com/5Xd1eCPy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants