Vuforia跟踪与Hololens Holographic Remoting兼容及实现方法咨询
Hololens 2 + Vuforia + Holographic Remoting 协同实现方案
一、核心问题答复
可以同时使用Vuforia图像跟踪与Holographic Remoting,两者的冲突点主要集中在摄像头路由和权限配置上,只要设置正确就能实现PC端计算渲染、Hololens端显示的目标。
二、完整配置与问题解决步骤
1. 基础环境适配
- 固定使用Unity 2022.3 LTS版本(你当前测试的版本已验证兼容,2021.3存在Vuforia与Remoting的兼容性bug)
- 导入对应版本的Vuforia Engine和Hololens 2 SDK,确保两者版本匹配(Vuforia需明确标注支持UWP/Hololens平台)
- 开启Holographic Remoting基础配置:
- 进入
Edit > Project Settings > Player > Windows, Mac, Linux Standalone > Other Settings - 勾选
Enable Holographic Remoting,将Remoting Connection Type设为Manual
- 进入
2. Vuforia摄像头关键配置(解决初始连接失败问题)
- 强制Vuforia调用Hololens摄像头:
打开Window > Vuforia Configuration,在Camera模块下将Active Camera设为Hololens Camera,勾选Use Vuforia Camera并禁用Webcam Auto-Init - 配置UWP权限:
进入Player Settings > Publishing Settings > Capabilities,勾选Webcam、Microphone、Internet (Client)、Private Networks (Client & Server)四个权限(Remoting需网络权限,Vuforia需摄像头权限)
3. 解决远程连接后的显示异常(针对11.30编辑的问题)
问题:仅右眼可见全息图
- 检查XR渲染设置:
进入Edit > Project Settings > XR Plug-in Management,启用Windows Mixed Reality插件,将其Remoting模式下的Stereo Rendering Mode设为Single Pass Instanced,确保Eye Tracking未被错误禁用 - 重启Hololens端Remoting Player:
关闭Hololens上的Holographic Remoting Player,重新打开并建立连接,确认连接时选择Stereo模式
问题:视野中显示笔记本摄像头画面
- 禁用编辑器本地摄像头预览:
找到场景中的AR Camera对象,移除挂载的Webcam Texture预览组件;在Vuforia Configuration中,将Show Camera Feed设为Only in Editor(仅编辑器内显示本地摄像头画面,远程连接时自动切换为Hololens摄像头流) - 再次确认Vuforia摄像头路由:
启动远程连接后,在Unity控制台查看Vuforia日志,确认输出Using Hololens Camera字样,避免本地Webcam抢占设备
4. 测试流程
- 在Hololens 2上打开Holographic Remoting Player,记录设备IP
- 在Unity编辑器中打开
Window > XR > Holographic Remoting,输入IP点击Connect - 启动Unity播放模式,此时Vuforia会通过Hololens摄像头进行图像跟踪,PC完成渲染计算后将全息内容同步到Hololens显示
内容的提问来源于stack exchange,提问作者Alex
相关产品推荐
相关产品推荐

