[Solved] Dark Areas

Avatar
iSpectra
49 Posts
Posted Jan 14, 2013
Hi there,

is it possible to darken specific areas of maps to a definable level?

Regards,
iSpectra

Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Jan 14, 2013
Replied 3 minutes later
Unfortunately it is not, although you can turn off all the lights there. Why do you need a definable level?
Avatar
Lpfreaky90
2,842 Posts
Posted Jan 14, 2013
Replied 3 hours later
you could try to mess around with fog_volumes and/or color correction in certain areas.
(though I'm not sure if fog_volumes actually work in portal 2)
Avatar
iSpectra
49 Posts
Posted Jan 27, 2013
Replied 12 days later
@Lpfreaky90; How exactly can I do that?
Avatar
ChickenMobile
2,460 Posts
Posted Jan 27, 2013
Replied 45 minutes later
According the wiki fog volumes are only available in L4d.

Color correction is a little more difficult to create and creating step by step instructions would probably take up a page. However it controls contrast, levels or colours of the whole visible screen and I guess this would be one of the better solutions as you can define what exact areas the color correction will affect - however it would be an illusion and not an actual light change.

Honestly if your map is not too complex and you only want to change the lights in certain areas I would just change the light level of the light entities through an output.
- Probably the best way to do this is to use a env_projectedtexture and then turn it off and turn on a dimmer env_projectedtexture.
- You can also change the pattern of a light through an output, however this light will then fill up the light entdata.

Remember HDR! Lights fade and dim depending on how bright an area is for the player.

Avatar
josepezdj
2,386 Posts
Posted Jan 28, 2013
Replied 15 hours later

ChickenMobile wrote:
According the wiki fog volumes are only available in L4d.

Correct, but if you actually try in Portal2 it seeems to be working... Check:

H1U7ITaqC6M#!

Avatar
Gemarakup
1,183 Posts
Posted Jan 28, 2013
Replied 22 minutes later
I think there is a tool texture called "block light" or something like that. I'm not sure if it's a good idea in this case though. Besides, fog volumes are only available in any games since L4D2, which means that Portal 2 can use them.
Avatar
ChickenMobile
2,460 Posts
Posted Jan 28, 2013
Replied 1 hour later
aha! Damn wiki being exact when it didn't need to be.
Avatar
iSpectra
49 Posts
Posted Jan 28, 2013
Replied 10 hours later
So I tried the fog method, but even though my settings for the fog entity are the same as in the video, it doesn't work. Check out the attached image.
Avatar
ChickenMobile
2,460 Posts
Posted Jan 28, 2013
Replied 7 hours later
Try putting the Fog End value higher.
Also make sure that "master" flag is ticked.
Advertisement
Registered users don’t see ads! Register now!
Avatar
iSpectra
49 Posts
Posted Jan 29, 2013
Replied 6 hours later
It works now. The problem was that there were a lot of other, auto generated fog entities which somehow caused mine not to work. Even tho it's "main" flagged.