Lighting

From Red Eclipse Wiki
Jump to: navigation, search

Lighting is an entity that can be added to a map in the editing mode.

Creating a Light

Creating A Spherical Light Entity: Open the Console with the Tilde Key (~) or Forward Slash (/)...

/newent light 300 180 180 180

...This will create a Light Entity with a radius of 300 and Red Green and Blue Values of 180.


Once an entity is created, its parameters can be changed by highlighting the Entity, then; pressing the Period Key to enter the desired setting through /entset, or... Holding the corresponding Number Key to the parameter you wish to change while scrolling the Mouse Scroll Wheel.

To Move and Entity, click the face corresponding to the axis you wish to move it on with the Left Mouse Button and Drag.


Once you have created a Light Entity you can create a lightmap texture for your map by using the calclight command

/calclight 

or press the F3 shortcut key.


If you find that calclight takes too long due to the detail in your map, raise the lightprecision to speed up calculating.

/lightprecision 256


To hide the lightmap and continue editing your map turn on fullbright mode

/fullbright 1

or press the shotcut key "B"


To change the base ambient light color for your map (shadow color)use the /ambient command. The default ambient is dark grey

/ambient 25 25 25

Calculating Lightmaps

/fullbright # toggles the lightmap on/off
/calclight calculates the lightmap (requires at least 1 light in the map)
/ambient RR GG BB sets the base lighting for the map (shadow color)

Default: 25 25 25

Max: 255 255 255
/lightprecision RR GG BB sets the resolution of the lightmap textures contained withing the .mpz map file .This setting greatly effects the size of the map. It is recommended that you raise this setting to keep the number of lightmap textures under 3.
/lightlod # sets the level of detail for the lightmap. A higher number creates sharper shadows.

Lighting Tips

  • Lights should come with accompanying geometry or mapmodels, i.e. put light entities near physical lights.
  • Lighting should be used to make textures more vibrant: create some contrast (within reason)
  • Large lights will take less time and less disk space than using more small lights to cover the same area.
  • Try to use as high of a lightprecision as reasonable: this saves disk space and reduces rendering times.
  • To keep lightprecision high, change the blurr value to 1 or 2 to un-pixelize the shadow lines.
  • While dark areas may look good, the primary purpose of a map is to be played. Consider raising the ambient light amount to avoid dark spots.