GithubHelp home page GithubHelp logo

nama-gatsuo / nuitrackforue Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 2.0 38 KB

Unreal Engine Plugin to wrap Nuitrack SDK ( skeleton tracking solution by 3DiVi )

C# 2.55% C++ 92.97% C 4.48%
unreal-engine-4 nuitrack body-tracking unreal-engine-plugin

nuitrackforue's Introduction

Nuitrack for Unreal Engine

Unreal Engine plugin to bridge Nuitrack. Nuitrack is a middleware to provide 3d skeleton tracking solution using a depth sensor. It has many PROs: AI-based, relatively fast and stable, coverage of depth sensor brands. Nuitrack has an official plugin for Unreal Engine which still only provides native C++ interface. This plugin aims to encapsulate Nuitrack's C++ functions and align with Unreal Engine manner.

Sample project link

Prerequisites

  • Nuitrack is installed.
    • Free Trial version will work but timeout within 3 minutes.
  • Replace the TBB library in your Unreal Editor with the library from Nuitrack
  • Locate "NuitrackModule" directory from original SDK repo into this plugin's /Source/ directory.
  • Unreal Engine 4.27~
    • Only tested with 4.27. May work with lower.

Features

Almost all implementations are provided via NuitrackIO UObject.

Data acquisition

  • Color / Depth / User buffer can be written into RenderTarget2D.
    • Depthe data are stored RenderTarget2D into standard 8bit RGBA texture.
      R: first 8bit as uint8 of original uint16 sample
      G: last 8bit as uint8 of original uint16 sample
      B: 0x00 or 0xFF (if depth sample is invalid)
      A: 0xFF (Constant value)
  • Skeleton tracking, Hand tracking, Gesture recognizer are accessible through Blueprint.

In-Editor activation

  • NuitrackIO and NuitrackVisualizer Actor will work in editor time

Avatar

  • Skeletal mesh will work via Anim blueprint
  • See ABP_NuitrackToHumanoid which is compatible with Manequine in ThirdPerson sample.

License

MIT License

Copyright 2021 Ayumu Nagamtsu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

nuitrackforue's People

Contributors

nama-gatsuo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

cgabdel kanyu

nuitrackforue's Issues

Why Can't get skeleton?

image
I'm testing this project.
I set Nuitrack IO and device.
then camera can get my image.
But It can't get skeleton.
Can you help me?

Gesture Delegates are not thread-safe

If any of OnUserGestureInit, OnUserGestureUpdate, or OnUserGestureComplete are used in game thread for controlling game logic, then editor may crash.
Should be thread-safe.

Avatar screwing and non-rotation of the waist joint

Dear developer,

I try to use your UE4 plugin with Microsoft Azure Kinect and the Nuitrack AI license. However, there are several tracking problems, For example, the waist joint does not rotate, and consequently, the legs are screwed and the pose is unnatural. I attach two images to show the problem:

I activate the Nuitrack AI license in the Nuitrack IO under BP_Nuitrack. I don't understand if your plugin is configured only for the Nuitrack free license and consequently the tracking is less accurate.

It would also be useful to understand how to position the camera, at what height and distance from the user, and what is the optimal environmental lighting to increase the tracking accuracy.

Hope you can help me. Thank you in advance!

Cannot initialize Nuitrack ()

I receive this error, and I cannot start the simulation:

LogSpawn: Warning: SpawnActor failed because no class was specified
NuitrackIOLog: Error: Can not initialize Nuitrack ()

Where am I wrong?

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.