Frictional Games Forum (read-only)
Light system (Point) - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-31.html)
+--- Thread: Light system (Point) (/thread-6002.html)



Light system (Point) - DIGI Byte - 01-01-2011

Ok, this is mainly to the Dev's and anyone else that's familiar with level editing.

Point lights suck!

I'm trying to use them but the light ALWAYS clips through everything, any surface that's within its radius catches the light, EVEN if its behind walls and so on
[attachment=978]
Seriously.... WHY!?

why is it cutting through? is there a fix for this?
am I doing something wrong?

and box light does some NASTY stuff too, the light in a box light, if aligned perfectly with a floor or a wall, the lighting tears with the texture


RE: Light system (Point) - Spooder Wekd - 01-02-2011

In the developer commentary, they mentioned this was to cut down on shadow rendering, which allows the game to run better. I cannot remember how they said they worked around it though! Tongue


RE: Light system (Point) - DIGI Byte - 01-02-2011

(01-02-2011, 02:02 AM)Spooder Wekd Wrote: In the developer commentary, they mentioned this was to cut down on shadow rendering, which allows the game to run better. I cannot remember how they said they worked around it though! Tongue

they shouldn't cast shadows, they should just not cast light in areas when something is blocking it

It needs to be fixed, one way or another


RE: Light system (Point) - Sexbad - 01-02-2011

Well, without shadow technology, how would lights know what is blocking them and what isn't? There's an HPL3 tech blog post about having a workaround for this sort of problem in the next game


RE: Light system (Point) - DIGI Byte - 01-02-2011

I still think the game engine needs another patch for us with custom stories... to bring it too 1.35
fix/enhance shadow casting for spotlight
enable shadow and light render clipping for point light
weapons and hot-keys defined in a custom stories settings
Gui interfaces for player interaction

It wont affect the main campaign, the point lights should have a new tick-box enabled feature for shadows and light render clipping after all not all point lights need it, same goes for box light... if you alight it with a wall or floor perfectly... its going to have tearing between raw light and no light


RE: Light system (Point) - Spooder Wekd - 01-02-2011

(01-02-2011, 02:51 AM)DIGI Byte Wrote: they shouldn't cast shadows, they should just not cast light in areas when something is blocking it

That is EXACTLY what a shadow is...
(01-02-2011, 03:04 AM)Lee Wrote: Well, without shadow technology, how would lights know what is blocking them and what isn't?

The same way that an object can me solid or not. If there is a class for walls and it is not included in the shadow drawing function, then they just won't cast shadows...