Book Image

OpenCV for Secret Agents

By : Joseph Howse
Book Image

OpenCV for Secret Agents

By: Joseph Howse

Overview of this book

Table of Contents (15 chapters)
OpenCV for Secret Agents
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
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...