Giter Site home page Giter Site logo

kinectxbox360-ue4's Introduction

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


kinectxbox360-ue4's People

Contributors

aledel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kinectxbox360-ue4's Issues

public declaration of license

Hey,

Thank you for sharing the code. Would you be so kind to add a public declaration of licence?

Greetings from Germany,

Felix

Hey buddy,I am a novice, and I want to ask for your help.

When I was using your project, there were several problems:
1 .When I was using Kinect_Skel, there was a problem of skeleton loss. And, PhysicsAsset does not exist.
2. Maybe it's because I just started learning UE4. When I used your plugin, there was a mistake in the Blueprint, but I couldn't find a solution.
Can you upload your project?
I hope to get your help. Thank you

how can I use skeltal?

Do I have to make the project an empty project or 3 person?
plz Tell me how to test the skeleton file in detail.

Problem including the plugin to existing project

Dear Sir,
Thank you for the plugin and i would like to ask for help in using this plugin.
I am using ue4.23, i am creating a new cpp empty project, and then i create the Plugins folder and copy your plugin ( the while folder as suggested) to Plugins folder.
When i lunch the project, i get this error: "XboxKinectPlugin could not be compiled.Try rebuilding from source manually".
(XboxKinectPlugin, is the name of the project i created).
I would like to ask if this plugin is only compatible with specific ue4 version?If yes, what are those versions?
If no, how can i solve my problem?Knowing that when i build the source code in VS, i am getting plenty of error in the code.
I hope you answer the question as soon as possible because i really need to try this plugin.
And thank you.
Edit:
I am using kinect v1.

How to get skeleton's bones position

Hey buddy

Thank you so much for this plugin, really cool !
I struggled a bit to make it work with UE 4.18, but finally it worked.
I can stream the RGB, Depth and Skeleton (Output Log).
Now, I'm trying to control an object with the movement of a tracked hand, but I'm getting lost :(
When connecting the Update Skeleton node, I get stuck with this message:
"LogScriptCore: Warning: Script Msg: Attempted to access index 0 from array 'FSkeletons' of length 0 in '/Script/KinectPlugin.KinectSensor'"

Any help please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.