Learning Unreal Engine 3 Ė UE3 Editor

Skydomes and Non-Playable Space

 

To create a sky in an Unreal level, you need two things.

 

- A big open space

- A big mesh that you can paint the sky on

 

The first one is easy, just make your map in Additive mode, and leave a couple walls and ceilings open.

 

The second one is easy too, assuming you want to use a default UT3 sky.Epic uses dome-shaped meshes to create the effect of clouds, a sun, and blue sky poking through.Itís also handy to place some mountains or a city outside the playable space Ė even if the player canít get to them, itís good to have something to break up the horizon.

 

In this tutorial, weíll look at how to place one of Epicís skydomes and get it set up right.Weíll also look at how to detail out the non-playable space with static meshes.

1) Placing a SkyDome

First, open up the map that you want to place a skydome in.Then open up the Generic Browser.

 

Epic saved most of their skydomes in one package.Go to File->Open (in the generic browser), and load

C:\Program Files\Unreal Tournament 3\UTGame\CookedPC\Environments\UN_Sky.upk

 

There are 12 static meshes, but 35 materials.In UT3 maps, Epic reused the same basic meshes and applied different materials to them as needed.(No need to duplicate geo unnecessarily.)So letís do the same thing.

 

Select S_UN_Sky_SM_Dome01 and place it in the scene.

 

You may notice that the dome is pretty small Ė it may not even fit over your level, and itís definitely obvious that itís just a dome as you move the camera around.Select the mesh, and at the bottom of the editor window, change the DrawScale to 500.

 

Much better, now it really feels like itís far away.But letís assume you want to apply a different material to the mesh.Go back to the generic browser, and hit the ďCube PrimitiveĒ button to get a better view of your materials.Skydome materials look like the ones below.The lower half of the sky material is what the sky will look like along the horizon, and the upper half is roughly the view when you look straight up.

 

Select a material that you like.Note that some of the materials are meant for special objects, like planets or star rings, and they may not work.Iím going to pick M_UN_Sky_SM_Torlan, since itís very obviously different from the default material on this mesh.

 

Now select the skydome mesh in the scene.Right-click on it, select Materials->M_UN_Sky_SM_Invasion2->Assign From Generic Browser.

 

The new material will be applied to the sky mesh.

 

Experiment with different materials and see if you can find one that fits the theme of your level.After you apply your material, be sure to look straight up at the top of the skydome.You may see an effect like this:

 

If thatís the case, try applying the material to a different skydome mesh.The UV coordinates may be set up a different way for the material you picked, and the material may only work with a certain mesh.

2) Proper SkyDome settings

There are a couple flags we need to check in order to get our skydome to work optimally.

 

Select the skydome mesh and bring up its properties (F4).

 

Open up the Collision category.Change the CollisionType from Collide_BlockAll to Collide_NoCollision.

 

Now open up the StaticMeshActor category, then StaticMeshComponent.Under the Lighting section uncheck bAcceptsLights and CastShadow.

 

Now your skydome is ready to go Ė you wonít receive any build errors, and itíll run at optimal performance.

3) Placing objects in the background

Of course, the sky isnít the only thing youíll want outside of your playable space.You may want a distant city, or rocky cliffs, or an oceanÖ or any combination of those.

 

Any static mesh can be used in the background.Itís nothing special, just a prop you canít get to.If you look at any UT3 map, youíll notice a combination of techniques Ė rocky cliffs are often standard rock meshes, scaled up much larger than normal.Buildings may be built with the same components of your playable space.But there are also plenty of meshes designed specifically to be seen in the background.For instance, these buildings look blurry up close, but theyíre fine farther away.

 

The best way to learn what makes a good background is to dissect Unreal maps, and figure out how the artists at Epic put them together.

 

But there are a couple general pointers you can follow.

 

- Try to hide the horizon.If you have height fog in your map, that may help with this.Otherwise, put some tall objects that block most of the playerís view just outside the playable space.

- You donít need to fill out the entire background space.Only pay attention to what the player will see, or youíll be wasting memory and framerate.(Donít build out the ground if the player can only see the rooftops.)

- Donít go overboard with the number of objects you place.Too many objects or too many polygons will kill framerate.(Stay in the range of 200-400 objects outside the playable space.)

- Optimize your background assets by turning off collision on them.As we saw on the skydome mesh, set them to COLLIDE_NoCollision or if theyíre close enough to shoot at, choose COLLIDE_BlockWeapons.If you have multiple objects selected, you can change properties on all of them at the same time.

4) Copying background objects from another map

A great way to start detailing out your background is to cheat Ė find an Unreal level that has a similar theme, select their background assets, and copy/paste them into your level.You can then move the assets around as needed.

 

Some of the UT3 maps can be found in here:

C:\Program Files\Unreal Tournament 3\UTGame\CookedPC\Maps

And the rest in here:

C:\Program Files\Unreal Tournament 3\UTGame\CookedPC\Private\Maps

 

Letís copy some background assets now.Go to File->Open, browse to the first folder, and open DM-Sanctuary.Move the camera around the playable space a bit.Youíll notice a skydome like the one we placed, a big water plane underneath, and a bunch of rock formations that lead off into the distance.

 

What we want to do is copy the rock formations into our own map.If you zoom out in the top view, youíll see the playable space in the middle (mostly surrounded by a red box), and large-scale mountains surrounding it.

 

Before you copy anything, youíll need to hide some object types, since really all we want to copy is static meshes.

 

In the top view, hit the Toggle Show Flags button (the little black down-arrow).

Turn off the following flags:

- BSP

- Decals

- Sprites

- Volumes

 

That will simplify whatís shown in the scene.

 

Now you can start selecting objects.You can create a drag selection by ctrl-alt-dragging in the view.(You can deselect by ctrl-alt-dragging with the right mouse button.)You can also ctrl-click on an object to toggle its selection.

 

Select all of the meshes outside the playable space.(You can drag-select the whole scene, then drag-deselect objects in the playable space, and all thatís left selected will be objects outside the playable space.)

 

At the bottom of the editor window, thereís a block of text that will tell you how many objects youíve selected.Use this to sanity check your selection Ė If youíre in the range of 200-300 objects, youíre fine.

 

If it says ď243 Actors SelectedĒ instead of ď243 StaticMeshActors SelectedĒ, then youíve got multiple actor types selected, which may mean you need to double-check the Toggle Show Flags menu to make sure everything is turned off properly.

 

When youíre done selecting, go to Edit->Copy (or hit Ctrl-C.)Then load up your map and paste (Edit->Paste or Ctrl-V.)

 

The props now show up in your level, and you can move, duplicate, or rearrange them however you need to!

 

To wrap things up, youíll probably also want to go back to the Show Flags menu in your top view and reset to Default Show Flags.This will turn back on everything you turned off.

 

 

Back to the Topic Index

 


other tutorials