EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao

Slides:



Advertisements
Similar presentations
Where to get Blender for Free! Download from Blender.org and run the installer.
Advertisements

Working with Profiles in IX1D v 3 – A Tutorial © 2006 Interpex Limited All rights reserved Version 1.0.
BodyPaint 3D Basics Configuring and Using BodyPaint With Lightwave Mark Filanov.
Microsoft Word 2010 Lesson 1: Introduction to Word.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
SE 313 – Computer Graphics Lecture 13: Lighting and Materials Practice Lecturer: Gazihan Alankuş 1.
5/20/20151 Using UDK Editor CIS 488/588 Bruce R. Maxim UM-Dearborn.
GameCamp! and Game Davis Introduction to Unity®
Intro to Blender Alex Hawker. First Steps Download
Technical Support: (989) GIS and Mapping Procedures in ArcMap 9.x Creating an ArcMap Project Editing an ArcMap Project Printing an ArcMap Project.
HELLO WORLD: YOUR FIRST PROGRAM CHAPTER Topics  Hello World?  Creating a Unity Project –The Unity Project Folder  MonoDevelop: Unity's Code Editor.
Based on Roll-a-ball video tutorial from Unity Technologies Part WakeUpAndCode.com.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
GAME:IT Junior Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
SE 320 – Introduction to Game Development Lecture 11: Animations and GoKit Lecturer: Gazihan Alankuş Please look at the last slides for assignments (marked.
SE 313 – Computer Graphics Lecture 11: Projection Painting and Merging Textures Lecturer: Gazihan Alankuş 1.
InDesign CS3 Lessons 1 and 2. Work Area When First Opened.
1 Exercise Two The Digital Camera Helpful Notes 2004.
Modeling and Animation with 3DS MAX R 3.1 Graphics Lab. Korea Univ. Reference URL :
CSE 380 – Computer Game Programming Introduction ITS 102 – 3D Modeling for Games Blender's User Interface.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
GAME:IT Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
Chapter 1 Databases and Database Objects: An Introduction
| | Tel: | | Computer Training & Personal Development Outlook Express Complete.
ArcGIS: ArcMap Layout View. Agenda Layout interface Using templates Page properties Data frame properties Toolbars Layout elements Fine-tuning Finishing.
Main Navigation  Similar to Unity 3D  Unlike Unity it is a right handed coordinate system  Used to determines whether a positive rotation is clockwise.
Lesson 1 What is Camtasia?. Lesson 2 Editing Objectives After completing the lesson, the student will be able to: Edit a basic recording Camtasia file.
Petrel Workflow Tools 5 Day Introduction Course
ATN GIS Support ArcGIS: ArcMap Layout View.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Web Games Programming An Introduction to Unity 3D.
UFCFS D Technologies for the Web Unity 3D: Review of Topics and Related Concepts.
1. Press the New Layer Button 3. Double click names to re-name Ball & Shadow layers 2. Click to change to 12 fps Step 1.
Learning Unity. Getting Unity
SE 320 – Introduction to Game Development Lecture 3: Unity’s Interface and Concepts Lecturer: Gazihan Alankuş Please look at the last two slides for assignments.
UFCFS D Technologies for the Web Unity Interface Features.
UFCEK-20-3Web Games Programming Unity 3D: Review of Topics Publishing for the Web.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Adding Text and Navigation to the Home Page – Lesson 51 Adding Text and Navigation to the Home Page Lesson 5.
Tutorial 3 Creating Animations. XP Objectives Learn the different elements of animation Create frames and layers Organize frames and layers using the.
Copyright © 2015 Curt Hill Building a Simple Level No UnrealScript but several editors.
GameDevClub CODE CHEAT SHEET NOTE: ALL OF THE CODE IS CASE-SENSITIVE AND THE SYNTAX IS STRICT SO A LOT OF YOUR ERRORS WILL PROBABLY COME FROM TYPOS If.
XP Tutorial 3 Creating Animations. XP New Perspectives on Macromedia Flash MX Elements of Animation Layers are used to organize the content of.
 The terms LMB, MMB, RMB, and mouse wheel (MW).
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
MICROSOFT WORD PRESENTATION. Word Processing  Software that is designed for the entry, editing, and printing of documents.  Windows Version = Microsoft.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
Design Visualization Software Introduction / Review.
This is what we want to produce Import sketch dimensions Label angles Set the scale Add linear dimensions.
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
Expressive Intelligence Studio // Center for Games and Playable Media // Unity Pro John Murray Expressive.
INTRO TO UNITY Building your first 3D game. DISCLAIMER  “This website is not affiliated with, maintained, endorsed or sponsored by Unity Technologies.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Angry Teapots– using the physics engine in Unity Peter Passmore.
Digital Game Design ACST 3710 Your First Unity Program 1.
Game Development with Unity3D
Welcome! Day1, Lesson 1.
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
Game Development with Unity3D Inside/Outside Unity3D
3GB3 Game Design Unity 3D Basics.
EEC-693/793 Applied Computer Vision with Depth Cameras
Introducing Blender.
Assignment 8 Chess Game.
Introducing Blender.
EEC-693/793 Applied Computer Vision with Depth Cameras
Introducing Blender.
Assignment 1 Creating a Heart.
EEC-693/793 Applied Computer Vision with Depth Cameras
Presentation transcript:

EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao

Outline Introduction to Unity3D Based on Book:  Beginning 3D Game Development with Unity 4

Creating a New Unity Project Open Unity Select the Create New Project tab, change location folder to KinectUnity Select packages for import, then click Create

Unity 3D Layout

Scene View Where you plan and execute your ideas Where you plan and execute your ideas  To show the grid, toggle off the game overlay button

Hierarchy View Shows what’s in the currently active scene. GameObjects that are dynamically added and removed from the scene during runtime will appear here when they are active in the scene By default, the main camera is added

Project View Contains all the assets available to the current project, as well as all scenes or levels available for the finished game or application

Inspector Inspector is used to access various properties and components for objects you’ve selected in either the Hierarchy or Project views

Toolbar Transform tools: provide functionality for navigating the scene and transforming objects  Left most button: pan, orbit, zoom tools for navigating and adjusting scene view  Pan tool: default, left click and drag to move the view around  Orbit tool: hold the Alt key while clicking left click and dragging  Zoom tool: Alt + right mouse click  Other three buttons: move, rotate, and scale

Toolbar Privot point and coordinate system tools:  Objects can be transformed in different coordinate systems and from different pivot points  Play mode controls  Layers control: Layers are used in Unity for controlling which objects are rendered by which cameras or lit by which lights  Layout control

Elements to Build a Scene Assets: non-mesh special effects, physics materials, and scripts GameObject: base container for objects, scripts, and other components in Unity  Contains its transforms (location and orientation) and a few other properties Component: items associated with objects, such as meshes, rendering types, sound, scripts, and colliders, as well as those that create or extend functionality with predefined behaviors

Creating Simple Game Objects: Cube

Creating Simple Game Objects To zoom, use middle mouse roller or Alt-right mouse click To set the camera to match the scene view  Select the main camera in the hierarchy view  From the GameObject menu, choose Align with View

Creating Simple Game Objects Toggle the built-in lighting off and the scene lighting on, by clicking the light button  The cube is now lit only with the scene ambient light, as in the Game window Try out zoom, orbit and pan

Selecting and Focusing To focus the viewport back to the cube, or to “find” the cube, do the following  Make sure the cube is selected in the Hierarchy view.  Put the cursor over the Scene window.  Press the F key on your keyboard You can view scene objects in several other modes  Wireframe, textured wire, textured (default)

Transforming Objects In 3D space, the Cartesian coordinate system is used X, Y, Z are color-coded with red, green, blue Objects can be transformed (moved, rotated, scaled) around the scene  Select the cube, select the move button, click and drag on any of the three axis; Rotate is similar  Can also do these in inspector

Lights Because there are no lights in the viewport yet, it went dark, just as in the Game window, when you toggle off the lighting button Adding light  Focus the Scene view on the cube again and zoom out a bit  From the GameObject menu, choose Create Other ➤ Create a Directional Light. Directional lights emit parallel rays, no matter where they are in the scene.  Move the light up and out of the way of the cube.  Rotate it in the Scene window until the cube is lit nicely in the Game window  Use alt-left mouse click, drag/orbit the viewport so you are facing the unlit side of the cube

Lights Changing light color: in inspector for light  Click and drag in the Color’s image/color swatch and watch the light’s color on the cube change  Choose something subtle.  Close the dialog

Material In the Inspector, select the Cube 2. In the Mesh Renderer section, click to open the Materials array list

Material From the Assets menu, choose Create ➤ Folder, Rename the folder My Materials

Material Right-click the new My Materials folder and, from the same Create submenu, choose Material

Material A New Material entry appears in the Inspector, Name the new material TestBark Drag and drop the material from the folder onto the cube in the Scene window. In the Texture thumbnail window (not the Preview window), pick the Select button and, with the preview slider all the way to the left in the Asset Selector, choose Palm Bark Diffuse.

Material

Scripting A script is a program that controls the game objects in the scene dynamically, Unity support a number of programming languages  We will be using C# To create a new script  Create a New Folder in the Project view using the right-click menu or Assets menu in the menu bar  Name the new folder My Scripts  With the new folder selected, right-click it to bring up the contents of the right-click menu. Select C# Script from the Create submenu

Scripting To edit the script, click the open button. The MonoDevelop editor will open using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { }

Scripting The Start function is only called once as the scene is started and is a good place to initialize values that don’t exist until the game has been loaded The Update function is checked at least every frame during runtime to see if anything needs to be executed  It can make a transform such as a rotation continuously loop, check to see if a particular condition is met, and many other things  To attach the script to the game object, drag the script file to the game object  Add the following line in the Update function, save the script, click play  If you want to animate the object on a per-second basis, use Time.deltaTime transform.Rotate(0,5,0); (0,5,0) refers to the X, Y, and Z rotations parameters that are needed by the Rotate function transform.Rotate(0,5 * Time.deltaTime,0);

Scripting We can also move the game object using the Translate function You can also add private or public variables into script  Public variables are listed in the inspector and their values can be set their Challenge Task:  Animate the cube such that it drops to the ground and then bounce back like a ball transform.Translate(2 * Time.deltaTime,0,0);