How to light your basic games environment

03. Secondary lighting: 1

game 5 step 3

There are two spotlight meshes in the scene, one above the garage door and one on the metal bridge-like structure. I place a spotlight slightly below these assets to give the illusion of the light being cast from the light meshes. I rotate the bridge spotlight to cast light against the back wall and staircase, for interesting shadows across the wall. The settings are: Intensity 26000; Attenuation Radius 1800; Outer Cone Angle 68; Colour warm orange.

04. Secondary lighting: 2

game 5 step 4

Point the spotlight above the garage mainly towards the floor, so as to cast light across the left wall and garage door. The settings used for the light are: Intensity 2000; Attenuation Radius 1000; Outer Cone Angle 70 and Colour light blue hue. Also add a Source Radius setting of 25 in order to get a softer fall off to your shadows from this light.

05. Atmospherics

game 5 step 5

Adding atmospherics, such as fog, creates mood but also has another function – adding depth and realism. Drag an Exponential Height Fog actor into the scene, somewhere in the middle. Because this is height fog, it will change the appearance depending on how high the actor is in the scene. The settings I used are: Fog Density 0.015; Fog Colour dirty dark orange; Fog Height Falloff 2.0. Move the Fog actor down until you get the desired look.

06. Improve shadow quality

game 5 step 6

The shadow quality on the back walls isn't good, due to the lightmap's low resolution, set on a per asset basis. The walls are a good example of how a larger map would be good enough for a scene like ours. In the content browser, find an asset that needs a higher-res map, such as a wall, and double-click it for options. Under the Static Mesh settings find Light Map Resolution settings and type: 512. Now rebake the scene and the asset will have better shadows.

Low-res assets

Small assets such as bottles can stay at a low resolution, as the detail will be too small to see anyway

Expert tip: Use lower resolution maps

Keeping your lightmap resolutions low while you adjust your lighting solution is good practice, so you don't continually have to
wait ages for your lighting builds.

Words: Andrew Finch

Andrew Finch is a senior environment and lighting artist at Codemasters Game Studio in Birmingham. This article first appeared in issue 191 of 3D World magazine.

Like this? Read these!

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of seven full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Deals Editor Beren Neale, Senior News Editor Daniel Piper, Digital Arts and Design Editor Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Abi Le Guilcher, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.