本文介绍了在Unity 2019.1中使用Vuforia设置Hololens MRTK 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在为使用Vuforia的Hololens 1开发一个Unity应用程序.不幸的是,我无法将相机与Vuforia配合使用,它仍然冻结在原位,并且不会跟随头部移动.当我禁用Vuforia时,相机可以正常拍摄.

I'm developing a Unity app for the Hololens 1 that uses Vuforia. Unfortunately, I cannot get the camera to work with Vuforia, it remains frozen in place and does not follow head movement. When I disable Vuforia, the camera tracks fine.

我的设置如下:* Windows 10* Unity 2019.1.4f1* MRTK v2.0.0 RC2* Vuforia 8.1.11

My setup is as follows:* Windows 10* Unity 2019.1.4f1* MRTK v2.0.0 RC2* Vuforia 8.1.11

我尝试按照此处概述的步骤操作: https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1461#issuecomment-373714387

I tried following the steps outlined here:https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1461#issuecomment-373714387

无济于事.我还尝试过同时激活两个摄像机,结果相同.可以在Unity资产商店中找到的Vuforia Hololens示例已严重过时(使用旧的Holotoolkit,而不是MRTK),因此对我不是很有用.我注意到,较旧版本的Vuforia允许将相机上的脚本设置为世界中心":相机",但是,当为hololens配置Vuforia时,此选项现在被强制设置为设备".

To no avail. I also tried having both cameras active, same result. The Vuforia Hololens sample that can be found in the Unity asset store is severely outdated (using the old Holotoolkit, not MRTK), so it is not very useful to me. I noticed that older versions of Vuforia allow the script on the camera to be set to "world center": "camera", but this option is now forced to "device" when Vuforia is configured for the hololens.

谁能告诉我如何为MRTK 2和Vuforia正确配置我的场景?我永远感谢与最新示例项目的链接.

Can anyone tell me how to properly configure my scene for MRTK 2 and Vuforia? I'd be eternally grateful for a link to an up to date example project.

仅当使用Unity的全息遥控器时,这才似乎是一个问题.不过,我仍然非常想解决这个问题,因为部署非常耗时,而且几乎使调试变得不可能.

This seems to be an issue only when using Unity's holographic remote. I would still very much like to resolve that though, since deploying is very time-consuming and makes debugging almost impossible.

推荐答案

这对我有用:导入MRTK包并将其添加到场景中.这将在MixedRealityPlayspace游戏对象下创建MainCamera.然后是GameObject> VuforiaEngine> ARCamera.这将创建一个包含两个组件的ARCamera:Vuforia行为和默认初始化错误处理程序.复制这两个组件,并将它们添加到添加MRTK时创建的MainCamera中.最后删除ARCamera.我使用Windows 10,Unity 2018.4,MRTKv2.0和Vuforia 8.祝你好运.

This worked for me:Import MRTK package and add it to the scene. This will create a MainCamera under MixedRealityPlayspace Game Object.Then GameObject > VuforiaEngine > ARCamera. This will create an ARCamera with two components: Vuforia Behavior and Default Initialization Error Handler. Copy these two components and add them to the MainCamera created when you added MRTK.Finally delete ARCamera.I use Windows 10, Unity 2018.4, MRTKv2.0 and Vuforia 8.Good luck.

这篇关于在Unity 2019.1中使用Vuforia设置Hololens MRTK 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 16:44