I originally tried to create an app for the HoloLens in which it would detect an ImageTarget and I could interact with a menu to choose from a series of images to overlay on top. I added a UI "status text" which would tell the user whether the ImageTarget was found or not. When I deployed it to the HoloLens and tested it, everything worked except for the holograms I wanted to overlay, and the status text would correctly indicate whether the ImageTarget was being tracked. I then simplified my app to the same ImageTarget but with a single sphere overlaid on top of it. The same problem persisted; I could not get the sphere to show up. I then tried the simplified app just with the Unity Editor and a webcam, and it worked completely fine. Is this a problem with HoloLens compatibility or with some error in my build or scene settings that I am unaware of?
Scene Setup:
>HoloLensCamera (Default settings from HoloToolKit)
>ARCamera (Default settings from Vuforia)
>ImageTarget (Width of 0.12, Height of 0.1137, everything else default from Vuforia)
>Sphere (Scale of 0.5 for all, Position of 0.3)
Player Settings (Windows):
Other Settings:
- Scripting Runtime Version: .NET 3.5 Equivalent
- Scripting Backend: IL2CPP
Publishing Settings:
- Internet Client, Microphone, Webcam, and SpatialPerception checked off
XR Settings:
- Virtual Reality Supported (Windows Mixed Reality)
- Vuforia Augmented Reality Supported
Vuforia Configuration:
- CAMERA_DEFAULT
- Digital Eyewear - HoloLens
- Track Device Pose - Optimize for ImageTargets and VuMarks
Any help would be appreciated. I have been trying to fix this problem for a while now and have found no solutions online.
Hello,
Please, check the setting according to the article :Working with the HoloLens Sample in Unity There you can find the info how to use the example or how to setup a new scene.
But I think the best /easiest approach will be to create a new project, to load the HoloLens Assets and to open the scene Assets\SampleResources\Scenes\2-ImageTargets
Please, test first if the project could be started on your device and if it works with the provided demo ImageTargers Assets\Editor\Vuforia\ForPrint\ImageTargets
As next step you import your ImageTargets database and adapt the Image Targets and the augmentations / child of the ImageTarget elements. For additional image targets you could duplicate some of the existing ImageTargets
BR
Vuforia Engine Support