Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.

Slides:



Advertisements
Similar presentations
Yingcai Xiao Game Development Intro to Unreal Engine.
Advertisements

INNER WORKINGS OF UNITY 3D. WHAT WE ARE GOING TO COVER Intro to Unity Physics & Game Objects Cameras & Lighting Textures & Materials Quaternions and Rotation.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 18 – Macromedia Flash MX 2004: Building an Interactive Game Outline 18.1 Introduction 18.2 Object-Oriented.
5/20/20151 Using UDK Editor CIS 488/588 Bruce R. Maxim UM-Dearborn.
GameCamp! and Game Davis Introduction to Unity®
GameCamp! and Game Davis Creating a 2D Platformer in Unity.
Intro to Blender Alex Hawker. First Steps Download
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
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.
Kritsakorn Chaumpanich. Object Creation  GameObject->Create Other ->Sphere.
Unity 3D game IDE 1.  Unity is a multi-platform, integrated IDE for scripting games, and working with 3D virtual worlds  Including:  Game engine ▪
SE 320 – Introduction to Game Development Lecture 11: Animations and GoKit Lecturer: Gazihan Alankuş Please look at the last slides for assignments (marked.
Yingcai Xiao Interactive Visualization with NUI and Game Engines.
Modeling and Animation with 3DS MAX R 3.1 Graphics Lab. Korea Univ. Reference URL :
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
Creating Special Effects
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
SE 350 – Programming Games Lecture 1: Introduction Lecturer: Gazihan Alankuş Please look at the last two slides for assignments (marked with TODO) 2/10/20121.
SE 320 – Introduction to Game Development Lecture 8: Animations, GUIs, Debugging and IDEs Lecturer: Gazihan Alankuş Please look at the last two slides.
Creating a Logo – Lesson 3 1 Creating a Logo Lesson 3.
University of Sunderland CDM105 Session 6 Dreamweaver and Multimedia Fireworks MX 2004 Creating Menus and Button images.
Web Games Programming An Introduction to Unity 3D.
UFCFS D Technologies for the Web Unity 3D: Review of Topics and Related Concepts.
Unity 5 Visual Studio Code * Asset Store * FPS * Terrain.
Learning Unity. Getting Unity
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
LATTICE TECHNOLOGY, INC. For Version 10.0 and later XVL Web Master Tutorial For Version 10.0 and later.
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.
Yingcai Xiao Game Development with Unity3D. Outline IDE Engine Assets Tutorial Examples Inside.
Yingcai Xiao Game Development Intro to Unreal Engine.
UFCEK-20-3Web Games Programming Unity 3D: Review of Topics Publishing for the Web.
Unity3D Physics April 3, 2015 Comp Game Design Michael Shah.
Derived from Kirill Muzykov’s Rocket Mouse Tutorial WakeUpAndCode.com.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
FLASH!!!!!!!!!!!!!!!!!!!!!!!!! A TUTORIAL BY BRITTANY HESS AND MARGARET DENTON.
XP Tutorial 3 Creating Animations. XP New Perspectives on Macromedia Flash MX Elements of Animation Layers are used to organize the content of.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
Computer Graphics Imaging Lecture 13 and 14 UV Mapping.
Expressive Intelligence Studio // Center for Games and Playable Media // Unity Pro John Murray Expressive.
Cosc 5/4735 Unity 3D Getting Started Guide for Android.
INTRO TO UNITY Building your first 3D game. DISCLAIMER  “This website is not affiliated with, maintained, endorsed or sponsored by Unity Technologies.
Angry Teapots– using the physics engine in Unity Peter Passmore.
Dreamweaver MX. 2 Timeline Overview (p. 480) n Animations can be achieved with DHTML (__________ HTML) using JavaScript code and _____ or later browsers.
Game Development with Unity3D
Workshop 12 atv – lower control arm
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.
2D Graphics and Animations in Unity 3D
Unity 2D: Step by Step, Part 4
EEC-693/793 Applied Computer Vision with Depth Cameras
Flash Interface, Commands and Functions
EEC-693/793 Applied Computer Vision with Depth Cameras
Game Development Intro to Unreal Engine
A Prime Example of HCI Application
Computer Animation UV Mapping.
CIS 488/588 Bruce R. Maxim UM-Dearborn
Creating & Using Sprites Adding Colliders
Week 6: Time and triggers!
Professional Environment
Unity Terrain Design Tutorial
Fundaments of Game Design
EEC-693/793 Applied Computer Vision with Depth Cameras
Presentation transcript:

Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D

Unity3D Engine IDE Assets Tutorial Examples

Installation Download at Unity3d.com/unity/download Supporting multi-platforms.

Unity3D Editions ( Personal Professional Differences Licenses

Unity 3D: Create Project Create your first Unity3D project.Create your first Unity3D project.

Getting started with a simple Unity3D project Start Unity3D Basic Components: Game Objects, Prefabs, Physics and Scripting File->New Project (3D or 2D) File->Save Scene

Getting started with a simple Unity3D project Import packages - Character Controller - Particles - Physic Materials - Skyboxes - Terrain Assets - Tree Creator - Water

Object Creation GameObject->3D object->sphere Edit->Frame Select (to show the created object) Hold onto the arrows to move the sphere or change the position in the Inspector. Note: Y is up.

Inspector and transform panel Moving, translation, rotation and scaling tools

Unity 3D: Component Select Created Game Object->Component->Physics- >Rigidbody Rigid Objects: non-deformable with physical properties (gravity, inertial). Non-rigid Objects: Deformable: changeable geometry Breakable: changeable topology. Intangible Objects: No predefined shape. fire, clouds, …

Animation Window- >Animation Click on the object to be animated. Component- >Miscellaneous- >Animation

Animation Create New Animation Clip Click on the record button (red) at the top-left. Save the new animation clip file. Click on Curves. Select Add Property->transform  position, rotation or scaling

Animation Add key frame on the timeline as many as you want. Click on the red button again to finish making the animation clip.

Animation (Unity5) Add key frame on the timeline as many as you want. Click on the red button again to finish making the animation clip.

Animation Go back to Unity window. Under Inspector  Animation, change the name of animation clip from none to the one that you have made.

Animation Event Allows you to call functions in the object’s script at specified points in the timeline. Add a new Animation Event by double- clicking the Event Line or by using the Event button.

Animation Event When you add an event, a dialog box will appear to prompt you for the name of the function and the value of the parameter you want to pass to it.

Unity 3D: Light Game Object ->Light -> Directional Light (Default) Move and rotate just like any other object.

Terrain GameObject  3D Object  Terrain In the hierarchy panel, select Terrain. In the Inspector: set x = -5, y = 0, z = -5. Click on one of the action icons in Terrain (Script) to raise/lower terrain, paint height, smooth height, paint texture, place trees, paint details, terrain setting. Adjust brush size to 1 before performing the operations. Paint Texture: Edit Texture -> Select

Terrain To place trees, you have to build tree first (Game Object- >3D object ->Tree), then choose“Edit Trees -> Add Trees” first to add different types of trees. In the Add Trees popup window, you need click on the little circle at the right-most of the “Tree” row. Select, say, Palm and then click on “Add” in the “Add Tree” window. Go back to the Inspector, select “Mass Place Trees” from available “Trees” to add.

Physics Unity3D provide Physics library. - Rigidbody, collider, joint, force and etc. Rigidbody component : gravity automatically added Collision detection : box, sphere, capsule, mesh, whelle and terrain. Collision call back function : OnCollisionEnter, OnCollision and OnCollisionExit.

Player (for a third-person game) Make sure to save the scene “File->Save Scene” (Ctrl S”) and save the project “File->Save Project” Next, we need add the player. In the Project window, drag“Standard Assets- >Character Controllers->3 rd Person Controller” to the Hierarchy window. In the Hierarchy window, double-click on the 3 rd Person Controller. Click on the “Move selected object” icon. Then move the controller to the top of the terrain. You may have to adjust your view angle by clicking on the ‘xyz” icon to see the position. Click the middle of the icon to get the perspective view.

Unity 3D: Play Now click on the “Play” icon and use the arrow keys to controll the player. You should see the player running around and make sure he does not run off the edge.

Under the Hood

Unity 3D IDE IDE: Integrated Development Environment Project: directory and files for a specific game project. C:\Users\xiao\Documents\New Unity Project 1 \Assets (anything you can reuse) \Library (binary files)

Unity 3D: Assets C:\Users\xiao\Documents\New Unity Project 1\Assets (anything you can reuse) \Standard Assets \OpenNI \Scripts \_Scenes \Materials\Artwork

Unity 3D: Standard Assets C:\Users\xiao\Documents\New Unity Project 1\Assets\Standard Assets Objects: (Look) \Tree\Terrain\Charater Lights: (Look) \Light Flares \Light Cookies Code: (Feel: control, interaction, animation, …) \Scripts

Unity 3D: Objects C:\Users\xiao\Documents\New Unity Project 1\Assets\Standard Assets\Charater: Prefab: (Predefined Objects) First Person, 3 rd Person \Source: \Prototype (Look) Constructor.FBX \Materials (properties) \Textures (images) \Scripts (Feel: actions) Java Scripts: ThirdPersonController.js C#: MouseLook.cs

Unity 3D: Scripts Languages: Interpreted : Java Script Compiled: C# Usages: General: under Project\Scripts ExitOnEscape.cs Objects: attached to objects ThirdPersonController.js ThirdPersonController.js

Unity 3D: Library cashe: for speeding up processing metadata: data that describes data previews: for previewing scenes ScriptAssemblies: compiled object assemblies for scripts

Resources for 3D model Autodesk Maya sk-maya/overview Blender