简体   繁体   English

unity3D + kinect交互

[英]unity3D + kinect interection

guys i am working on a project which uses unity engien and kinect as input source ..now according to my knowledge there is not much support between unity and kinect sdk ..i have heard about zigfu framework but it is not giving me all functionalities i need..so what are options for me? 伙计们,我正在从事一个使用uniten engien和kinect作为输入源的项目。.据我所知,现在unity和kinect sdk之间并没有太多支持。我听说过zigfu框架,但并没有给我所有功能需要..那么我有什么选择? im thinking to take some functionalities from zigfu and some from a background application build in .net 4.0 and using kinect official sdk ? 我是否想从zigfu中获取某些功能,并从.net 4.0中构建的后台应用程序中获取某些功能,并使用kinect Official sdk? can i connect to kinect via two interfaces at the same time? 我可以同时通过两个接口连接到kinect吗? ie zigfu and kinect sdk ....my background app will connect to unity via pipes ..is that agood option? 即zigfu和kinect sdk...。我的后台应用程序将通过管道连接到统一。这是一个好选择吗?

I've already done something similar. 我已经做了类似的事情。 I'd like to use Unity 3D engine and do some interactions to animate the model using Kinect (Kinect SDK). 我想使用Unity 3D引擎并使用Kinect(Kinect SDK)进行一些交互以使模型动画化。 Some functionality in Kinect SDK are not available in Zigfu, such as Hand Gripping detection. Zigfu中不提供Kinect SDK中的某些功能,例如“抓手”检测。

Because Kinect SDK is suitable for WPF application, here is my solution : 因为Kinect SDK适合WPF应用程序,所以这是我的解决方案:

  1. Build your Unity into Unity Standalone (PC, Mac, Linux). 将您的Unity构建到Unity Standalone(PC,Mac,Linux)中。
  2. Create WPF application with Kinect stuff inside. 使用内部的Kinect创建WPF应用程序。
  3. Add WindowsFormsHost inside your XAML of WPF application. 在WPF应用程序的XAML内添加WindowsFormsHost。
  4. Embed your Unity Standalone into WPF using WindowsFormsHost. 使用WindowsFormsHost将Unity Standalone嵌入到WPF中。
  5. To do a communication between WPF and Unity, you can use Raknet. 要在WPF和Unity之间进行通信,可以使用Raknet。 It will work as socket does. 它将像套接字一样工作。

in my experience, its usually not a good idea to use "two of" something, when they both do the same thing. 以我的经验,当两者都做相同的事情时,通常不建议使用“两个”。 I've never heard of zigfu before, but it seems relatively easy to learn. 我以前从未听说过zigfu,但是它似乎相对容易学习。 Since its available as a unity plug in, it may be best to use that over kinect. 由于它可以作为整体插件使用,因此最好在Kinect上使用。 The reason being that Unity isn't to "friendly" with third party applications. 原因是Unity不对第三方应用程序“友好”。

If your aiming for XNA, its possible to convert easily if the plug-in doesn't already do it for you. 如果您的目标是XNA,那么如果该插件尚未为您实现,则可以轻松转换。

I Highly recommend looking over the unity forums, and the ZDK documentation. 我强烈建议您浏览一下统一论坛和ZDK文档。 http://forum.unity3d.com/threads/127924-Zigfu-dev-kit-for-Unity3D-Product-Launch http://forum.unity3d.com/threads/127924-Zigfu-dev-kit-for-Unity3D-Product-Launch

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM