Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Development Kit Game Design Cookbook

You're reading from   Unreal Development Kit Game Design Cookbook Over 100 recipes to accelerate the process of learning game design with UDK book and ebook.

Arrow left icon
Product type Paperback
Published in Feb 2012
Publisher Packt
ISBN-13 9781849691802
Length 544 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Thomas Mooney Thomas Mooney
Author Profile Icon Thomas Mooney
Thomas Mooney
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Unreal Development Kit Game Design Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Heads Up—UDK Interface Essentials 2. Notes From an Unreal World—Constructing Game World Elements FREE CHAPTER 3. It Lives!—Character Setup and Animation 4. Got Your Wires Crossed?—Visual Scripting of Gameplay in Kismet 5. It Is Your Destiny!—Scripting Complex Gameplay Flow in Kismet 6. Under The Hood—Configuration and Handy Tweaks for UDK 7. Hi, I'm Eye Candy!—Ways to Create and Use Particle Effects 8. Then There Was Light!—Manipulating Level Light and Shadows 9. The Devil Is In The Details!—Making the Most of Materials 10. The Way Of The Flash UI—Scaleform, CLIK, and Flash Interfaces 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.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image