Skybox prop and displacement lighting

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,300
974
I'm using rock props and details on displacements in the skybox in several maps, and I've always had odd lightning with them - rocks are lit by ambient lighting from beneath very strongly, and displacements are nearly pitch black when facing away from the sun cast direction (I have tree materials on displacements).
I've tried nodrawing the bottom face of the skybox to no avail, as well as putting a blocklight brush under the map in the skybox, yet prop lightning doesn't seem to change at all. I can't think of any way that I might fix the displacement lighting either, short of using ghost omnilights/spotlights - is there any better way?

Edit:
I've fixed the displacement lighting by turning them into propper models and setting 'ignore surface normals' - ambient lighting on the rocks is an issue still, though
 
Last edited:

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,697
2,581
It would help if you posted some pictures of what you mean. Lighting can go haywire if your map is leaking, and the business with the props might be a symptom of not using -staticproplighting, but without pictures I can only take a stab in the dark.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,300
974
It would help if you posted some pictures of what you mean. Lighting can go haywire if your map is leaking, and the business with the props might be a symptom of not using -staticproplighting, but without pictures I can only take a stab in the dark.
Apologies, I completely forgot about screenshots. I always compile with -staticproppolys/etc and there isn't a leak, the issue is just that I've got strong ambient lighting on some props. I've partially mitigated the issue with displacements underneath them but it hasn't solved it completely. The first image shows a prop with the blue tint from underneath, while the second shows what one of my rocks without the issue looks like.
upload_2021-9-19_9-7-42.png
upload_2021-9-19_9-8-0.png
I can upload more images if these aren't quite clear enough.
 

Cyberen

L3: Member
Mar 30, 2021
143
30
Did you change the lighting origin to an info_target? Maybe if you move that target around it will look better.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,300
974
the blue lighting from underneath is from the skybox, you have that large gap where your map is, and so the skybox is filling that space with ambient light - if you want to avoid that blue tint, you have to block the light from underneath. I'd suggest a nodraw or toolsblack texture layer
That doesn't seem to change anything unfortunately - even with the brushes right up under the props, there's no change in the lighting