GithubHelp home page GithubHelp logo

Comments (15)

camccaf-msft avatar camccaf-msft commented on June 10, 2024 2

Hey Tim, theoretically UXT should work with OpenXR, although it hasn't been tested on UE5 and I don't have a HL2 near me at the moment to test it myself.

I remember having problems packaging the code with OpenXR plugin, though I will try it out and figure out if it works better.

I don't think I've seen packaging issues with OpenXR before, if you can get the error message causing the packaging to fail that would be really useful!
If you hit a crash on device when using the MSFT OpenXR plugin, there's a workaround for it here: microsoft/Microsoft-OpenXR-Unreal#84

I get this error when trying to use OpenXR:

Should I copy this to the OpenXR issues or did I miss something?

Was that in editor? If so, you can suppress that message by putting the call to Start AR Session behind a branch checking if the result of Is AR Supported is true. The MSFT OpenXR plugin should enable all the required OpenXR engine plugins. But you can double check that the following plugins are enabled:

  • OpenXR
  • OpenXREyeTracker
  • OpenXRHandTracking
  • OpenXRMsftHandInteraction

The HoloLens plugin doesn't show up. Maybe because I'm using UE5?

You're correct, the HoloLens platform support was in a plugin in UE4 but has become part of the engine in UE5

Hope that helps!

from mixedreality-uxtools-unreal.

fieldsJacksonG avatar fieldsJacksonG commented on June 10, 2024 2

The issue Carl linked is most likely why you are crashing, search the blueprints for StartARSession and add a small delay before it is actually called to work around this. If you are using the UXT sample project, StartARSession is called in UXToolsExamples/Common/GameMode/MRGameMode's event graph.

This is fixed in 5.1, but I do not recommend updating right now since HoloLens has a few other 5.1 engine issues that are being resolved before it comes out of preview.

from mixedreality-uxtools-unreal.

luis-valverde-ms avatar luis-valverde-ms commented on June 10, 2024

Hey @Tim-Potratz , this sounds like a platform issue more than a UX Tools one. @fieldsJacksonG , would you be able to help Tim?

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

Are there any updates on this problem? It is some what critical for my app in oder to work.

from mixedreality-uxtools-unreal.

luis-valverde-ms avatar luis-valverde-ms commented on June 10, 2024

Sorry for the delay @Tim-Potratz . I've pinged @fieldsJacksonG directly, hopefully we will hear from him soon.

from mixedreality-uxtools-unreal.

fieldsJacksonG avatar fieldsJacksonG commented on June 10, 2024

@Tim-Potratz are you using OpenXR or the deprecated WMR plugin?

If you are using WMR, can you switch to OpenXR? You can make this switch by adding this plugin to your game's Plugin directory:
https://github.com/microsoft/Microsoft-OpenXR-Unreal/tree/main/MsftOpenXRGame/Plugins/MicrosoftOpenXR

Looking at the WMR QR code, I could see this possibly happening here if the QRCode was not able to be tracked:
https://github.com/EpicGames/UnrealEngine/blob/d9d435c9c280b99a6c679b517adedd3f4b02cfd7/Engine/Source/ThirdParty/WindowsMixedRealityInterop/MixedRealityInterop/QRCodeObserver.cpp#L112

Unfortunately, no new WMR changes are going into the engine, and this has been removed in 5.1.

The similar block for OpenXR's QR tracking here should be resilient to this because it more explicitly checks that the QRCode can be located:
https://github.com/microsoft/Microsoft-OpenXR-Unreal/blob/55ed0b870125a7151058a3556000603b39bc6f93/MsftOpenXRGame/Plugins/MicrosoftOpenXR/Source/MicrosoftOpenXR/Private/QRTrackingPlugin.cpp#L309

If you are already using OpenXR, I will investigate further!

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

I remember having problems packaging the code with OpenXR plugin, though I will try it out and figure out if it works better.

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

I get this error when trying to use OpenXR:
grafik

Should I copy this to the OpenXR issues or did I miss something?

from mixedreality-uxtools-unreal.

luis-valverde-ms avatar luis-valverde-ms commented on June 10, 2024

Did you enable the HoloLens plugin? See: https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unreal/unreal-quickstart#enabling-required-plugins

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

The HoloLens plugin doesn't show up. Maybe because I'm using UE5?

from mixedreality-uxtools-unreal.

luis-valverde-ms avatar luis-valverde-ms commented on June 10, 2024

It could be, I'm not that familiar with the latest state there. Did you select HoloLens 2 support in the UE5 installation options? https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unreal/unreal-project-setup

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

Yeah I already had done all those steps with WMR, which worked fine. I don't have the Mixed Reality Toolkit Hub installed, because I use the Source plugins to be on the newest state of development.
Note that the current OpenXR plugin for UE5 doesn't seem to be officially released.
Edit: Okay scrab that last part, I may have downloaded the wrong version, I will try the released one.
Edit 2: Nope, still doesn't work.

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

Yes the message is in editor, though it hasn't showed up before and the app crashes on the HoloLens when trying to launch.

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

Thanks the app starts now and the tracking seems to be okay. Though I can't get the actual tracking state like before.

from mixedreality-uxtools-unreal.

Tim-Potratz avatar Tim-Potratz commented on June 10, 2024

Okay I will move this crashing issue to OpenXR. QRCode tracking works from what I can tell.

from mixedreality-uxtools-unreal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.