Presentation is loading. Please wait.

Presentation is loading. Please wait.

Yingcai Xiao Game Development Intro to Unreal Engine.

Similar presentations


Presentation on theme: "Yingcai Xiao Game Development Intro to Unreal Engine."— Presentation transcript:

1 Yingcai Xiao Game Development Intro to Unreal Engine

2 Unreral Game Engine Unreral Game Engine Engine (https://www.unrealengine.com)https://www.unrealengine.com Open Source (complete source code) IDE (Blueprint, C++) Documentation Tutorials Examples Discussion Forums Educational Use (free)

3 Installed on the lab computers Start->All Programs->Unreal Development Kit->UDK 2015-01 UDK Editor: IDE for visual game development UDK Games: Example Games built with UDK Documentation Tools

4 UDK Editor

5 The default game. When you open UDK->Editor, you will see a default first-person game, a default game object placed at the center, and a default camera placed at the lower-right corner. Play->Play in editor Use the arrow key to move around. Animation with camera movements.

6 Add your own objects. Select a Brush type Brush-CSG->Add Play Select another Brush type Brush-CSG->Add Brush->CSG->Subtract

7 Installation on your own computer Register an account https://www.unrealengine.com/register Download the dashboard (1GB) https://www.unrealengine.com/dashboard Start the Dashboard, then go to Library, +Add Engine, Subscribe Subscribe with the code from GitHub Student Developer PackGitHub Student Developer Pack https://www.unrealengine.com/code-redemption Download the engine (3GB) Dashboard, Library, Engines, Download. (Can be downloaded on multiple computers with one account.)

8 Basic Game Engine Components Rendering Collision detection AI Visibility Networking Scripting File system management

9 Supporting rendering/graphics engines Microsoft DirectX for Microsoft Windows, Xbox One, Windows RT OpenGL for OS X, Linux, PlayStation 4, iOS, Android, and Windows XP JavaScript/WebGL for HTML5 Web browsers

10 UE4 Tim Sweeney, Epic Games, Started in 2003 Released in 2014 Shaders/GPU Android Blueprint visual scripting Kismet in UE3 and UnrealScript in UE2/1

11 Blue prints Visual scripting Nodes Events Functions Variables

12 Blue print types Level (each level can have one) Class (game objects) Prefabs Pawns (player characters) HUD (heads-up display, status bar)

13 A More Advanced Game

14 Blueprint Tutorial A third person game https://wiki.unrealengine.com/File:ThirdP erson_FBX.zip (Chose the one dated April 2014.)https://wiki.unrealengine.com/File:ThirdP erson_FBX.zip Follow the tutorial at https://wiki.unrealengine.com/Introductio n_to_Third_Person_Blueprint_Game_- _1_-_Introhttps://wiki.unrealengine.com/Introductio n_to_Third_Person_Blueprint_Game_- _1_-_Intro

15 Blueprint Tutorial FBX (Autodesk 3D model files) Skeleton animation with joints/bones. Have to use the same skeleton or skeletons with the same hierarchy to share animation.

16 Import FBX Create a “Character” directory in the Content Browser Drag HeroTPP from the unzipped FBX.zip to file pan. Import. Double click on the HeroTPP in the file pan. In the skeleton editor, select the Mesh tab.

17 Import Animation Create an “Animation” directory under “Character” directory in the Content Browser Drag all the animation files from the unzipped FBX.zip to the file pan. Select the HeroTPP skeleton in the import dialog. file pan. Import All. Ctrol+S often to save everything.

18 Persona Animation editor in UE4 Filter animation files Click on the idle animation file. Persona will start. Right click on a bone allow you to add sockets to hold other things. Double click on any animation file in Content Browser will start the Asset Browser. Brows through the list to view the animations.

19 Persona - Mesh Mesh tab gives you more details on the mesh than the Skeleton tab. Mesh allow you to morph (change the shape of) a mesh.

20 Persona - Animation Click on the animation pan (below the viewing window). You can add notification to trigger a secondary animation. You can add a curve to change a property (variable), say, face color.

21 Input Edit->Project Setting->Engine->Input Action Mapping: key up/down operations Axis Mapping: continuous operations Axis +, Move Forward + to add key F – Scale 1.0 + to add key B – Scale -1.0 + to add key Up – Scale 1.0 + to add key Down – Scale -1.0 Export to be added into product.ini file.

22 Material Content Browser->Game->Charactor Right click on it Create Asset -> Material Name it Character_Parent Double click on it Go to the Material Editor

23 Material Editor Right click in the material editor pan. Select a desired color. Ok to see the update of the color on the object. Create another parameter (scalar) and name it metallic. Change its value in “Details” to 0.2 “Apply”

24 Use Material Go to Content Browser Right click on Character_Parent Create Material Instance Name it Charactor_Inst Double click on it to edit the instance.

25 Use Material Go to Content Browser double click on HeroTPP Persona will be up. Drag the Character_inst from Content Browser to Mesh Details The color of the character will change after compilation.

26 Blend Space Construct more complicate animations: blend multiple animations. Graph of variables (e.g. speed, direction) Click on “Animation” folder in the Content Browser In the files pan, righ click Animation->Blend Space 1D Select the HeroTPP skeleton Name it Idle_walk_run

27 Blend Space In the asset browser of the Persona, select idle_walk_run. Change X Axis Parameters: Name: speed Range: 0, 368 Division: 4 Apply

28 Blend Space Drag the animations from Asset Browser of Persona to blend animations Idle to Speed 0 Walk to the middle Run to Speed 368


Download ppt "Yingcai Xiao Game Development Intro to Unreal Engine."

Similar presentations


Ads by Google