Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Augmented Reality with Kinect

You're reading from   Augmented Reality with Kinect If you know C/C++ programming, then this book will give you the ability to develop augmented reality applications with Microsoft's Kinect. By the end of the course you will have created a complete game.

Arrow left icon
Product type Paperback
Published in Jul 2013
Publisher Packt
ISBN-13 9781849694384
Length 122 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Rui Wang Rui Wang
Author Profile Icon Rui Wang
Rui Wang
Arrow right icon
View More author details
Toc

Integrating the current code


Until now, we have successfully created examples about displaying a translucent depth image on a background image (Chapter 3, Rendering the Player), drawing linetrails of the two hands (Chapter 4, Skeletal Motion and Face Tracking), and determining a simple holding gesture (Chapter 5, Designing a Touchable User Interface) of UI interaction. These can just be used in the Fruit Ninja game to display the player and emulate his/her blade paths. The most basic UI components of our game are the restart and exit buttons. We will use the holding gesture to check if the player clicks on either of the two buttons.

We use an image with two buttons (restart and exit) drawn at the top-left and top-right corners of the background. We will use the holding gesture to trigger the buttons. The image is shown as follows:

The background image

Integrating existing elements in a scene

Now let's start.

  1. The following global variables are copied and altered from the examples in Chapter 3...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image