Wednesday, March 28, 2012

UDK-Kinect Using OpenNI for UDK

When we use Kinect,there are two choose,one is openNI another is Microsoft Kenect for Window

 

In Unity3D, I have been use Microsoft Kenect for Window for my work,if your are instresting in

Unity3D ,you should try  Microsoft Kinect - Microsoft SDK.

Now,back to the UDK,

 

1.Using Microsoft Kenect for Window: See this or his website .

 

2.Using OpenNI For Kinect: See this .

 

Then try it!!!!!!!!(Because it writting in English if you are english user then go to see it).

 

安裝步驟:

下載 NIUI API - Beta v1.0 (這時他是最新的)

 

如果有裝過 Microsoft Kenect for Window 請移除乾淨,可在下載Microsoft Kenect for Window

的安裝檔,選擇移除後重開機即可。

 

解壓縮

執行Installers->KinectInstall->KinectInstall.exe

等它裝好

 

到D:\UDK\UDK-2011-12\Binaries\Win32 將NIUI API - Beta v1.0->Required dlls->

To be copied into Win32 裡面的檔案Copy至D:\UDK\UDK-2011-12\Binaries\Win32

 

再將NIUI API - Beta v1.0->Required dlls 裡的”NIUI.dll” 複製到

D:\UDK\UDK-2011-12\Binaries\Win32\UserCode

NIUI API - Beta v1.0\Content裡的”NIUIConfig.xml”複製到

D:\UDK\UDK-2011-12\Binaries\Win32\UserCode

 

將NIUI API - Beta v1.0\Content\Sample Project的NIUI Folder放入

D:\UDK\UDK-2011-12\Development\Src

把Package加入至UDK引擎

D:\UDK\UDK-2011-12\UDKGame\Config\DefaultEngineUDK.ini 裡

找到

;ModEditPackages=MyMod

改成

ModEditPackages=NIUI

 

將NIUI API - Beta v1.0\Content\Unreal Packages裡的NIUI Demo Content 移至

D:\UDK\UDK-2011-12\UDKGame\Content

 

將Map加入至UDK Map

NIUI API - Beta v1.0\Content\Unreal Maps 裡的NIUITestBed.udk 移至

D:\UDK\UDK-2011-12\UDKGame\Content\Maps

 

開啟Unreal Frontend 將Script 重新Complier

 

當然還要設定遊戲的GameType,不過在這裡先用比較快速的設定方法

為UDK.exe 增加捷徑目標為:

D:\UDK\UDK-2011-12\Binaries\Win32\UDK.exe NIUITestBed?game=NIUI.NIUI_Main –log

Result:

image

No comments:

Post a Comment