Map is dark - lights not working

Hi all

Having a strange problem… my env_light and normal lights are all placed correctly in Hammer but when the map is played everything is pitch black, except the skybox. The flashlight and other dynamic lights still work.

There are no leaks, or other errors. Here’s my compile log. I’m noticing the RGB values when vrad is calculating bounces are all 1,1,1. Not sure what the cause could be

Any ideas?




materialPath: E:\Steam\steamapps\common\Half-Life 2\ep2\materials
Loading C:\Users\TimTams\Documents\gm_flatgrass_tangled\gm_flatgrass_tangled.vmf
ConVarRef mat_reduceparticles doesn't point to an existing ConVar
Could not locate 'GameData' key in e:\steam\steamapps\common\half-life 2\ep2\gameinfo.txt
Patching WVT material: maps/gm_flatgrass_tangled/concrete/blendconcreterock001a_wvt_patch
Patching WVT material: maps/gm_flatgrass_tangled/nature/blendsandgrass008a_wvt_patch
Patching WVT material: maps/gm_flatgrass_tangled/dev/dev_blendmeasure_wvt_patch
fixing up env_cubemap materials on brush sides...
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Processing areas...done (0)
Building Faces...done (0)
Chop Details...done (0)
Find Visible Detail Sides...
Merged 3388 detail faces...done (0)
Merging details...done (0)
FixTjuncs...
PruneNodes...
WriteBSP...
done (1)
writing C:\Users\TimTams\Documents\gm_flatgrass_tangled\gm_flatgrass_tangled.prt...Building visibility clusters...
done (0)
Creating default LDR cubemaps for env_cubemap using skybox materials:
   skybox/militia_hdr*.vmt
 ! Run buildcubemaps in the engine to get the correct cube maps.
Creating default HDR cubemaps for env_cubemap using skybox materials:
   skybox/militia_hdr*.vmt
 ! Run buildcubemaps in the engine to get the correct cube maps.
Finding displacement neighbors...
Finding lightmap sample positions...
Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10
Building Physics collision data...
WARNING: Map using power 4 displacements, terrain physics cannot be compressed, map will need additional memory and CPU.
done (0) (2727758 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9..Material NATURE/BLENDSANDGRASS008A uses unknown detail object type coastline_grass01!
Material NATURE/BLENDSANDGRASS008A uses unknown detail object type coastline_grass01!
Material NATURE/BLENDDIRTDIRT001A uses unknown detail object type citygrass01!
Material NATURE/BLENDSANDGRASS008A uses unknown detail object type coastline_grass01!
Material NATURE/BLENDSANDGRASS008A uses unknown detail object type coastline_grass01!
Material NATURE/BLENDSANDGRASS008A uses unknown detail object type coastline_grass01!
Material NATURE/BLENDSANDGRASS008A uses unknown detail object type coastline_grass01!
Material NATURE/BLENDDIRTDIRT001A uses unknown detail object type citygrass01!
Material NATURE/BLENDDIRTDIRT001A uses unknown detail object type citygrass01!
Material NATURE/BLENDDIRTDIRT001A uses unknown detail object type citygrass01!
Material NATURE/BLENDDIRTDIRT001A uses unknown detail object type citygrass01!
.10
Water found with no water_lod_control entity, creating a default one.
Compacting texture/material tables...
Reduced 4151 texinfos to 2074
Reduced 309 texdatas to 243 (16121 bytes to 13157)
Writing C:\Users\TimTams\Documents\gm_flatgrass_tangled\gm_flatgrass_tangled.bsp
5 seconds elapsed






4 threads
reading c:\users	imtams\documents\gm_flatgrass_tangled\gm_flatgrass_tangled.bsp
reading c:\users	imtams\documents\gm_flatgrass_tangled\gm_flatgrass_tangled.prt
 528 portalclusters
2401 numportals
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 315 visible clusters (0.55%)
Total clusters visible: 57084
Average clusters visible: 108
Building PAS...
Average clusters audible: 178
visdatasize:35965  compressed from 76032
writing c:\users	imtams\documents\gm_flatgrass_tangled\gm_flatgrass_tangled.bsp
12 minutes, 26 seconds elapsed






[Reading texlights from 'lights.rad']
[48 texlights parsed from 'lights.rad']


Loading c:\users	imtams\documents\gm_flatgrass_tangled\gm_flatgrass_tangled.bsp
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
Patch Sample Radius Clamped!
19848 faces
5 degenerate faces
47057228 square feet [6776240640.00 square inches]
27 Displacements
2326484 Square Feet [335013728.00 Square Inches]
19843 patches before subdivision
262707 patches after subdivision
447 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 94896010, max 4426
transfer lists: 724.0 megs
0...1...2...3...4...5...6...7...8...9...10	Bounce #1 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #2 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #3 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #4 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #5 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #6 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #7 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #8 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #9 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #10 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #11 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #12 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #13 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #14 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #15 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #16 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #17 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #18 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #19 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #20 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #21 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #22 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #23 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #24 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #25 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #26 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #27 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #28 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #29 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #30 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #31 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #32 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #33 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #34 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #35 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #36 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #37 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #38 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #39 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #40 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #41 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #42 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #43 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #44 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #45 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #46 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #47 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #48 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #49 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #50 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #51 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #52 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #53 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #54 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #55 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #56 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #57 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #58 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #59 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #60 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #61 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #62 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #63 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #64 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #65 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #66 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #67 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #68 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #69 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #70 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #71 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #72 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #73 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #74 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #75 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #76 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #77 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #78 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #79 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #80 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #81 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #82 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #83 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #84 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #85 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #86 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #87 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #88 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #89 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #90 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #91 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #92 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #93 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #94 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #95 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #96 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #97 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #98 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #99 added RGB(1, 1, 1)
0...1...2...3...4...5...6...7...8...9...10	Bounce #100 added RGB(1, 1, 1)
Build Patch/Sample Hash Table(s).....Done<0.1206 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 45 (0% of) surface lights went in leaf ambient cubes.
0...1...2...3...4...5...6...7...8...9...10Writing leaf ambient...done
Ready to Finish


Object names       Objects/Maxobjs  Memory / Maxmem  Fullness 
------------       ---------------  ---------------  -------- 
models                  50/1024         2400/49152    ( 4.9%) 
brushes               3042/8192        36504/98304    (37.1%) 
brushsides           23669/65536      189352/524288   (36.1%) 
planes               12242/65536      244840/1310720  (18.7%) 
vertexes             33271/65536      399252/786432   (50.8%) 
nodes                 9169/65536      293408/2097152  (14.0%) 
texinfos              2074/12288      149328/884736   (16.9%) 
texdata                243/2048         7776/65536    (11.9%) 
dispinfos               27/0            4752/0        ( 0.0%) 
disp_verts            7803/0          156060/0        ( 0.0%) 
disp_tris            13824/0           27648/0        ( 0.0%) 
disp_lmsamples       84924/0           84924/0        ( 0.0%) 
faces                19848/65536     1111488/3670016  (30.3%) 
hdr faces                0/65536           0/3670016  ( 0.0%) 
origfaces            10497/65536      587832/3670016  (16.0%) 
leaves                9220/65536      295040/2097152  (14.1%) 
leaffaces            24534/65536       49068/131072   (37.4%) 
leafbrushes           9843/65536       19686/131072   (15.0%) 
areas                    4/256            32/2048     ( 1.6%) 
surfedges           141403/512000     565612/2048000  (27.6%) 
edges                86588/256000     346352/1024000  (33.8%) 
LDR worldlights        447/8192        39336/720896   ( 5.5%) 
HDR worldlights          0/8192            0/720896   ( 0.0%) 
leafwaterdata            4/32768          48/393216   ( 0.0%) 
waterstrips           2207/32768       22070/327680   ( 6.7%) 
waterverts               0/65536           0/786432   ( 0.0%) 
waterindices         42336/65536       84672/131072   (64.6%) 
cubemapsamples          14/1024          224/16384    ( 1.4%) 
overlays                 0/512             0/180224   ( 0.0%) 
LDR lightdata         [variable]    15645836/0        ( 0.0%) 
HDR lightdata         [variable]           0/0        ( 0.0%) 
visdata               [variable]       35965/16777216 ( 0.2%) 
entdata               [variable]      167156/393216   (42.5%) 
LDR ambient table     9220/65536       36880/262144   (14.1%) 
HDR ambient table     9220/65536       36880/262144   (14.1%) 
LDR leaf ambient     26581/65536      744268/1835008  (40.6%) 
HDR leaf ambient      9220/65536      258160/1835008  (14.1%) 
occluders                0/0               0/0        ( 0.0%) 
occluder polygons        0/0               0/0        ( 0.0%) 
occluder vert ind        0/0               0/0        ( 0.0%) 
detail props          [variable]           1/12       ( 8.3%) 
static props          [variable]           1/12862    ( 0.0%) 
pakfile               [variable]     1379434/0        ( 0.0%) 
physics               [variable]     2727758/4194304  (65.0%) 
physics terrain       [variable]           0/1048576  ( 0.0%) 


Level flags = 0


Total triangle count: 59099
Writing c:\users	imtams\documents\gm_flatgrass_tangled\gm_flatgrass_tangled.bsp
9 minutes, 3 seconds elapsed




For 1. env_light or light_environment?
For 2. Your displacements have some odd number or high number lightmap scale, find it and fix it.
For 3. Power of 4 displacements. I wouldn’t go beyond 3.

Also post a picture of the map in its current state (in game). The only other thing I can think of is a large brush surrounding the entire area.

You have degenerate faces, which can potentially cause this error. I think they can be fixed using the Hammer problem checker, so try using that first. Otherwise you’ll have to narrow it down with cordon.

Sorry, yeah light_environment is what I meant

I fixed the lightmap scale, it was at 512 which seems to be too high.

The displacement power can be 4 only it doesn’t compress, making the map file size larger and possibly slower to render, according to vrad

You were pretty much right, big brush, I’d moved my func_viscluster to world by accident :eng101:

thanks for the help! Here’s some screenshots:

credits to firegod for the skybox, freespace 13 for the wall and the original flatgrass

The bigger issue with power of 4 displacements is that they can start creating bad crashes/errors for no reason, which is why they’re not recommended.

Not really. If you use them properly you will never have any problems with them.