Topic locked

VuMark not detected Hololens2

December 23, 2021 - 6:13am #1

Hi everyone!

For my bachelorthesis I am working with the Hololens2 and Vuforias VuMarks with Unity. I am currently simply trying to detect a Vumark and if I detect it I want to show a Cube. The problem is the VuMark does not get detected (since I see no cube) and I really don't know where the problem could be and I am really frustated. Here is my approach:

1.) I am using the example Vumarks (Chateau / MortonTuxedos) SVG files. I uploaded them in the Database, added the correct ID (for Morton Tuxedos for example "1111") and afterwards I downloaded them as PNG and printed them in the correct width I entered by uploading. I tried both example VuMarks seperatly with no success.

2.) I set up an AR camera. I think the AR camera and my setup works, because I tried implementing an ImageTarget to see if my setup is correct, and the Imagetarget always gets detected without a problem and I always see the child element. I also already set the "Max simultaneous tracked objects/images" to 5 just in case this could be the problem -> it was not. 

3.) I created a VuMark instance, added the right Database and template. I created a simple 3D cube object and moved it as a child from VuMark. I already tried it just with that setting -> did not work. Nextly I added the cube to the Default Observe Event handler to the OnTargetFound() and if it is found I enable the .SetActive() flag. -> did also not work. I also tried to "create" my own Default Ovserve Event handler, since it is mentioned in the api, and copy pasted the default observe event handler in a new class and added a Gameobject, which I set Active in the OnTargetFound Method, but it also does not work.

I also tried implementing a lot of tutorials/the official Vuforia example but they all did not work since I am using 10.3. I also tried (since I am not quite sure if I need a "VuMarkHandler" Object) to copy that from the official Vuforia example to my project, but after compiling I get alot of errors since it does not find the VuMarkTarget (but as far as I know from my research this is only for the engine 9., correct me If I am wrong).

The attachment shows my setup, which has a simple cube which is always displayed (so i know my holograms etc. work) and the VuMark.

I am really looking forward for some help since I am stuck with this problem for over 2 weeks and I don't know where the problem could be.

Thanks!

 

 

AttachmentSize
Image icon forum_1.PNG228.78 KB

VuMark not detected Hololens2

January 31, 2022 - 2:58am #8

Hello,

yes I imported the MRTK version which i thought would be necessary but it isn't as it seems.

Now the Hololens sample is running and detects the VuMarks and based on the sample I am now able to create my own scene etc.

My orignial scene did not work since of multiple wrong assumptions i took and which I simply did not or wrongly implement. 

Thanks for the help,

Sonja

VuMark not detected Hololens2

January 21, 2022 - 6:12am #7

Hey,

 

I am glad that the sample works, it seems you added MRTK with the sample, which is not recommended since the versions might collide. This is also not mentioned in the steps on how to import the samples.

However I fail to see how the initial issue has been fixed (the steps you provided). Do the VuMarks now only work in the Hololens sample, or also your own new scene? 

 

Kind regards,

Patrick Scheper

Technical Community Manager

VuMark not detected Hololens2

January 20, 2022 - 1:55am #6

I managed to get a running Hololens VuMark Sample!

If anyone else is also struggeling with the Hololens Sample from the Asset store altough they followed the Step by Step guide (https://library.vuforia.com/platform-support/working-hololens-sample-unity) like me. I stumbeld accross this forum entry (https://answers.unity.com/questions/1867934/vuforia-hololens-error-with-mrtk.html?sort=oldest) which basically tell you to not follow the step by step guide and simply do not install the MRTK foundation. I did it and also got to the state with no compiler error and an working VuMark Sample on the Hololens.

Good look for everyone who has the same problem!

VuMark not detected Hololens2

January 18, 2022 - 8:01am #5

Hello Patrick and sorry for the late response,

I tried implementing this example (https://assetstore.unity.com/packages/templates/packs/vuforia-hololens-1-2-sample-for-unity-2020-3-lts-101553) and I followed the step by step guide (https://library.vuforia.com/platform-support/working-hololens-sample-unity) but I am getting alot of building errors which I don't know how to solve.

My Setup: Unity 2020.3.11f1, Vuforia Version (based on the Configuration tab) 10.3.2, MRTK 2.5.3 and the other version you can find in the screenshot "Configuration_Setup"

I am getting 3 different types of errors

1) Assets\Common\Scripts\TrackableSettings.cs(67,105): error CS0426: The type name 'StatusInfo' does not exist in the type 'TrackableBehaviour'

2) Assets\MRTK\Core\Utilities\EyeGazeSmoother.cs(15,36): error CS0535: 'EyeGazeSmoother' does not implement interface member 'IMixedRealityService.Name'

3) Shader error in 'TextMeshPro/Mobile/Distance Field SSD': undeclared identifier '_Sharpness' at Pro/Shaders/TMPro_Mobile.cginc(74) (on d3d11)

I also added screenshots of the whole console where you can see all errors.

I am looking forward for your help.

Regards,

Sonja

 

AttachmentSize
Image icon Configuration_Setup.PNG44.36 KB
Image icon error1.PNG63.7 KB
Image icon error2.PNG66.21 KB
Image icon error3.PNG62.4 KB
Image icon error4.PNG106.96 KB

VuMark not detected Hololens2

January 6, 2022 - 7:04am #4

Hey there,

 

Yes, that's very strange. You mentioned "I also tried implementing a lot of tutorials/the official Vuforia example but they all did not work since I am using 10.3.", which official examples were not up to date?

I am asking because the official Hololens sample should work and has a VuMark scene. I suggest trying that to make sure the functionality works: https://assetstore.unity.com/packages/templates/packs/vuforia-hololens-1-2-sample-for-unity-2020-3-lts-101553

 

Kind regards,

Patrick Scheper

Technical Community Manager

VuMark not detected Hololens2

January 6, 2022 - 5:44am #3

Hi,

thanks for the hint but the hololens 2, unity and my computer are all set to english. It is just super weird since an ImageTarget is recognized but not a VuMark. Do you have any other hints? Maybe is there a best practice for the size of the vumark or something else I am missing?

Thanks, 

Sonja 

VuMark not detected Hololens2

January 4, 2022 - 6:56am #2

Hey there,

 

Currently there's a known issue where VuMarks might not work on UWP devices, including the Hololens 2, when the locale / language is not set to English. Can it be that your device is in another language?

 

Kind regards,

Patrick Scheper

Technical Community Manager

Topic locked