Vuforia Model Target on Magic Leap 2

Hi All,

I'm new on this forum and I'm working on model target with Vuforia.

In Unity, I created a simple project for ML2 using the Magic Leap Project Setup Tool. Then I added the Vuforia engine. When I test the Image Target object everything works fine, but when I replace it with the Model Target object nothing happens. Does anyone have an idea, or an example project that works on a simple model like a cube ?
To be sure, what camera should we use for work on the ML2 and Vuforia ?

The different models created with Model Target Generator are all validate with the iOS app Vuforia Creator. All models are working fine in this App.

Unity Editor version: 2022.3.45f1
ML2 OS version: 1.10.0
Unity SDK version: 2.4.0
Host OS: MacOS

Thanks

Hi @franck.ardisson,

If you're working with OpenXR, make sure to enable Perception Snapshots by going to OpenXR Settings > Magic Leap Support > Enable Perception Snapshots .

I would also recommend reaching out to the Vuforia Support team. They should be able to help you with their API.

https://developer.vuforia.com/support

Hi @etucker,

Thanks for your reply.

I used the Digital Eyewear example to validate the operation and when I launch the application on the Magic Leap 2, the application interfaces flicker. Do you have any idea of ​​the origin of the problem ?

As a result, when I try to record a video of the example, the objects are shifted in the video but not in the glasses !

With other applications the object's shift is not present.

Please make sure you are using the latest SDK, and that the depth submission setting in the Open XR setting is set to 16 or higher. Alternatively you can use the Unity version that was used to create the Unity Magic Leap Examples v2.4.0.

As for the offset in the recording, you will need to enabled secondary view in the OpenXR features.

Secondary View | MagicLeap Developer Documentation

Hi @kbabilinski,

Thank you for your answers.

In the Digital Eyewear example, the built-in SDK is version 2.1.0. So I imported version 2.4.0.

Indeed the Depth Submission mode parameter solves the flickering problem.

But now I don't understand why I can no longer record a video while the app is running. As soon as I start recording, the application with the Model Target disappears and stops working!

I'm not sure what could be causing this. Does other content remain on the screen? Do you see any logs to suggest what might be causing the object to stop tracking?

Do you have other OpenXR Features enabled? Such as Secondary View ?

Hi @kbabilinski,

Yes Secondary view is active in order to record a video with correct alignement between real and virtual world.

Does other virtual content remain visible?

Again we are not too familiar with Vuforia so you may need to ask on their stack overflow channel for better help with this issue.