Unity: Introduction

Post on 14-Jan-2015

2.732 views 1 download

Tags:

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

Unity: Introduction

Václav Van!ura – @vancurasaymedia.com

Michal Hotovec – @mhotovecfalanxia.com

What The Unity?

‣ Games

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

‣ Apps

Augmented Reality appsMedical appsArchitectural visualizations

Platforms

‣ Desktop

Windows, OS X

‣ Game consoles

Playstation, Nintendo Wii, Xbox

‣ Mobile devices

iOS, Android, Union

‣ Web

What Unity Does?

Workflow

‣ Project structure

‣ Drag & Drop

Visual programming

‣ Browsers

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

‣ Snapping

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

Automatic FileChange Detection

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

Watches for file changesand automatically updates assets

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

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

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

Font Import

‣ TrueType

‣ 3rd party scripts

‣ Font sheets

Editors

‣ MonoDevelop

‣ Microsoft Visual Studio

‣ TextMate

‣ any other editor

MonoDevelop (OS X / Windows)

Microsoft Visual C# (Windows)

TextMate (OS X)

Unitron (OS X)

Components & OOP

‣ Languages

C#

JavaScript

Boo

‣ Scripts as components

‣ Prefabs

‣ Rich API

JavaScript

C#

Boo

Visual Scripting

Useful for designers and not so nerdy programmers

Kismet / uScript

Play / Pause

‣ Debugging & Profiling

Instant launch, recompilation in background

‣ No need to recompile

Changes visible immediately

‣ Debugging and Profiling

UnityMonoDevelopXcode

Unity Remote

‣ Realtime preview

‣ Mobile device features transferred to Unity

MultitouchAccelerometer / gyroscope

‣ Lower FPS and visual quality

Asset Server

‣ Team cooperation, shared assets

‣ Versioning

‣ Needs a free server,but a separate client license

Linux, Windows, OS X

‣ Can be installed locally

Asset server

Conflict diffing in FileMerge

Surface Shaders

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

‣ Do your own shaders

‣ Mobile shaders

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

Physics

‣ NVIDIA PhysX

GPU hardware accelerated

‣ Rigidbodies

Physical materials

Triggers

‣ Colliders & collisions

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

Physics

‣ Joints

‣ Softbodies

‣ Cloth simulation

Animation‣ Animation editor

‣ Animation clips

‣ Bones, IK

‣ Animation & Pose blending

Animation

‣ Biped editor

‣ Mixamo

Respect the Platform

‣ Optimization

Mobile hardwareFill rateRAMDrawcalls

‣ Batching

Dynamic batchingStatic batching

‣ Game budget

Lightmapping — Beast (before)

Lightmapping — Beast (after)

Batching & Caching

‣ Occlusion Culling & Penumbra

‣ Light-mapping / Beast

‣ Terrains

Now on mobile devices

Tree Creator

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...

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 :]

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

Flash Stage3D Export

Thank you.

Václav Van!ura – @vancurasaymedia.com

Michal Hotovec – @mhotovecfalanxia.com