![](https://i2.wp.com/www.amitgp.com/wp-content/uploads/2018/12/HighresScreenshot00007.png?fit=%2C&ssl=1)
Doing game lighting compare to cinematic poses some other challenges, unless you are doing real-time cinematic that is. I am specifically talking about performance, gameplay, and clarity to name a few. In this blog post, I will break down a test lighting I did for a game jam 2D Side scroller with a sci-fi theme to it. The majority of the level was put together by my friend with some adjustment made by me later on. So let us start with the general workflow, starting with References.
References – Color and Mood
The first thing to do is always get some references, it makes it much easier to establish your mood and lighting setup. Let me provide two samples from the reference library that I used to light the area.
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/117563c894cb3494e9cd41cbf1d9b103-1024x576.jpg?resize=1024%2C576)
![](https://i2.wp.com/www.amitgp.com/wp-content/uploads/2018/12/h4_01-1024x576.jpg?resize=1024%2C576)
Once I spend a few hours doing this process I try and establish my own color scheme based on my references, this ensures creative freedom, expression and artistic decisions suitable for the particular game you might do lighting for. Provided is a sample of
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/color-scheme-1024x560.png?resize=1024%2C560)
Light Placements
With the concept, planning and reference phase semi-completed I recommend thinking about where to put the lights, as in my case there are suggestions on light sources but in some cases none at all. So an example of how it would look like is this:
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/nolights-1024x649.jpg?resize=1024%2C649)
Looking at the environment I started playing around with different light placement but ended up placing lights somewhat like this:
![](https://i2.wp.com/www.amitgp.com/wp-content/uploads/2018/12/InkedHighresScreenshot00004_LI-1024x487.jpg?resize=1024%2C487)
The reason for
By now, maybe you noticed the color of the materials. This plays an important role in what color light to pick. In this case, I was the one who changed the materials to yellow and red, to emphasize the blue/teal lighting that would go in the playable path. With minor breakups using red/orange.
![](https://i0.wp.com/www.amitgp.com/wp-content/uploads/2018/12/InkedHighresScreenshot00007_LI-1024x687.jpg?resize=1024%2C687)
I continued adding static mesh light sources down the hallway, in the process I added elevation and other details to adjust the level design. The darker red light was added to the door entrance with a big wall in between, and other light sources
Adding the light to the level
One of the first thing that is good to do is getting a decent emissive from the materials that are on the static mesh light sources itself. This will give out a light that can be baked into the texture, saving
![](https://i0.wp.com/www.amitgp.com/wp-content/uploads/2018/12/InkedHighresScreenshot00010_LI-1024x687.jpg?resize=1024%2C687)
Then a lot of time goes into adding the best suitable type of light type, such as
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/spotlights-1024x687.jpg?resize=1024%2C687)
![](https://i0.wp.com/www.amitgp.com/wp-content/uploads/2018/12/redfilllight-1024x687.jpg?resize=1024%2C687)
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/extrafilllightblue-1024x687.jpg?resize=1024%2C687)
All of these lights have unique settings to them for different purpose and reasons. I will try and explain some of the principles behind it. In general only the important lights have dynamic shadow on which means it is calculated every second while the game runs, everything else is baked to save on resources during gameplay. This allows me to be slightly free in using extra lights in areas that I need to in exchange for longer baking time/rendering.
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/realtimelightspotlightwall-1024x687.jpg?resize=1024%2C687)
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/realtimespotlightfloor-1024x687.jpg?resize=1024%2C687)
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/redfillight-1024x687.jpg?resize=1024%2C687)
![](https://i0.wp.com/www.amitgp.com/wp-content/uploads/2018/12/reflectionsource-1024x687.jpg?resize=1024%2C687)
As shown so far there are many things, thoughts
An example of such a scenario would be the image shown later below which has hotspot created
![](https://i2.wp.com/www.amitgp.com/wp-content/uploads/2018/12/ies-profile.jpg?resize=582%2C433)
The lights being used for the game level is also using Inverse Square Law which is basically how lights fall off and lose’s intensity over distance as shown above. But I took another image to save time, this time from Johannes
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/Light-Fall-Off-to-the-Square-1024x601.png?resize=1024%2C601)
![](https://i0.wp.com/www.amitgp.com/wp-content/uploads/2018/12/hotspots-1024x687.jpg?resize=1024%2C687)
This is when we can turn off the Inverse Square Law and play around with intensity, range and light falloff exponent. In my
![](https://i1.wp.com/www.amitgp.com/wp-content/uploads/2018/12/blownoutless-1024x717.jpg?resize=1024%2C717)
Basically you keep going like this looking at your reference, color palette and adjusting it based on values, contrast and what you are going for. I tried making sure the background was visible enough while the main path was brightest. Smallest thoughts went into it such as purposely having white tiles on the path and black on both sides of it, this creates contrast and also ensure brightest spots are in the middle of the path.
Fog
I won’t go too much into detail but when you add fog into the scene such as Exponential Height Fog you need to remember it creates flatness due to the type of technology it is. Some time was spent to push the fog to the middle of the scene rather than the whole scene, this was to ensure depth without losing value and contrast. Additionally fog sheet was used to put around on the side background to create further depth and mood. The light sources closer to the player area and higher up was given volumetric lighting as well.
![](https://i2.wp.com/www.amitgp.com/wp-content/uploads/2018/12/distance-fog-1024x717.jpg?resize=1024%2C717)
Post Processing
![](https://i2.wp.com/www.amitgp.com/wp-content/uploads/2018/12/postprocessing-1024x717.jpg?resize=1024%2C717)
Final Touches
For the final
![](https://i2.wp.com/cdnb.artstation.com/p/assets/images/images/014/588/413/large/amit-ginni-patpatia-highresscreenshot00002.jpg?w=1080&ssl=1)
![](https://i0.wp.com/cdnb.artstation.com/p/assets/images/images/014/588/407/large/amit-ginni-patpatia-highresscreenshot00005.jpg?w=1080&ssl=1)
![](https://i1.wp.com/cdna.artstation.com/p/assets/images/images/014/588/408/large/amit-ginni-patpatia-highresscreenshot00000.jpg?w=1080&ssl=1)
![](https://i0.wp.com/cdna.artstation.com/p/assets/images/images/014/588/410/large/amit-ginni-patpatia-highresscreenshot00006.jpg?w=1080&ssl=1)
![](https://i0.wp.com/cdnb.artstation.com/p/assets/images/images/014/588/411/large/amit-ginni-patpatia-highresscreenshot00001.jpg?w=1080&ssl=1)
![](https://i0.wp.com/cdna.artstation.com/p/assets/images/images/014/588/414/large/amit-ginni-patpatia-highresscreenshot00003.jpg?w=1080&ssl=1)
![](https://i2.wp.com/cdnb.artstation.com/p/assets/images/images/014/588/415/large/amit-ginni-patpatia-highresscreenshot00004.jpg?w=1080&ssl=1)
![](https://i1.wp.com/cdna.artstation.com/p/assets/images/images/014/588/554/large/amit-ginni-patpatia-highresscreenshot00007.jpg?w=1080&ssl=1)
I hope you learned something. Feel free to share, like or contact me. Easiest method is to contact me on linkedin or artstation.