当前位置:网站首页>HoloLens 2开发:使用MRTK并在Unity中模拟手势输入
HoloLens 2开发:使用MRTK并在Unity中模拟手势输入
2022-07-24 05:22:00 【一只小EZ】
使用MRTK
MRTK介绍见:https://github.com/microsoft/MixedRealityToolkit-Unity
打开https://github.com/microsoft/MixedRealityToolkit-Unity/releases
下载Foundation 以及 Examples 两个unity包
注:关于环境配置和Unity版本请见:
https://docs.microsoft.com/zh-cn/windows/mixed-reality/install-the-tools
打开Unity 新建工作空间 导入好两个下载的包
在资源管理器中打开MixedRealityToolkit.Examples\Demos\HandTracking\Scenes
的 HandInteraction场景
打开后如图所示:如果3D图标过大需要进行Gizmos上3D Icons的调节
点击Play按钮启动场景,即可在编辑器模式下进行HoloLens2操作模拟。下面是操作说明:
1.使用WSAD可以进行前后左右移动
2.摁住鼠标右键可以移动视角
3.摁住空格键可以显示右手 摁住左shift键可以显示左手。摁住的同时移动鼠标可以进行手的移动。
4.使用鼠标滚轮可以进行手部的前后移动
5.使用Q/E R/F Z/X 键可以对手部进行旋转
6.使用鼠标左键可以改变手部的操作状态(摁住/放开)
7.使用T/Y键可以永久显示左/右手 再次摁键可以取消
使用滚轮移动手来关闭帧率指示器:
8.摁住手的同时点击鼠标左键可以改变手的状态,可以进行抓取缩放等操作.
演示如下:

参考:https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/InputSimulation/InputSimulationService.html
边栏推荐
- Paper reading endmember guided unmixing network (EGU net)
- The kernel apps to have died. it will restart automatically
- 字符串方法以及实例
- 如何解决训练集和测试集的分布差距过大问题
- Qt新手入门级 计算器加、减、乘、除、应用
- AD1256
- 树莓派大用处,利用校园网搭建一个校园局域网站
- Yolov5 learning summary (continuously updated)
- Vscode multiline comments always expand automatically
- es6常用特性
猜你喜欢

【数据库系统原理】第五章 代数和逻辑查询语言:包、扩展操作符、关系逻辑、关系代数与Datalog

Raspberry pie is of great use. Use the campus network to build a campus local website
![[activiti] process variables](/img/5e/34077833f6eb997e64f186d4773e89.png)
[activiti] process variables

使用Qt连接MySql并创建表号、写入数据、删除数据
![[deep learning] teach you to write](/img/c6/333b16758d79ebd77185be6e3cb38f.png)
[deep learning] teach you to write "handwritten digit recognition neural network" hand in hand, without using any framework, pure numpy

JVM系统学习

Statistical learning methods (2nd Edition) Li Hang Chapter 22 summary of unsupervised learning methods mind mapping notes

AD1256

Learning rate optimization strategy

Statistical analysis of catering data --- Teddy cloud course homework
随机推荐
【深度学习】手把手教你写“手写数字识别神经网络“,不使用任何框架,纯Numpy
餐饮数据统计分析---泰迪云课程大作业
Hit the wall record (continuously updated)
[MYCAT] MYCAT sub database and sub table
Thymeleaf快速入门学习
Accessing a two-dimensional array with a pointer
IoTP2PGate 两台物联网设备点对点通信快速实现方案
【树莓派4B】七、远程登录树莓派的方法总结XShell,PuTTY,vncServer,Xrdp
[activiti] process variables
Introduction to QT new project
Deepsort summary
信号与系统:希尔伯特变换
js星星打分效果
Better CV link collection (dynamic update)
STM32标准外设库(标准库)官网下载方法,附带2021最新标准固件库下载链接
Accessing a one-dimensional array with a pointer
CRC-16 MODBUS code
systemctl + journalctl
[deep learning] handwritten neural network model preservation
day1-jvm+leetcode