Author Topic: lighting  (Read 1990 times)

MonkeyRocker

  • PGP
  • Posts: 6
lighting
« on: August 15, 2004, 11:42:51 AM »
i was woundering how to make lights cast different colors and flash.... if it has something to do with light value can u make a chart or something to show what light value means what. Thanks

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: lighting
« Reply #1 on: August 15, 2004, 06:30:27 PM »
Surface lights automatically emit the color of the surface (so if you make a red texture emit light, it will be red light).  You can also make light entities.  I believe you use "color" "r g b" to set the color, the rgb values range from 0.0 to 1.0.  "Style" makes lights flash - there are a few selections to choose from.  I don't recall offhand, but I'm sure searching around on google will git you the answers you need.  Be careful when using styled lights because:
a) It can be annoying to have blinking lights everywhere.
b) Each time the light on a surface changes, the engine has to re-upload the lightmap to the graphics card, which can cause a big framerate hit.
c) There's a hard coded limit to the number of different light styles that can be on a single surface.

IronFist

  • Autococker
  • Posts: 1304
_
« Reply #2 on: August 16, 2004, 10:35:39 AM »
Post removed
« Last Edit: July 25, 2010, 10:04:37 PM by IronFist »

MonkeyRocker

  • PGP
  • Posts: 6
Re: lighting
« Reply #3 on: August 19, 2004, 10:36:40 AM »
Thanks guys

MonkeyRocker

  • PGP
  • Posts: 6
Re: lighting
« Reply #4 on: August 19, 2004, 11:21:47 AM »
um... what is the key and stuff for the light color cause i dont get it. like say i want a blue light what do i type in key and the value.

IronFist

  • Autococker
  • Posts: 1304
_
« Reply #5 on: August 19, 2004, 03:55:25 PM »
Post removed
« Last Edit: July 25, 2010, 10:04:18 PM by IronFist »