Intel now has an official plugin, see this github repo: https://github.com/GameTechDev/UE4RealSensePlugin
An event-driven RealSense plugin for the Unreal Engine 4.
Main method of use is by subscribing to events within your blueprint, but it also supports polling through functions called on the RealSense Component. You can extend functionality to any blueprint through adding the RealSenseInterface to the blueprint interfaces and adding the RealSense Component to the components of that blueprint. This same architecture is available to C++ if you prefer, which also supports both event-driven and polling style use.
This is a very early release and neither optimized nor a complete feature set. Use with caution.
As per RSSDK, currently only supports Windows 8 x64.
##How to install it##
- Download prerequisites: RealSense Runtime - Direct Link
- Create new or open a project.
- Browse to your project root (typically found at Documents/Unreal Projects/{Your Project Root})
- Copy Plugins folder into your Project root.
- Copy Binaries folder into your Project root.
- Restart the Editor and open your project again.
- Select Window->Plugins. Click on Installed and you should see a category called Input and a plugin called RealSense now available. It should be automatically enabled, if not, Select Enabled. The Editor will warn you to restart, click restart.
- The plugin should be enabled and ready to use.
##How to Use - Blueprint Quick Setup##
- Open desired blueprint where you want to receive the real sense events e.g. character, pawn, playercontroller, or custom actor.
- Click on Blueprint Props and Scroll down in the details panel to Interfaces.
- Add the interface called RealSenseInterface
- Add Real Sense Component to your blueprint
Add directly through components tab
- You're ready to go.
###Blueprint - Example Joint Debug Hands###
Copy the following graph to get a basic debug hand to show up in your editor
You can easily modify the graph to output the hands to a more realistic location by changing the added origin from actor origin to a hand offset component attached to the actor.
###Blueprint - Example Gestures###
To receive gestures you need to enable gestures before using them, e.g. in your begin play.
Then simply subscribe to the event you are interested in. In the above example we output the body side appended to a verbose thumbs up print. This will show every time the gesture is detected.
Please note that there is currently a performance penalty when you enable gesture detection.
##Blueprint - Reference##
####Hand Properties####
Obtained via hand moved event. Polling currently not supported.
####Joint Properties####
Obtained via hand or event joint moved.
##Credits## Event-driven plugin by Getnamo available under MIT license.
Respective parts of this plugin fall under RSSDK licence and UE4 license.