Lighting error after creation of 3D skybox

So I have a very simple atmospheric map I am making and everything was going extremely well until I created my 3D skybox. This is the first 3D one I have ever made and once I created it, it turned out just fine but my actual map sudden suffered a major problem when I recompiled to test. It seems that my light_env, which is the only light I have or need in my map, lights the 3D skybox and everything in it, but no longer lights my actual map. When I compile it, the map is all black and at first I thought it was a texture error but my flashlight lights everything up still and adding simple light entities confirmed this. It just happens that the map itself is pitch black because the light_env no longer shines into the map, only in the 3d skybox.

Is there some screw up I did that can cause this? Is it a common problem? I tried copying my env_sun and light_env to the 3D skybox so both my map and skybox had them in it but this did not fix the problem. If needed I can post pics and compile logs.

Compile log.

Here it is.



materialPath: c:\program files\steam\steamapps\jasper\half-life 2 episode two\ep2\materials
Loading C:\Documents and Settings\JD\Desktop\Source Modding\Source Mapping\c17_rain.vmf
Could not locate 'GameData' key in c:\program files\steam\steamapps\jasper\half-life 2 episode two\ep2\gameinfo.txt
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)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
writing C:\Documents and Settings\JD\Desktop\Source Modding\Source Mapping\c17_rain.prt...Building visibility clusters...
done (0)
Creating default LDR cubemaps for env_cubemap using skybox materials:
   skybox/sky_day01_01_hdr*.vmt
 ! Run buildcubemaps in the engine to get the correct cube maps.
Creating default HDR cubemaps for env_cubemap using skybox materials:
   skybox/sky_day01_01_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...
done (0) (10698 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Water found with no water_lod_control entity, creating a default one.
Compacting texture/material tables...
Reduced 42 texinfos to 22
Reduced 15 texdatas to 12 (416 bytes to 307)
Writing C:\Documents and Settings\JD\Desktop\Source Modding\Source Mapping\c17_rain.bsp
1 second elapsed



2 threads
reading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
reading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.prt
  17 portalclusters
  27 numportals
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 0 visible clusters (0.00%)
Total clusters visible: 257
Average clusters visible: 15
Building PAS...
Average clusters audible: 15
visdatasize:242  compressed from 272
writing c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
0 seconds elapsed



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

Loading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
336 faces
3391485 square feet [488373888.00 square inches]
6 Displacements
606 Square Feet [87379.88 Square Inches]
336 patches before subdivision
2328 patches after subdivision
2 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 160436, max 219
transfer lists:   1.2 megs
0...1...2...3...4...5...6...7...8...9...10	Bounce #1 added RGB(1, 1, 1)
Build Patch/Sample Hash Table(s).....Done<0.0013 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 0 (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                   6/1024          288/49152    ( 0.6%) 
brushes                 26/8192          312/98304    ( 0.3%) 
brushsides             156/65536        1248/524288   ( 0.2%) 
planes                 134/65536        2680/1310720  ( 0.2%) 
vertexes               381/65536        4572/786432   ( 0.6%) 
nodes                  402/65536       12864/2097152  ( 0.6%) 
texinfos                22/12288        1584/884736   ( 0.2%) 
texdata                 12/2048          384/65536    ( 0.6%) 
dispinfos                6/0            1056/0        ( 0.0%) 
disp_verts            1734/0           34680/0        ( 0.0%) 
disp_tris             3072/0            6144/0        ( 0.0%) 
disp_lmsamples        2351/0            2351/0        ( 0.0%) 
faces                  336/65536       18816/3670016  ( 0.5%) 
hdr faces                0/65536           0/3670016  ( 0.0%) 
origfaces               65/65536        3640/3670016  ( 0.1%) 
leaves                 409/65536       13088/2097152  ( 0.6%) 
leaffaces              330/65536         660/131072   ( 0.5%) 
leafbrushes            257/65536         514/131072   ( 0.4%) 
areas                    3/256            24/2048     ( 1.2%) 
surfedges             1632/512000       6528/2048000  ( 0.3%) 
edges                  895/256000       3580/1024000  ( 0.3%) 
LDR worldlights          2/8192          176/720896   ( 0.0%) 
HDR worldlights          0/8192            0/720896   ( 0.0%) 
leafwaterdata            1/32768          12/393216   ( 0.0%) 
waterstrips              0/32768           0/327680   ( 0.0%) 
waterverts               0/65536           0/786432   ( 0.0%) 
waterindices             0/65536           0/131072   ( 0.0%) 
cubemapsamples           1/1024           16/16384    ( 0.1%) 
overlays                 1/512           352/180224   ( 0.2%) 
LDR lightdata         [variable]       63488/0        ( 0.0%) 
HDR lightdata         [variable]           0/0        ( 0.0%) 
visdata               [variable]         242/16777216 ( 0.0%) 
entdata               [variable]        4535/393216   ( 1.2%) 
LDR ambient table      409/65536        1636/262144   ( 0.6%) 
HDR ambient table      409/65536        1636/262144   ( 0.6%) 
LDR leaf ambient       570/65536       15960/1835008  ( 0.9%) 
HDR leaf ambient       409/65536       11452/1835008  ( 0.6%) 
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/1682     ( 0.1%) 
pakfile               [variable]      212301/0        ( 0.0%) 
physics               [variable]       10698/4194304  ( 0.3%) 
physics terrain       [variable]        2380/1048576  ( 0.2%) 

Level flags = 0

Total triangle count: 700
Writing c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
14 seconds elapsed



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

Loading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
336 faces
3391485 square feet [488373888.00 square inches]
6 Displacements
606 Square Feet [87379.88 Square Inches]
336 patches before subdivision
2328 patches after subdivision
2 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 160436, max 219
transfer lists:   1.2 megs
0...1...2...3...4...5...6...7...8...9...10	Bounce #1 added RGB(1, 1, 1)
Build Patch/Sample Hash Table(s).....Done<0.0013 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 0 (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                   6/1024          288/49152    ( 0.6%) 
brushes                 26/8192          312/98304    ( 0.3%) 
brushsides             156/65536        1248/524288   ( 0.2%) 
planes                 134/65536        2680/1310720  ( 0.2%) 
vertexes               381/65536        4572/786432   ( 0.6%) 
nodes                  402/65536       12864/2097152  ( 0.6%) 
texinfos                22/12288        1584/884736   ( 0.2%) 
texdata                 12/2048          384/65536    ( 0.6%) 
dispinfos                6/0            1056/0        ( 0.0%) 
disp_verts            1734/0           34680/0        ( 0.0%) 
disp_tris             3072/0            6144/0        ( 0.0%) 
disp_lmsamples        2351/0            2351/0        ( 0.0%) 
faces                  336/65536       18816/3670016  ( 0.5%) 
hdr faces              336/65536       18816/3670016  ( 0.5%) 
origfaces               65/65536        3640/3670016  ( 0.1%) 
leaves                 409/65536       13088/2097152  ( 0.6%) 
leaffaces              330/65536         660/131072   ( 0.5%) 
leafbrushes            257/65536         514/131072   ( 0.4%) 
areas                    3/256            24/2048     ( 1.2%) 
surfedges             1632/512000       6528/2048000  ( 0.3%) 
edges                  895/256000       3580/1024000  ( 0.3%) 
LDR worldlights          2/8192          176/720896   ( 0.0%) 
HDR worldlights          2/8192          176/720896   ( 0.0%) 
leafwaterdata            1/32768          12/393216   ( 0.0%) 
waterstrips              0/32768           0/327680   ( 0.0%) 
waterverts               0/65536           0/786432   ( 0.0%) 
waterindices             0/65536           0/131072   ( 0.0%) 
cubemapsamples           1/1024           16/16384    ( 0.1%) 
overlays                 1/512           352/180224   ( 0.2%) 
LDR lightdata         [variable]       63488/0        ( 0.0%) 
HDR lightdata         [variable]       63488/0        ( 0.0%) 
visdata               [variable]         242/16777216 ( 0.0%) 
entdata               [variable]        4535/393216   ( 1.2%) 
LDR ambient table      409/65536        1636/262144   ( 0.6%) 
HDR ambient table      409/65536        1636/262144   ( 0.6%) 
LDR leaf ambient       570/65536       15960/1835008  ( 0.9%) 
HDR leaf ambient       570/65536       15960/1835008  ( 0.9%) 
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/1682     ( 0.1%) 
pakfile               [variable]      212301/0        ( 0.0%) 
physics               [variable]       10698/4194304  ( 0.3%) 
physics terrain       [variable]        2380/1048576  ( 0.2%) 

Level flags = 0

Total triangle count: 700
Writing c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
14 seconds elapsed



materialPath: c:\program files\steam\steamapps\jasper\half-life 2 episode two\ep2\materials
Loading C:\Documents and Settings\JD\Desktop\Source Modding\Source Mapping\c17_rain.vmf
Could not locate 'GameData' key in c:\program files\steam\steamapps\jasper\half-life 2 episode two\ep2\gameinfo.txt
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)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
writing C:\Documents and Settings\JD\Desktop\Source Modding\Source Mapping\c17_rain.prt...Building visibility clusters...
done (0)
Creating default LDR cubemaps for env_cubemap using skybox materials:
   skybox/sky_day01_01_hdr*.vmt
 ! Run buildcubemaps in the engine to get the correct cube maps.
Creating default HDR cubemaps for env_cubemap using skybox materials:
   skybox/sky_day01_01_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...
done (0) (10994 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Water found with no water_lod_control entity, creating a default one.
Compacting texture/material tables...
Reduced 42 texinfos to 22
Reduced 15 texdatas to 12 (416 bytes to 307)
Writing C:\Documents and Settings\JD\Desktop\Source Modding\Source Mapping\c17_rain.bsp
1 second elapsed



2 threads
reading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
reading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.prt
  17 portalclusters
  27 numportals
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10Optimized: 0 visible clusters (0.00%)
Total clusters visible: 257
Average clusters visible: 15
Building PAS...
Average clusters audible: 15
visdatasize:242  compressed from 272
writing c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
0 seconds elapsed



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

Loading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
336 faces
3391485 square feet [488373888.00 square inches]
6 Displacements
606 Square Feet [87379.88 Square Inches]
336 patches before subdivision
2328 patches after subdivision
2 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 160436, max 219
transfer lists:   1.2 megs
0...1...2...3...4...5...6...7...8...9...10	Bounce #1 added RGB(1, 1, 1)
Build Patch/Sample Hash Table(s).....Done<0.0021 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 0 (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                   6/1024          288/49152    ( 0.6%) 
brushes                 27/8192          324/98304    ( 0.3%) 
brushsides             162/65536        1296/524288   ( 0.2%) 
planes                 134/65536        2680/1310720  ( 0.2%) 
vertexes               381/65536        4572/786432   ( 0.6%) 
nodes                  402/65536       12864/2097152  ( 0.6%) 
texinfos                22/12288        1584/884736   ( 0.2%) 
texdata                 12/2048          384/65536    ( 0.6%) 
dispinfos                6/0            1056/0        ( 0.0%) 
disp_verts            1734/0           34680/0        ( 0.0%) 
disp_tris             3072/0            6144/0        ( 0.0%) 
disp_lmsamples        2351/0            2351/0        ( 0.0%) 
faces                  336/65536       18816/3670016  ( 0.5%) 
hdr faces                0/65536           0/3670016  ( 0.0%) 
origfaces               65/65536        3640/3670016  ( 0.1%) 
leaves                 409/65536       13088/2097152  ( 0.6%) 
leaffaces              330/65536         660/131072   ( 0.5%) 
leafbrushes            265/65536         530/131072   ( 0.4%) 
areas                    3/256            24/2048     ( 1.2%) 
surfedges             1632/512000       6528/2048000  ( 0.3%) 
edges                  895/256000       3580/1024000  ( 0.3%) 
LDR worldlights          2/8192          176/720896   ( 0.0%) 
HDR worldlights          0/8192            0/720896   ( 0.0%) 
leafwaterdata            1/32768          12/393216   ( 0.0%) 
waterstrips              0/32768           0/327680   ( 0.0%) 
waterverts               0/65536           0/786432   ( 0.0%) 
waterindices             0/65536           0/131072   ( 0.0%) 
cubemapsamples           1/1024           16/16384    ( 0.1%) 
overlays                 1/512           352/180224   ( 0.2%) 
LDR lightdata         [variable]       63488/0        ( 0.0%) 
HDR lightdata         [variable]           0/0        ( 0.0%) 
visdata               [variable]         242/16777216 ( 0.0%) 
entdata               [variable]        4535/393216   ( 1.2%) 
LDR ambient table      409/65536        1636/262144   ( 0.6%) 
HDR ambient table      409/65536        1636/262144   ( 0.6%) 
LDR leaf ambient       570/65536       15960/1835008  ( 0.9%) 
HDR leaf ambient       409/65536       11452/1835008  ( 0.6%) 
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/1682     ( 0.1%) 
pakfile               [variable]      212301/0        ( 0.0%) 
physics               [variable]       10994/4194304  ( 0.3%) 
physics terrain       [variable]        2380/1048576  ( 0.2%) 

Level flags = 0

Total triangle count: 700
Writing c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
15 seconds elapsed



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

Loading c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
336 faces
3391485 square feet [488373888.00 square inches]
6 Displacements
606 Square Feet [87379.88 Square Inches]
336 patches before subdivision
2328 patches after subdivision
2 direct lights
0...1...2...3...4...5...6...7...8...9...100...1...2...3...4...5...6...7...8...9...10transfers 160436, max 219
transfer lists:   1.2 megs
0...1...2...3...4...5...6...7...8...9...10	Bounce #1 added RGB(1, 1, 1)
Build Patch/Sample Hash Table(s).....Done<0.0016 sec>
0...1...2...3...4...5...6...7...8...9...10FinalLightFace Done
0 of 0 (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                   6/1024          288/49152    ( 0.6%) 
brushes                 27/8192          324/98304    ( 0.3%) 
brushsides             162/65536        1296/524288   ( 0.2%) 
planes                 134/65536        2680/1310720  ( 0.2%) 
vertexes               381/65536        4572/786432   ( 0.6%) 
nodes                  402/65536       12864/2097152  ( 0.6%) 
texinfos                22/12288        1584/884736   ( 0.2%) 
texdata                 12/2048          384/65536    ( 0.6%) 
dispinfos                6/0            1056/0        ( 0.0%) 
disp_verts            1734/0           34680/0        ( 0.0%) 
disp_tris             3072/0            6144/0        ( 0.0%) 
disp_lmsamples        2351/0            2351/0        ( 0.0%) 
faces                  336/65536       18816/3670016  ( 0.5%) 
hdr faces              336/65536       18816/3670016  ( 0.5%) 
origfaces               65/65536        3640/3670016  ( 0.1%) 
leaves                 409/65536       13088/2097152  ( 0.6%) 
leaffaces              330/65536         660/131072   ( 0.5%) 
leafbrushes            265/65536         530/131072   ( 0.4%) 
areas                    3/256            24/2048     ( 1.2%) 
surfedges             1632/512000       6528/2048000  ( 0.3%) 
edges                  895/256000       3580/1024000  ( 0.3%) 
LDR worldlights          2/8192          176/720896   ( 0.0%) 
HDR worldlights          2/8192          176/720896   ( 0.0%) 
leafwaterdata            1/32768          12/393216   ( 0.0%) 
waterstrips              0/32768           0/327680   ( 0.0%) 
waterverts               0/65536           0/786432   ( 0.0%) 
waterindices             0/65536           0/131072   ( 0.0%) 
cubemapsamples           1/1024           16/16384    ( 0.1%) 
overlays                 1/512           352/180224   ( 0.2%) 
LDR lightdata         [variable]       63488/0        ( 0.0%) 
HDR lightdata         [variable]       63488/0        ( 0.0%) 
visdata               [variable]         242/16777216 ( 0.0%) 
entdata               [variable]        4535/393216   ( 1.2%) 
LDR ambient table      409/65536        1636/262144   ( 0.6%) 
HDR ambient table      409/65536        1636/262144   ( 0.6%) 
LDR leaf ambient       570/65536       15960/1835008  ( 0.9%) 
HDR leaf ambient       570/65536       15960/1835008  ( 0.9%) 
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/1682     ( 0.1%) 
pakfile               [variable]      212301/0        ( 0.0%) 
physics               [variable]       10994/4194304  ( 0.3%) 
physics terrain       [variable]        2380/1048576  ( 0.2%) 

Level flags = 0

Total triangle count: 700
Writing c:\documents and settings\jd\desktop\source modding\source mapping\c17_rain.bsp
15 seconds elapsed


Remove your scaled down reference geometry, they’re casting a shadow on the rest of the map.

I don’t think there is any left but I’ll take a really close look.

[editline]07:41PM[/editline]

Right I found the problem. It was not a shadow cast by reference geometry, it was a shadow cast by one of the long cables on the skybox citadel model I had. I was at JUST the perfect angle that it covered my world. I can’t beleive it lol