Frictional Games Forum (read-only)

Full Version: How to make good pointlights ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
So yeah, I've seen some people having trouble using pointlights including myself. Especially darkness.
How do I make natural darkness ? (Not pitchblack darkness)
(02-03-2013, 05:48 AM)No Author Wrote: [ -> ]So yeah, I've seen some people having trouble using pointlights including myself. Especially darkness.
How do I make natural darkness ? (Not pitchblack darkness)
you don't use a pointlight to make darkness. You make darkness natural using a boxlight.
(02-03-2013, 05:58 AM)JustAnotherPlayer Wrote: [ -> ]
(02-03-2013, 05:48 AM)No Author Wrote: [ -> ]So yeah, I've seen some people having trouble using pointlights including myself. Especially darkness.
How do I make natural darkness ? (Not pitchblack darkness)
you don't use a pointlight to make darkness. You make darkness natural using a boxlight.

But some maps use pointlight for darkness.

What RGB should I use for darkness ?
A dark pointlight (0,0,0,0) is pretty much useless. I have no clue why they're spammed throughout FG's prison levels. You can however, "diffuse" light intensity/color to make it look much more realistic and natural.

For example:

You have a hole in a ceiling. For simplicity's sake, lets assume its creating a yellowish/brownish light. You can have one pointlight directly under the light source. Because of its location, it will have the highest intensity and color definition. It could be colored to a light brown (0.5,0.4,0.3,0).

But, it looks strange having just that one light then darkness all around it. You can add additional point lights around the edge, with a darker brown color (0.3, 0.2, 0.1, 0). Finally, you can add one last color of point light (again around the edge), an even darker brown (0.2, 0.1, 0, 0).

Try something like that. Idk.
(02-03-2013, 06:21 AM)andyrockin123 Wrote: [ -> ]A dark pointlight (0,0,0,0) is pretty much useless. I have no clue why they're spammed throughout FG's prison levels.

Maybe to make it darker, perhaps ?
(02-03-2013, 06:28 AM)No Author Wrote: [ -> ]Maybe to make it darker, perhaps ?

Again, that's not how the lighting works. 0,0,0 is the minimum value (pitch black). My guess is that the area was originally going to be brighter, but it was changed later in development.
I'm pretty sure the torches on the wall are connected to the black pointlights, so that when the player lights up the torch with a tinderbox, the pointlight will become a bit brighter and a bit brown/orange-ish. It makes the lighting look a lot better.
(02-03-2013, 06:39 AM)NaxEla Wrote: [ -> ]I'm pretty sure the torches on the wall are connected to the black pointlights, so that when the player lights up the torch with a tinderbox, the pointlight will become a bit brighter and a bit brown/orange-ish. It makes the lighting look a lot better.

Does that have to use script ?
(02-03-2013, 06:43 AM)No Author Wrote: [ -> ]
(02-03-2013, 06:39 AM)NaxEla Wrote: [ -> ]I'm pretty sure the torches on the wall are connected to the black pointlights, so that when the player lights up the torch with a tinderbox, the pointlight will become a bit brighter and a bit brown/orange-ish. It makes the lighting look a lot better.

Does that have to use script ?

Nope. In the properties for a lamp entity, you can add a ConnectedLight. The light will increase/decrease in colour as the lamp is turned on/off.
Thanks for the reply. I'll try it when I'm level editing.
Pages: 1 2