
HoloLens模拟器允許你在沒有實體HoloLens的情況下測試PC上的全息應用程式,并附帶HoloLens開發工具集,模拟器使用Hyper-V的虛拟機。
1.硬體配置
- 64位 Windows 10 專業版, 企業版, or 教育版 (注: 家庭版不支援 Hyper-V 或者 HoloLens emulator)
- 64位 CPU
- 4核CPU (或者大于4核的多核CPU)
- 8GB 記憶體 或者更多
- 在BIOS中,必須支援并啟用以下功能:
- Hardware-assisted virtualization
- Second Level Address Translation (SLAT)
- Hardware-based Data Execution Prevention (DEP)
- GPU
- DirectX 11.0 或更高版本
- WDDM 1.2 驅動程式或更高版本
2.相關設定
2.1 開啟虛拟化
功能 | AMD 設定 | Intel 設定 |
SLAT (Second Level Address Translation) | NP (Nested Page Tables) RVI (Rapid Virtualization Indexing) | EPT (Extended Page Tables) |
SVM (AMD support for hardware-assisted virtualization) | VMX (Intel support for hardware-assisted virtualization) | |
Data Execution Prevention (DEP) | NX (No Execute) | XD (Execute Disable) |
詳細操作請看:https://docs.microsoft.com/en-us/previous-versions/windows/desktop/apps/jj863509(v=vs.105)
2.2 開啟Hyper-V
打開 控制台 -> 程式 -> 程式和功能 -> 打開和關閉系統功能 ,勾選 Hyper-V
3.軟體安裝
3.1 安裝Visual Studio 2017
Visual Studio 2017 下載下傳位址:https://www.visualstudio.com/zh-hans/downloads/
3.2 安裝HoloLens emulator
HoloLens模拟器 是在沒有實體HoloLens的情況下測試PC上的全息應用程式,并附帶HoloLens開發工具集。
HoloLens上的傳感器通常會讀取人類和環境輸入,而不是使用鍵盤,滑鼠或Xbox控制器進行模拟。
HoloLens emulator 下載下傳位址:https://docs.microsoft.com/zh-cn/windows/mixed-reality/hololens-emulator-archive
預設下一步安裝即可,如果沒有啟用Hyper-V安裝會報錯,電腦不支援 emulator 也會報錯。
3.3 安裝Unity
Unity 下載下傳位址:https://unity3d.com/cn/get-unity/download