I love the smell of UnrealEd crashing in the morning. – tarquin

Legacy:Screen/Tips

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search

Concepts[edit]

Mych understands Screens. Thats 'cos he wrote them. And he's an uberl33t code moose-god. Mere mortals may not. This is a page for them.

A Screen is made of 3 components:

  • A magic texture. Slap this on any surfaces you like. Hell, slap it all over the map
  • A Screen actor. This is the brains of the magic texture and must be told which texture to make magic. However, it doesn't know what to put on the texture. It points to a Slide
  • A ScreenSlide. This is the things that actually creates content.

Map Screens[edit]

Here are some of Tarquin's thoughts of how to painlessly make a map diagram for a screen map thingy. These may be obvious, but I found them out the hard way.

Before you begin, you need to reconcile two things:

  • the size and proportions of the brush surface that will hold the screen
  • the proportions of the map that will be seen on this.

For a clear map, aim to use 2x or 4x the normal number of texels. ie, on a 128x128 brush surface put a 256x256 texture at least.

Making the diagram texture[edit]

Handy trick to find the coordinates for the corners of your map:

  1. Centre your map on the origin. To do this, choose a focal point of your map. If it's a symmetrical team map (CTF, Jailbreak), use the point of symmetry. Select everything in the map (use drag-select: see mouse control) and move it so your chosen focal point is on the Origin (0,0,0). Setting the grid to 256 helps for this.
  2. Still with the grid on 256, zoom out in whichever view you want to your diagram to be from. Make the red builder brush large enough to encompass your whole map, centred on the origin. Use the brushbuilders parameters, in multiples of 256
  3. note down the dimensions.
  4. Zoom to get the right sort of size. Maximizing the UnrealEd Viewport may help. It all depends on whether you want to do advanced image trickery in Photoshop.
  5. take a Level Screenshot
  6. In Photoshop, trim the picture to the outline of the giant red builder brush cube.
  7. for the Screen Map Slide co-ordinates enter 1/2 of the brush dimensions. For examle, the top left corner will be ( -width/2 , -height/2 ). (remember Unreal uses a left-handed co-ordinate system)

Overlapping the edges[edit]

Screen suffers from a bug in UT scripted textures which tends to leave stray pixels on the edges of the texture. (Repeat: it's a bug in UT, not in Screen...)

To get round this, create a frame for the brush that holds the screen, covering a little bit of the edges of the surface that holds the screen texture.

Setting the ClientScriptedTexture property[edit]

To set this quickly and painlessly:

  1. position the Screen actors in front of the physical screen brush
  2. apply one of the Screen textures to the surface
  3. select the Screen actor and open its properties
  4. ALT-right-click the surface
  5. Click in the ClientScriptedTexture property and click the "Use" button

Tiled Screens[edit]

Check tile alignment with a different texture... (not sure which one. Mych, how about bundling a non-symmetical texture just for testing purposes in the next Screen? It could mark the area of overlap glitch too... )

being thick about palettes[edit]

Mych, I've set my Slides to have the palette of the texture they use as background. The next problem is this: how do I force the Screen's texture to use that palette?

If you set the slide's Palette property, that's all you can do (since there's by definition only one palette per ScriptedTexture (UT)). —Mychaeel

Would copying the Palette setting from SlidebackgrounTexture's properties into that of MyScriptedScreen work?

Debugging Screens[edit]

In my experience, by far the most common bug with Screens is one of texture alignment. Apply a texture of the same size with clear edges, such as an arch to check panning, and apply something with text to check orientation.

With screen maps, note that the Y axis goes DOWN. See Unreal World.

Screens of the Rich & famous[edit]

Used Screen in a map? Care to let the Wiki how you used it?

Pressurized[edit]

A map for Jailbreak by Tarquin:

<tarquin> actually, for Pressurized I did this:

<tarquin> took screenie

<tarquin> converted to black & white

<tarquin> printed it

<tarquin> drew & wrote on it

<tarquin> scanned it

<tarquin> colorized it