Frictional Games Forum (read-only)
[LVL ED] Shadows don't work - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [LVL ED] Shadows don't work (/thread-25626.html)



Shadows don't work - The chaser - 07-07-2014

Hello everyone!

I'm stumbling upon a problem. I have a quite big spotlight (60 Radius, 90 FOV) which illuminates this sort of garden. The problem is, the walls are planes; and light, although it creates shadows, goes through... here's a screenie to show the problem:

http://imgur.com/c7iVayl

The spotlight is set to cast shadows, the planes are set to cast shadows too.
EVERYTHING should cast shadows...

Any ideas?


RE: Shadows don't work - Mudbill - 07-07-2014

I think that is actually a common issue with the engine. Light usually passes through objects it shouldn't. I'm afraid I don't know what to do about it, but perhaps someone do :/


RE: Shadows don't work - DnALANGE - 07-07-2014

Make several smaller ones...
HPL2... some parts could be really improved, witch i'm sure of FG guys will have in HPL3


RE: Shadows don't work - Daemian - 07-07-2014

First, press G in your editor to remove that atrocious grid xD
As for the spotlight, I'm pretty sure the light goes through planes only in the editor.
Try in-game how it looks.

here:
Spoiler below!
[Image: ae5vagersa.jpg]
In-game I see a black square on the floor.


RE: Shadows don't work - The chaser - 07-08-2014

Yeah, here are 2 new images:

I've reduced to spotlight radius, although it's weaker, it doesn't go through and casts shadows on the planes, I guess that's something...

This is what happens if the previous setting were kept:

http://imgur.com/dDvhNay
http://imgur.com/G2udXo8

*The skybox isn't definitive

About planes not casting shadows, I have a question:

If light finds a static object with no texture at all will it cast shadows?


RE: Shadows don't work - Romulator - 07-08-2014

(07-08-2014, 02:38 PM)The chaser Wrote: About planes not casting shadows, I have a question:

If light finds a static object with no texture at all will it cast shadows?

I don't know about this one, but one trick I use is get the plane_black from the technical static object and place that wherever I don't need light, specially through a plane. Just putting it around 0.02 behind the plane will cast a shadow, and the back is invisible to the view 180 degrees behind.

It would work well here I believe, because you're using a plane for a wall.


RE: Shadows don't work - The chaser - 07-08-2014

Stays the same... there's still that light from beneath the walls... Nice idea, though.


RE: Shadows don't work - Daemian - 07-08-2014

Are you sure? I used that plane_black.mat in my mod TheRaven to force the spotlights to cast shadows.
The black planes cut the light by facing the spotlight directly. In-game this black plane casts a shadow behind him.
Spoiler below!

[Image: 6vq4w5q34qw.jpg]
Maybe you didn't enable shadows on the black plane?

In-game
Spoiler below!
[Image: 3463g.jpg]