Log in or register to post comments

Hololens 2 / Unity 2019.4 / Vuforia 9.4

October 12, 2020 - 1:54am #1

Hi, 

I'm trying to run the Vuforia's "Image Targets" functionality on Hololens 2.

I'm using Unity 2019.4.11, MRTK 2.4.0 and Vuforia 9.4.6.

In the Unity editor this seems to work, but not on the device.

Therefore, I have questions:

1) has anyone launched an application with a combination of these software?

2) which package should be used "Windows Mixed Reality" or "Windows XR Plugin"?

3) which MRTK profile should be set Hololens2 or XRSDK or an another?

4) "XR Rig" should be used or not?

The documentation seems not very clear and out of date.

Thank you in advance for your answer.

Hololens 2 / Unity 2019.4 / Vuforia 9.4

October 22, 2020 - 12:38am #4

Hi,

Dsalibu and PerryGT  thank you for your interest.

In the meantime, I have done a little research.

I tested on Hololens 2:

1) Unity 2019.4.12 / MRTK 2.4 and Vuforia:  8.5.9, 8.6.10, 9.3.3, 9.4.6,

2) Unity 2018.4.28 / MRTK 2.4 and Vuforia:  8.3.8.

My conclusions:

1) It all works with "Windows Mixed Reality" package (4.2.3/1.0.21) - with "Windows XR Plugin" it's not working (properly).

2) I used  profile for Hololens2 but XRSDK also works.

3) XR rig is needless.

Directly using Vuforia samples failed but I created new project and used a part of the samples - content of folders:

1) Editor\Vuforia,

2) SampleResources\AugmentationAssets,

3) StreamingAssets\Vuforia,

4) Additionally on Unity 2018: Vuforia\Materials,Vuforia\Scripts, Vuforia\Shaders.

The "Device Tracker" option in the Vuforia configuration should be turned off and of course the "Vuforia Behaviour" script must be added to the "Main Camera".

I tested only the "Image Target Behaviour" with type: "Predefined" and "From Image". 

Sometimes there was a problem with the model shift in relation to the recognized image, but in recent tests it has magically disappeared :)

It also works in the Unity editor, but models are transformed in relation to targets due to the use of the Main Camera matrix - the positions of the Webcam and the Main Camera do not coincide.

 

Hololens 2 / Unity 2019.4 / Vuforia 9.4

October 21, 2020 - 9:26am #3

I'm also having issues running the HoloLens Samples App 9.4.0.   Unity install is 2019.4.9f1/2019.4.12f1, Vuforia Engine 9.4.6.  

I am unable to view the pre-fabs under "VuforiaContent"  in the Model Targets scene on the device and in the Unity game mode.  I can view other pre-fabs that were not originally in the scene if I add them. 

 

Hololens 2 / Unity 2019.4 / Vuforia 9.4

October 14, 2020 - 10:10am #2

I've been successful with a combination of Unity 2019.2.21f1, Windows Mixed Reality SDK, Vuforia 9.2.8, MRTK 2.4, and the default mixed reality toolkit configuration profile. I tried later versions with the new XR settings but had problems, thus I chose the last version where the legacy SDK was available. Eventually, I'll be forced to move to later versions but what I have now works on my Hololens 2.

Log in or register to post comments