Hololens开发之HoloToolkit+空间感知组件

1. HoloToolkit放入空工程会有
 
2.因为HoloLens对相机有要求,所以需要调整相机为
(1)设置Transform
(2)把Clear Flags 从Skybox改成Solid Color
(3)把Background的颜色改成RGBA(0,0,0,0)
(4)把Near Clipping Planes改成0.85


 
这些参数是微软官方推荐的最佳参数,可以通过
 
直接设置为微软推荐的参数设置,在发布时的Player Settings也可以通过上面的Apply HoloLens Project Settings 来一键设定.当发布时需要设定

 
并且当发布工程时推荐使用HoloTookit里面的Build Windows来发布.因为Unity5.5已经支持HoloLens了赶紧下载试试吧.

下面是HoloToolkit提供的几个演示场景和prefab,
(1)BasicCursor.prefab Torus shaped basic cursor that follows the user's gaze around.
BasicCursor.unity Shows the basic cursor following the user's gaze and hugging the test sphere in the scene.

(2)Cursor.prefab Torus shaped CursorOnHolograms when user is gazing at holograms and point light CursorOffHolograms when user is gazing away from holograms.
Cursor.unity Shows the cursor on holograms hugging the test sphere in the scene and cursor off holograms when not gazing at the sphere.

(3)CursorWithFeedback.prefab Torus shaped cursor that follows the user's gaze and HandDetectedFeedback asset to give feedback to user when their hand is detected in the ready state.
CursorWithFeedback.unity Shows the cursor hugging the test sphere in the scene and displays hand detected asset when hand is detected in ready state.

(4)FocusedObjectKeywordManager.prefab Keyword manager pre-wired to send messages to object being currently focused via FocusedObjectMessageSender component.
You can simply drop this into your scene and be able to send arbitrary messages to currently focused object.
FocusedObjectKeywords.unity Example on how to send keyword messages to currently focused dynamically instantiated object.
Gazing on an object and saying "Make Smaller" and "Make Bigger" will adjust object size.

(5)SelectedObjectKeywordManager.prefab Keyword manager pre-wired to send messages to object being currently selected via SelectedObjectMessageSender comoponent.
You can simply drop this into your scene and be able to send arbitrary messages to currently selected object.
SelectedObjectKeywords.unity Example on how to send keyword messages to currently selected dynamically instantiated object.
Gazing on an object and saying "Select Object" will persistently select that object for interaction with voice commands,
after which the user can also adjust object size with "Make Smaller" and "Make Bigger" voice commands and finally clear
currently selected object by saying "Clear Selection".


想更多关于HoloLens的信息,可以登录微软官方开发社区https://github.com/microsoft/HoloToolkit-Unity

对那些惊讶于《Fragments》和《Young Conker》的空间映射(spatial mapping)和用户体验的开发者而言,HoloToolkit中的空间映射组件平淡无奇。很明显,要制作一个惊艳的演示文稿至少需要一定的着色器知识。


在最近发布的视频中,微软宣布HoloToolkit中的空间感知组件(Spatial Understanding)已经开源,而该组件是直接基于Asobo工作室的作品。新的组件不仅看上去更好,而且还为各种各样的查询(Query)增加了成吨的好处。这些查询(Query)的主要目标是允许开发者动态地搜索可用空间。


例如,如果设计者希望在天花板上悬挂一个控制面板,查询可以帮助开发者找出天花板中适合放置控制面板大小和形状的区域。这为HoloLens增加了许多功能,而开发团队也无需再自行创建。


这个视频很好地讲解了新组件的各项功能:
  • 拓扑查询(Topology Query):寻找大型空间的快速查询,如地板或墙壁。
  • 形状查询(Shape Query):借助拓扑查询的结果,形状查询可帮助寻找符合你需求的水平表面。
  • 对象放置查询(Object Placement Query):针对更详细的需求。

HoloToolkit中这样的工具将会帮助团队加速开发出优秀的HoloLens软件。更多详细的信息请查看微软官网。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值