Book Image

Unreal Development Kit Game Design Cookbook

By : Thomas Mooney
Book Image

Unreal Development Kit Game Design Cookbook

By: Thomas Mooney

Overview of this book

UDK is a free, world class game editing tool and being so powerful it can be daunting to learn. This guide offers an excellent set of targeted recipes to help game artists get up to speed with game designing in UDK.Unreal Development Kit Game Design Cookbook contains everything you need to jumpstart your game design efforts. The lessons are aimed squarely at the artist's field of production, with recipes on asset handling, creating content within the editor, animation and visual scripting to get the content working in gameplay.Unreal Game Development Kit Game Design Cookbook exposes how real-time environments are built using UDK tools. Key features are examined ñ assets, animation, light, materials, game controls, user interface, special effects, and game interactivity - with the view of making UDK technically accessible so users can transcend technique and focus on their creative design process. The book has well prepared recipes for level designers and artists of all levels. It covers core design tools and processes in the editor, particularly setting up characters, UI approaches, configuration and scripting gameplay. It is a technical guide that allows game artists to go beyond just creating assets, and it includes creative, extensive demonstrations that extend on mere functionality.
Table of Contents (17 chapters)
Unreal Development Kit Game Design Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Beginning, building, and testing a new level


In versions prior to June 2011 the user was confronted with a blank scene on loading the editor. This is still possible, if one likes that, but there is now also a set of templates to get started quickly. The templates each emulate a certain time of the day (Night, Day, Morning, Afternoon). These are not extensive maps, just a staging point to help move around the space easily and to help make visual prototyping faster. They come with already established lighting (Dominant Directional Light), a sky dome StaticMesh, a LightmassImportanceVolume, and a KillZ height, all of which the user would have to fuss with previously.

How to do it...

  1. Install UDK post June 2011 and start UDK. Go to the File menu and choose New. Choose the Afternoon Lighting template.

  2. The map that opens has a large StaticMesh box for the ground, and a small StaticMesh cube where the Builder Brush is. This StaticMesh is not useful except for scale reference, so select and delete it by pressing Delete. You can't delete the red Builder Brush.

  3. After deleting the box, notice the current lighting (shadows most obviously) doesn't change. Therefore we need to build the scene. Click on the menu Build and choose Build All or press [ ]. Swarm Agent will start and you can watch it process the scene (in the first instance you may be asked for administrator approval to run this utility). For more information on Swarm, and distributed rendering, consult: http://udn.epicgames.com/Three/Swarm.html.
  4. When the Build is finished, which should be fast given the scene simplicity, hit F8 (to Play in Editor (PIE)) or Alt + F8 to play in the active viewport.

  5. Notice you have no gun and there's no HUD (Heads-up display). Press Escape to close the play session and return to the editor. This time go to the menu View | World Properties. Under Default Game Type, change None to UTGame and do the same for Game Type for PIE. Press F8 or press [ ] and this time when you PIE you'll be able to shoot and see a crosshair for aiming and so on.
  6. Save the map to C:\UDK\~\UDKGame\Content\Yourfolder\Yourfirstmap.UDK.

  7. If you want to you can set any of your maps as one of the map templates that show when UDK loads. To do this we need to save the map to the folder C:\UDK\~\UDKGame\Content\Maps\Templates which is a location specifically for templates. In this case use the extension .UMAP, for instance: YourFirstMap.UMAP.

  8. In the Content Browser, locate the folder or package called Engine.Content.MapTemplateIndex. Add your map here by right-clicking in the Content Browser and choosing New TemplateMapMetadata. When the dialog for this opens, give the Info | Name as YourFirstMap (or whatever you saved your .UMAP file as, without including the ending). Click Okay.

  9. You can add a picture to your newly created TemplateMapMetadata asset. You could take a screen grab and save it as .PNG from Photoshop, and then in the UDK Content Browser right-click and choose Import, and browse to your .PNG. Import the texture to the same package as your TemplateMapMetadata asset.

  10. To complete adding the picture to the template, right-click on the imported texture and choose Copy full name to clipboard. Then find the TemplateMapMetadata asset and double-click it to show its Properties, and in the Thumbnail field of the Template Map Metadata paste the texture name. Save your package and next time you start UDK and choose New Map, yours should appear in the offered templates.