This paper analyzes data integration technology about Kinect and Unity3D. Authors design scheme based on WPF and Unity 3D internal calling mode. System includes screen show module, Unity3D and Kinect interface module and data acquisition module. There are scene settings, rigging, mirroring sports, close-range model, smoothing processing and other functions in Unity3D; and codes implement the device control, rigging algorithm, equipment image acquisition in Kinect. Tested by C # on unmanaged dll's management, it is a good scheme to import Kinect hardware driver program and calling a custom data structures and algorithms to achieve the unity 3D scene. In the unity 3D scene, Kinect somatosensory camera control motion of models to improve the development efficiency of somatosensory game, which has certain social value in development and application of somatosensory game.%通过分析Kinect与Unity3D数据整合关键技术,从WPF与Unity 3D内部调用方式展开系统设计。设计分为Unity3D场景展示模块、Unity3D的接口模块和Kinect的数据获取三模块。其中Unity3D接口模块实现了的场景设置,骨骼绑定、镜像运动、近景模式、平滑处理功能;Kinect数据获取模块通过代码实现设备控制、骨骼绑定算法、设备图像获取。测试证明,通过C#对非托管的dll的管理方式,导入Kinect硬件的驱动程序,调用自定义的数据结构和算法,实现在unity 3D场景中,使用Kinect体感镜头控制场景中的人物模型运动,提高了体感游戏的开发效率,在体感游戏的开发和应用中有一定的社会推广价值。
展开▼