Lighting Question
HellBringer
Join Date: 2004-02-17 Member: 26641Members
I have a couple over head lights with a light cone and a light_spot. so when u walk under them your char model and all that lights up while ur under it. I made some other ones that look up at an agle at all the settings are the same got the target_info and all that up and at an angle theres light on the ceiling but when i walk into the lights path i dont get lit up or nething.... any ideas... also i put in a func_resource w/e and in the map it shows up as a rine rt and a alien rt on top of eachother... incomplete map problems?
Comments
The resource towers are placed automatically at map load. The marine tower goes on the nozzle closest to the command chair; the alien tower on the nozzle nearest the starting hive. If you have less than two nozzle sthen they both go on the same one.
The BSP file doesn't store the spotlight's path or cone, and the engine doesn't try to recreate lighting in 3D; the interior of rooms doesn't have any light information--the walls are "painted" with light by the compiler, and the engine uses that information at runtime.
The engine only knows how bright the surfaces of the level (floors, walls, ceiling) are, so only spotlights shining straight down on a floor will light most models correctly. Skulks will be lit the same as whatever surface they are climbing on -- floor, wall, or ceiling -- so they will be lit correctly in more cases.