What's the current status of using Vuforia with the MR Toolkit?
I got confused by all the different version acknowledgements and recommendations (Unity 2017.2, 2017.1.2, MRTP4...). I just want to know which Unity version is capable of running MR Toolkit for Hololens along with Vuforia?
Vuforia works with Unity even before 2017.2. The only difference I understand there is is that starting with Unity version 2017.2, it's included in the Unity installer. Before you had to add it yourself.
Adding to that, I would recommend you using Unity 2017.2 with MRTK.
I'd only recommend using 2017.2 with the latest master or dev branch, but not with the release
My proplem is, why I'm asking, using all that together results in the ARCamera rendering on top of the MixedRealityCamera. The former WorldPositionAnchor field is gone so you can't reference the MR Cam with the AR Cam. Trying to merge both cameras behaviours doesn't work, because the Vuforia Behaviour freezes the camera in place. How do you set this up, did I miss setup guide?
@Alexees Did you read through the new Vuforia page? https://library.vuforia.com/articles/Training/getting-started-with-vuforia-in-unity-2017-2-beta.html
@shllybkwrm I did, but it's Vuforia only. I'm talking about Vuforia used with the Mixed Reality Toolkit and there's no reference to it on the page
@Alexees There's a section on digital eyewear and on the Hololens page linked, there's a new sample project and configuration instructions. You're right that they don't specifically mention the toolkit but they do have instructions for HoloLens and other headsets.
@shllybkwrm that's right, but I wouldn't have asked here if it wasn't specifically for the toolkit.
Is there any updates on compatibility with Vuforia and MRTK? I'm building with Unity 2017.3.1p1 and the Hololens samples here https://developer.vuforia.com/downloads/beta. However, it's the same issue as Alexees mentioned above on December 1: "using all that together results in the ARCamera rendering on top of the MixedRealityCamera. The former WorldPositionAnchor field is gone so you can't reference the MR Cam with the AR Cam. Trying to merge both cameras behaviours doesn't work, because the Vuforia Behaviour freezes the camera in place." Is there any specific setup or workaround for this?
Hello guys, same here... I can't put together holotoolkit and AR camera. I also tried a manual initialization adding vuforia behaviour and defaulterrorinitializationhandler scripts to the mixedrealitycamera of the toolkit but in play mode it freezes . The only solution i can think of in my specific case is to have a vuforia scene with the ar camera (with the only drawback that i can't use toolkit input) and after a manual deinitialization switch to the holotoolkit scene . This is just an idea , can't make it work for now ahah
I'm getting it to work on 2017.3.0p1 with a HoloLens, the AR camera replaces the HoloLens camera prefab, just make sure to change its tag to "MainCamera" and make sure you still have the InputManager prefab in the scene. Not sure about MR as I don't have access to one of those headsets.
Are you getting any cursor visible or input on objects? I'm certainly not getting any toolkit input when deployed to Hololens. No cursor or anything as the ARCamera seems to override anything from the toolkit. In the editor, cursor and input on a model semi works with AR camera/webcam in background, albeit flipped.
Yes, I'm able to use my app exactly as before, except now I've got Vuforia for image targets too.
My steps for getting it to work:
- Enable Vuforia and import the MRTK, apply scene setting etc.
- Right click on the hierarchy > Vuforia > ARCamera.
- Delete the HoloLens camera/MixedReality camera from the scene, remember to copy over the GazeControls child, if you want camera control in the editor be sure to copy over the Manual Gaze Control script as well.
- Very important: Tag the AR camera as MainCamera, this means the cursor should pick it up.
- Window > Vuforia Configuration > Digital Eyewear, select Digital Eyewear from Device Type, and HoloLens from Device Config.
- Edit > Project Settings > Player > Vuforia Augmented Reality support, make sure this is ticked.
- Build with 10.0.16299 as the SDK.
If these don't work, sorry I've got no idea, I've managed to make 4 or 5 applications using Vuforia since 2013.3.0p1, and I can also get it to work on 2013.3.1p1. I haven't tried using the example apps, there's a chance they may be broken. I'm willing to keep helping though, let me know how it goes.
Thanks for the steps Sam. Will run some samples and get back. Cheers
EDIT: Yes those steps did the trick building a fresh project. So the Vuforia project examples have some kind of issue if building them as is. Thanks again.
Sam, I'm trying to follow your steps but getting a bit lost. Are you able to show a screen cap of your final hierarchy?
@SimonB2011


That's fantastic and working for me now. Thanks !
Thank you, Sam! That worked for me, as well. :-)
@StephenHodgson I suggest the setup guide from SimonB2011 to be put onto the main page of the MRTK
I'd actually like to make adjustments to the MixedRealityCamera prefab to make sure it's setup for people already, in addition to the setup steps.
@SimonB2011 any chance you could do that and open a PR with your suggested setup steps and a updated MixedRealityCamerad prefab?