Mapping/Lights

From UFO:AI
< Mapping
Revision as of 15:32, 11 June 2010 by H-hour (talk | contribs) (Reverted edits by H-hour (Talk) to last revision by Ghosta)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Day and night lighting

As of revision 15024, the lightmaps for day and night maps are stored in the same bsp. You do not have to set the lighting in the worldspawn anymore - the compiler will do this automatically.

Surface lights

  • Mark the face that should emit light, open the surface inspector (s), tick the light checkbox and enter the light value in the value field at the bottom of the surface inspector. Use values ~10000.

light entity

  • _color
color for the light RGB - this value must be set - otherwise the light is ignored
  • light
intensity a value between 1 and 255
  • origin
the position of the light in the map (is set if you create/move your light)
  • classname
light

Warning Light entities only work at night by default. If you want to make them emit light by day as well, you must check the day checkbox on the entity inspector.

General

Area lights do not exist in UFO:AI. If you are mapping random map parts, you should read the suggestions for lights in the articles about random map parts.