Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
OpenCV for Secret Agents

You're reading from  OpenCV for Secret Agents

Product type Book
Published in Jan 2015
Publisher Packt
ISBN-13 9781783287376
Pages 302 pages
Edition 1st Edition
Languages
Author (1):
Joseph Howse Joseph Howse
Profile icon Joseph Howse

Table of Contents (15) Chapters

OpenCV for Secret Agents
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Preparing for the Mission Searching for Luxury Accommodations Worldwide Training a Smart Alarm to Recognize the Villain and His Cat Controlling a Phone App with Your Suave Gestures Equipping Your Car with a Rearview Camera and Hazard Detection Seeing a Heartbeat with a Motion Amplifying Camera Creating a Physics Simulation Based on a Pen and Paper Sketch Index

Creating the Rollingball scene in Unity


Let's create a directory, Rollingball, to contain our application-specific code and assets. Right-click on the Project pane and choose Folder under Create from the context menu. Rename the new folder Rollingball. Create a subfolder, Rollingball/Scenes, in a similar way.

From the menu bar, select New Scene under File and then select Save Scene as… under File. Save the scene as Rollingball/Scenes/Rollingball.unity.

By default, our newly created scene contains just a camera—that is, the virtual world's camera, not a capture device. We are going to add three more objects in the following way:

  1. From the menu bar, navigate to Game Object | Create Other | Quad. An object called Quad should appear in the Hierarchy pane. Rename Quad to VideoRenderer. This object is going to represent the live video feed.

  2. From the menu bar, navigate to Game Object | Create Other | Directional Light. An object, Directional light, should appear in the Hierarchy pane. It will illuminate...

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 $15.99/month. Cancel anytime}