Real-time Lighting vs Lightmap

From Reflex Wiki
Jump to: navigation, search
Reflex Real-time Lighting
by Devil
Synopsis
When lighting a map it is important to be aware of what lighting methods are being used to brighten up the spaces, since real-time lighting, though beautiful, comes at a performance cost.

Reflex has two main modes of lighting: real time and baked. Whenever you edit your map you are in real-time mode. Real-time lighting shown in the following screenshot from the map Deflex.

Real-time lighting

Real-time lighting is always at a fixed brightness level. It does not matter if you use artificial lighting or ambient lighting. The lighting will perform practically the same no matter what you attempt to do. Even if you build a small box and put yourself inside the box you will still be able to see everything perfectly. This is because real-time lighting is very handy for map editing so you can see everything and every where in your map. You can still have real-time shadow generation but it is not as dramatic as a baked lightmap would provide.

Baked Lighting

A built lightmap is also known as baked lighting. You build a lightmap using the console command: r_lm_build. If you have absolutely no light sources (artificial or ambient outside light) in your map and you bake a lightmap everything should be pitch black. You cannot even see the gun in front of you. That is the definition of a well baked lightmap. Lighting is usually one of the last steps in map building because it can cause new map designers the most amount of trial and error. You will never likely design a map with perfect lighting your first attempt. You will have to build the lightmap, see what lights need to be moved or placed, then rebuild the lightmap. You will find yourself repeating that process over and over until you get it just how you want the map to appear to a player. Ensure you have at least some lighting prior to building your lightmap either by using outside ambient light or artificial lights, otherwise you will not be able to see anything when the lightmap build completes.

Reflex Baked Lightmap

This is an example of exactly the same location shown after baking the lightmap. This is a great example of what a baked lightmap looks like in dark conditions with inadequate lights. The screenshot is dark on purpose to show that only baked lightmaps can achieve darker mood lighting that real time lighting cannot provide.

.light files and map downloads

Including baked lightmaps, via .light file, can help speed up connection times otherwise real-time lighting has to be generated by each players GPU. Real-time lighting is slightly more intensive than a built lightmap.