Digital Paint Discussion Board

Development => Mapping => Topic started by: MonkeyRocker on August 15, 2004, 01:42:51 PM

Title: lighting
Post by: MonkeyRocker on August 15, 2004, 01:42:51 PM
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
Title: Re: lighting
Post by: jitspoe on August 15, 2004, 08: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.
Title: _
Post by: IronFist on August 16, 2004, 12:35:39 PM
Post removed
Title: Re: lighting
Post by: MonkeyRocker on August 19, 2004, 12:36:40 PM
Thanks guys
Title: Re: lighting
Post by: MonkeyRocker on August 19, 2004, 01:21:47 PM
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.
Title: _
Post by: IronFist on August 19, 2004, 05:55:25 PM
Post removed