Unity: Introduction

40
Unity: Introduction Václav Vančura – @vancura saymedia.com Michal Hotovec – @mhotovec falanxia.com

description

Introduction to Unity game engine and platform. Authors: * Vaclav Vancura (@vancura) * Michal Hotovec (@mhotovec) Presented on 1st Indie Games Czech meetup in Prague on October 18, 2011. More info on the meetup on @indiegamescz.

Transcript of Unity: Introduction

Page 1: Unity: Introduction

Unity: Introduction

Václav Van!ura – @vancurasaymedia.com

Michal Hotovec – @mhotovecfalanxia.com

Page 2: Unity: Introduction

What The Unity?

‣ Games

Mainly 3D (with acceleration),but 2D as well

‣ Apps

Augmented Reality appsMedical appsArchitectural visualizations

Page 3: Unity: Introduction

Platforms

‣ Desktop

Windows, OS X

‣ Game consoles

Playstation, Nintendo Wii, Xbox

‣ Mobile devices

iOS, Android, Union

‣ Web

Page 4: Unity: Introduction

What Unity Does?

Page 5: Unity: Introduction

Workflow

‣ Project structure

‣ Drag & Drop

Visual programming

‣ Browsers

Textures, objects, sounds, scripts, animation clips etc...

‣ Snapping

Page 6: Unity: Introduction

Importing 3D Assets

‣ Import without a 3rd party app

FBX, OBJ, 3DS, Collada DAE

‣ When a native app is needed

Maya, Blender, Modo, Cinema 4D,3D Studio Max, Cheetah 3D

Page 7: Unity: Introduction

Automatic FileChange Detection

‣ 3D objects including textures,bones, animations and UV

Watches for file changesand automatically updates assets

Page 8: Unity: Introduction

Texture Import

‣ Formats

JPEG, PNG, GIF, BMP, TGA, IFF, PICT... and PSD

‣ Video & video textures

Camera textureOgg TheoraMOV, AVI, ASF, MPG, MPEG, MP4VIDEO transcoded

‣ Automatic generation

Mip-Map, Height Map to Normal Map,Bitmap to Bump MapPVRTC

Page 9: Unity: Introduction

Audio Import

‣ Live preview

‣ 2D & 3D audio

Sound sources & listeners

One sound listener attached to scene cameraMultiple sound sources

Environment settings

Room settingsDoppler effect

Filters – DSP effects

High-pass / low-pass, distortion, chorus / echo / reverb

Page 10: Unity: Introduction

Audio Formats

‣ Music

MP3 & Ogg Vorbis (depending on platform)

‣ Sounds

AIFF, WAV

‣ Trackers

FMOD libraryMOD, IT, S3M, XM

‣ Streaming

Ogg Theora & Ogg Vorbis streaming from network

Page 11: Unity: Introduction

Font Import

‣ TrueType

‣ 3rd party scripts

‣ Font sheets

Page 12: Unity: Introduction

Editors

‣ MonoDevelop

‣ Microsoft Visual Studio

‣ TextMate

‣ any other editor

Page 13: Unity: Introduction

MonoDevelop (OS X / Windows)

Page 14: Unity: Introduction

Microsoft Visual C# (Windows)

Page 15: Unity: Introduction

TextMate (OS X)

Page 16: Unity: Introduction

Unitron (OS X)

Page 17: Unity: Introduction

Components & OOP

‣ Languages

C#

JavaScript

Boo

‣ Scripts as components

‣ Prefabs

‣ Rich API

JavaScript

C#

Boo

Page 18: Unity: Introduction

Visual Scripting

Useful for designers and not so nerdy programmers

Page 19: Unity: Introduction

Kismet / uScript

Page 20: Unity: Introduction

Play / Pause

‣ Debugging & Profiling

Instant launch, recompilation in background

‣ No need to recompile

Changes visible immediately

‣ Debugging and Profiling

UnityMonoDevelopXcode

Page 21: Unity: Introduction

Unity Remote

‣ Realtime preview

‣ Mobile device features transferred to Unity

MultitouchAccelerometer / gyroscope

‣ Lower FPS and visual quality

Page 22: Unity: Introduction

Asset Server

‣ Team cooperation, shared assets

‣ Versioning

‣ Needs a free server,but a separate client license

Linux, Windows, OS X

‣ Can be installed locally

Page 23: Unity: Introduction

Asset server

Page 24: Unity: Introduction

Conflict diffing in FileMerge

Page 25: Unity: Introduction

Surface Shaders

‣ A lot of Shaders both built-inand on Asset Server

‣ Do your own shaders

‣ Mobile shaders

Page 26: Unity: Introduction
Page 27: Unity: Introduction

Fullscreen Postprocessing Filters

‣ Most interesting filters

Bloom + Lens Flare, DOF, Sun Shafts, Color Correction, Glow, SSAO, Motion Blur, Noise, Twirl, Vortex

‣ Hardware consumption

‣ Not supported on mobile devices

Page 28: Unity: Introduction

Physics

‣ NVIDIA PhysX

GPU hardware accelerated

‣ Rigidbodies

Physical materials

Triggers

‣ Colliders & collisions

Box, Mesh, Sphere, RayCasting, Wheel colliders...

Page 29: Unity: Introduction

Physics

‣ Joints

‣ Softbodies

‣ Cloth simulation

Page 30: Unity: Introduction

Animation‣ Animation editor

‣ Animation clips

‣ Bones, IK

‣ Animation & Pose blending

Page 31: Unity: Introduction

Animation

‣ Biped editor

‣ Mixamo

Page 32: Unity: Introduction

Respect the Platform

‣ Optimization

Mobile hardwareFill rateRAMDrawcalls

‣ Batching

Dynamic batchingStatic batching

‣ Game budget

Page 33: Unity: Introduction

Lightmapping — Beast (before)

Page 34: Unity: Introduction

Lightmapping — Beast (after)

Page 35: Unity: Introduction

Batching & Caching

‣ Occlusion Culling & Penumbra

‣ Light-mapping / Beast

‣ Terrains

Now on mobile devices

Tree Creator

Page 36: Unity: Introduction

Asset Store

‣ Buy 3rd assets

3D Models

Characters, environments, vehicles, vegetation...

Textures

Shaders, bricks, fabric, metal, nature, paper, roads, wood...

Audio

Music, sound FX, ambient sounds...

Example projects

Tutorials, templates, demos, games...

Page 37: Unity: Introduction

Asset Store

‣ Buy 3rd assets

Editor extensions

Animation, audio, modeling, painting, utilities...

Scripting

AI, GUI, network, effects, physics...

Particle systems

‣ Build and sell your own

and be rich :]

Page 38: Unity: Introduction

Future: Unity 3.5

‣ HDR rendering with gamma correction

‣ Native level-of-detail support

‣ Shuriken

A completely curve driven particle effects system

‣ Integrated GPU profiler

‣ Pathfinding and crowd simulation built in

‣ Integrated version control support for Perforce and SVN

Page 39: Unity: Introduction

Flash Stage3D Export

Page 40: Unity: Introduction

Thank you.

Václav Van!ura – @vancurasaymedia.com

Michal Hotovec – @mhotovecfalanxia.com