Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 3.62 KB

README.md

File metadata and controls

44 lines (24 loc) · 3.62 KB

About

Mixed Reality

This is a mostly working mixed reality setup, utilizing the Kinect. It does not require a green screen or post processing of video feeds. It works by rendering the output from the Kinect as point cloud (created from the depth and color cameras). The point cloud also has normals generated for it so we can accomplish some in game lighting on the avatar. Instead of rendering the entire point cloud, we render a bounding box of points. The bounding box is created using the user's head position and controller positions (ensuring that both fit within the box, and extending the box from the head down to the floor).

Read the blog post about this project.

You will need one controller to act as the tracker for the kinect. The Vive is capable of tracking more than two controllers, so a third controller can be dedicated to tracking the Kinect. We set up a simple rig using a standard camera stabilizer.

Our Rig

If you can't spare an extra controller, you can set up the camera in a fixed position and not use the tracking features.

This project mostly uses hacked up bits of Microsoft's Unity Kinect example. The point cloud creation is fairly slow and won't be suitable to include in public builds, but may be useful for teams to produce their own mixed reality footage for marketing purposes and as a base to begin experimenting on.

Running the Example

Ensure you have your kinect plugged in and load up the Example scene. You will want to have created some kind of rig like we have to hold the Kinect and a controller. Otherwise, position the controller and kinect as close togehter as you can. If your controllers are swapped from what we set them up as, you may need swap them or see the next section. Otherwise you should start to see something as soon as you hit play.

Setup

In the Example scene, there is an object called RealityStream. On that there is a SmoothMotion component. Set 'Track To' to whatever controller you want to use for tracking the kinect.

Under that object there is KinectOrigin and then KinectView. On Kinect View make sure that MultiSourceManager is connected to the MultiFrameManager and attach the 'Camera Head' and 'Hands' (controllers) to the appropriate variables on the DepthSourceView. These ensure that the bounding box includes the head and hands listed there.

We also have a light attached to the left hand which you may want to remove.

Gorilla

License

Copyright (c) 2016 The Archer Group

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.