Skip to content

AleDel/KinectXbox360-UE4

Repository files navigation

KinectXbox360-UE4

kinect Xbox 360 sdk 1.8 Plugin for Unreal Engine 4

Installation

  • clone the code into the "Pluings" folder of your c++ ureal engine project (ex. myProject\Plugins\KinectXbox360-UE4)
  • run, compile project as usual

info drivers kinect xbox

In microsoft windows should detect the device and install the drivers by itself.

Example Usage

Get Sensor and Initialize


Capture1

  • Kinect node is a functionLibrary, this return the Class UKinectManager.
  • Get Sensor is a method of that class and returns an array of connected Kinect (UKinectSensor class), in this example I take the first sensor found.
  • Now we can initialize the sensor:
    • We need to pass a base material to apply later the rgb and deep textures.

    • The BaseMaterial need a Textureparameter named KinectTexture. (used to apply the buffer when creating the instance dynamic material.)

      Capture4

Get and Update Color and Depth Stream


Capture2

  • We use the method UpdateColor and UpdateDepth. (look at the picture above, also each material has been applied to Cube and Cube1.)

Update Skeleton Stream and get Joints Positions and Bone Rotations


Capture3

  • The function UpdateSkeleton set a structure array variable (skeletons detected).
    • Each structure contains:
      • JointPosition (array Vector)
      • Rotation Bones (array Rotation)
      • PlayerID (Skeleton ID)

Example bones

Kinect_Skel.zip


bones


About

kinect Xbox 360 sdk 1.8 Plugin for Unreal Engine 4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published