No lightning

popcorp

L1: Registered
Apr 6, 2014
7
0
Hello again, i have a problem

When i compile a map with VBSP and VRAD checked, i have a map with lightning, but if i include VVIS for compilation, my map is pitch black and only Props can be seen. (i compile with both LDR and HDR)

Any ideas what's the cause of this? Compile logs didn't spot any errors.
 

wareya

L420: High Member
Jun 17, 2012
493
191
Do you have a light_environment entity and skybox brushes?
Does geometry in a 3d skybox cover your level?
 

popcorp

L1: Registered
Apr 6, 2014
7
0
Do you have a light_environment entity and skybox brushes?
Does geometry in a 3d skybox cover your level?

yes, i said everything works fine, got lights, light_spots, light_environment and skybox working when map is compiled without VVIS
 

wareya

L420: High Member
Jun 17, 2012
493
191
Do you have a 3D skybox? When vrad casts light, it merges the 3D sky with the level's normal play area, so you can get shadows being cast between the two, and if you have a 3D sky with geometry that overlaps the play area, it'll block the light. But, when VVIS isn't compiled, the 3D sky isn't treated like a 3D sky, so that doesn't happen, so such broken levels get lit. That's why I asked about the skybox covering the level not whether it works.
 

popcorp

L1: Registered
Apr 6, 2014
7
0
Do you have a 3D skybox? When vrad casts light, it merges the 3D sky with the level's normal play area, so you can get shadows being cast between the two, and if you have a 3D sky with geometry that overlaps the play area, it'll block the light. But, when VVIS isn't compiled, the 3D sky isn't treated like a 3D sky, so that doesn't happen, so such broken levels get lit. That's why I asked about the skybox covering the level not whether it works.

Ok, i think i have such areas on my map, i'll re-make skybox and report later, thanks