Shadow Glitch

XEnderFaceX

F1 Fan
Aug 18, 2015
329
100
Hi

So, i built a Sentry above Reds Spawnroom, and somehow you can see the shadows..

Why? Can i avoid this?
 

Attachments

  • 20170924182005_1.jpg
    20170924182005_1.jpg
    187.5 KB · Views: 165

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
You can't. It's part (but not actually an intended feature) of the current Source Engine. CS:GO, for example, got rid of such things because it now uses dynamic shadows (a.k.a. the shadows appear only when models are exposed to the sunlight). You could change the angles of the shadow_control entity but it's not a solution because you already set a specific angle and because the shadows may appear somewhere else.
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
543
Use entity info_no_dynamic_shadow and pick the faces you want no shadows to be cast for. I use this in many of my maps where there are 2 levels on top of eachothers and route downside.

@MOCOLONI just fyi too.
 

iiboharz

eternally tired
aa
Nov 5, 2014
858
1,292
This particularly happens though when shadows are being cast against thin brushes. Thin walls or floors are usually the culprit here. Keeping your walls or floors at least 8 units thick should fix this.
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
543
Its not about thickness at all cases, its about the brush structrure and light_environment angle affects too. But that entity was added for a reason, so the shadows wont come down through the floor if someone is above the player in 2nd floor.

It isnt always thickness that matters, you can even have 32 thick brush and it might still cast the shadow underneath at the wall in downstairs. This happens mostly with ramps and brushes that arent covering top side of the walls, but kinda meet at the same height and not the ceiling going top of the wall brush.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,699
2,581
CSGO does have indoor shadows, actually; they're just nondescript blobs like in Mario 64 and such. They must use slightly different tech or something because I've never heard of the game having this issue.
 

henke37

aa
Sep 23, 2011
2,075
515
It's one of the great shames of the source engine. It's a bug they never got around to fixing and instead went to the trouble of building a system to hide the effects of it in obvious spots.
 

XEnderFaceX

F1 Fan
Aug 18, 2015
329
100
Use entity info_no_dynamic_shadow and pick the faces you want no shadows to be cast for. I use this in many of my maps where there are 2 levels on top of eachothers and route downside.

@MOCOLONI just fyi too.
Thank you it Worked! :)
 

Attachments

  • 20170925122949_1.jpg
    20170925122949_1.jpg
    220.9 KB · Views: 133