Frictional Games Forum (read-only)
Directed light question. - 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: Directed light question. (/thread-13807.html)



Directed light question. - Nevicar - 03-06-2012

Hello again everyone!

I have another question about the game, but this time about the lights. Basically we have a large room, with a tunnel that goes up into a glass panel. I have tried and tried, through reading the wiki and trying videos, but I cannot seem to figure out how to have a beam shine down from there and be the only light in the room.

Here's a view of the map to help try and understand: http://i.imgur.com/psZDD.jpg

TL;DR:

I want to have a beam of light shining down a well from a window, which is a sizable distance. It will have a monster walk through it in a scripted event and cast a shadow.


RE: Directed light question. - flamez3 - 03-06-2012

Spotlight?


RE: Directed light question. - palistov - 03-06-2012

Point-lights do not cast shadows. Use a Spot-light instead. Select the Lights tool (press 2), then on the right, select Spot-light from the drop-down menu. Then just point it downwards, and check 'Casts Shadows' in its properties, then modify it so it will reach the bottom of you floor.

Also, you can set a gobo map for added realism.


RE: Directed light question. - Nevicar - 03-06-2012

I've tried using a spot light but it never gives me the results I want, I can't get the actual light to go all the way down to the floor when I load the map and try to play it, unless you don't take the spotlight box and stretch it all the way down to the floor.

Am I missing something? Does there have to be a light behind the spotlight in order for it to actually do what I want it to do, or do I have to set the spotlight right up against the surface?

Edit: Also that picture isn't really true, that's what it looked like when I had my friend building it (he's building I'm scripting, and have no idea how the lights work) so he just slapped that on there.


RE: Directed light question. - Your Computer - 03-06-2012

Mess around with the settings of the spotlight until it reaches the ground (assuming you have it facing the ground). If you want light rays to be seen as well, then use billboards also.