1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

Source lighting, your best tips?

  • Marcos
  • February 20, 2008 at 7:04 PM
  • Marcos
    • February 20, 2008 at 7:04 PM
    • #1

    Ello mapcore

    Been fidling with an css map for some months now (pics will come here soon) and really enjoying mapping again. But, im still pretty newbie in the new Hammer and there is so much i havn't mastered yet. One thing is lighting.. Whenever i compile my map and run it, damn that light_enviorment looks booring. Normal lights made by the light entity dosnt really scream SEX! either :/

    As i'm a big fan of lighting, please share your best tips regarding ligting in source! (and ofc any tips & tricks that's allways nice to know)

    edit: yes i compile with HDR

  • Punky
    • February 20, 2008 at 7:06 PM
    • #2

    You can use a point_spotlight or a light_spot or you can also create a special atmosphere to your map using an env_lightglow .

  • Marcos
    • February 20, 2008 at 7:13 PM
    • #3

    Fast reply Thanks Punky

    Yeah, been using the point_spotlight and light_spot. What does the env_lightglow do? Normal glow around a light?

    Im very interesed in different settings, like the brightness HDR, brightnessScaleHDR, Ambient HDR ect. and any compile commands

  • Sentura
    • February 20, 2008 at 7:31 PM
    • #4

    env_lightglow creates a realistic glow that dimishes the closer you get. valve themselves used these in hl2 at the end of the tunnels, though you can use them for anything (color changing is possible).

  • Punky
    • February 20, 2008 at 9:30 PM
    • #5

    Yeah, they can also create cool sunset effects; heres an example of a it (the map was just a test I made a while back)the effect is way too strong though...

    [Blocked Image: http://www.cubeupload.com/files/1f1b9blighthouse0000.jpg]

  • dux
    • February 20, 2008 at 9:55 PM
    • #6

    Color correction and a combination of constant and linear on the light entities with a lightglow is what I used for drift, turned out ok.

  • Seldoon182
    • February 20, 2008 at 10:00 PM
    • #7

    >< my eyes !

    Seriously, I can't neigther share tips nor do the job for you. The best way to go, in my opinion, is test, test and test...

    You can aslo check those links which are useful:

    http://developer.valvesoftware.com/wiki/Adding_Light:fr

    http://developer.valvesoftware.com/wiki/Lightning

    http://developer.valvesoftware.com/wiki ... d_Lighting

    http://developer.valvesoftware.com/wiki ... ing_Basics

    http://developer.valvesoftware.com/wiki ... g_Settings

    http://developer.valvesoftware.com/wiki/Sky_List

    http://developer.valvesoftware.com/wiki/Lightmap

    http://developer.valvesoftware.com/wiki/Fog_tutorial

    Good luck !

  • PogoP
    • February 21, 2008 at 1:07 AM
    • #8

    I tend to use a low brightness 'light' entity about 32 or so units away from my light source, and a light_spot shining in the direction of my light.

    I find you don't have to use lights in a way that would make sense in the real world. Let me explain. For example, if you have a light that emits in all directions from a wall, you would naturally think of just sticking a bright light entity in front of this light source. However, I use a low brightness light in front of it or a light_spot pointing AT the source, to show it is emitting in all directions; but then I also use as many light_spots as needed to create interesting shadows off things in the vicinity. For example, if there are railings nearby, I would use a strong light_spot and lower the lightmap of the texture that will have the railing shadow cast on it.

    I'll go into more detail about lightmaps. These are very handy, something that will make your map look better than the 'newbie' style, as you mentioned. When you go to texture something, check out the 'lightmap' scale in the texture applicator. The lower this value, the sharp shadows will look on that particular face. So use this to create some nice shadows. The lowest I tend to use is 2, I think 1 is just too much. However, don't go mad with lowering your lightmap values, it will drastically increase the size of your map's BSP file. You can also raise the lightmap scale for faces that won't have much light cast on them, which will lower your BSP size.

    I also do not tend to use env_lightglow. I like to use env_sprites and scale them up or down. I just think they look better in most cases. But I've not really messed with env_lightglows much, so I could be wrong. I suppose it's down to personal choice.

    The colour of the light you should use is a hard thing to grasp too. For most lights, I tend to use an orangey/brown colour. It tends to look quite natural and doesn't wash out the area the light is in. Don't use particularly dark colours, drag the slider up towards the white, so that the light is close to white, with a hint of orange/brown. If you imagine the slider on the colour chart in Source as being in 8 segments, drag the slider down about 1, maybe 2 segments.

    Also, for an added effect, stick a func_dustmote entity around your light source to show dust particles being lit up by the light. Don't make the particles really bright or big, just make them small and very slow moving. It's a subtle effect, but it really adds to the atmosphere of a map.

    Most importantly, use your lights to highlight specific, important things in your map. If you have a doorway, try and incorporate a light above it so that people will be drawn towards it. People are drawn to light areas, so by having a medium/high contrast between light and dark areas is always a good thing. Also, stick to a specific colour palette. I tend to use yellow/oranges/browns and reds in my work, but it entirely depends on the level. As an example, do not stick a red light right next to a green light; it just won't look right. I guess that's just common sense though, really.

    I hope those tips helped, I've picked them up over the past few months working on Black Mesa and my TF2 maps. However, the best thing for you to do is simply try it out, experiment and show us some pictures. Other people can constructively criticse your own work a lot better than you can by yourself (I don't mean that personally, I mean it for every level designer). Unless you're a god, like Hourences

    Wow, that turned into an essay!

  • Zacker
    • February 21, 2008 at 10:33 AM
    • #9
    Quote from PogoP

    I'll go into more detail about lightmaps. These are very handy, something that will make your map look better than the 'newbie' style, as you mentioned. When you go to texture something, check out the 'lightmap' scale in the texture applicator. The lower this value, the sharp shadows will look on that particular face. So use this to create some nice shadows. The lowest I tend to use is 2, I think 1 is just too much. However, don't go mad with lowering your lightmap values, it will drastically increase the size of your map's BSP file. You can also raise the lightmap scale for faces that won't have much light cast on them, which will lower your BSP size.

    You only mention BSP size there, but another thing regarding high res lightmaps you should worry about is really the amount additional texture memory it takes. Most people have plenty of HDD space but a limited amount of gfx mem.

  • 2d-chris
    • February 27, 2008 at 1:56 PM
    • #10

    Lighting is ofcourse a trial and error thing, very much so in Source due to the lack of any real lighting preview.

    Recently I've really put allot of thought into how best to light a scene, rather than slapping a few lights in i try to think about interesting shadows and light sources.

    [Blocked Image: http://i6.photobucket.com/albums/y226/trioxin/nmrih_mr_feb/nmrih_mr_feb082_chris_citylife_2.jpg]

    In this scene I created two windows with an exterior light source to make interesting shadows and contrast in the lighting. Also I used a coloured red light hidden away in a vent shaft (good olde cs style) to give the scene some interesting glow. I then use very gentle point lights of brightness (1 or 2) around and about to give some blue tints.

    [Blocked Image: http://i6.photobucket.com/albums/y226/trioxin/nmrih_mr_feb/nmrih_mr_feb082_chris_citylife_1.jpg]

    In this scene I tried to have a light source emiiting on all surfaces, but instead of a single big light source I used a combination of spot lights, ambient colour, moon brightness, point light ambients and another classic red styled spot light.

    So the TIP here is try to light a scene from more than a single lightsource and colour, then consider how shadows will affect the scene and use high lightmap scales so you get lots of shadow detail.

    When it comes to exterior day maps your often limited in terms of light sources, you have the sun and ambient, so make sure the settings you use are as good as you can make them! Instead of simply matching the light direction to the skybox texture adjust the environment light so it gives you the best effect. Slap in an env_sun where it should be and hey presto you have two suns! I'd be damned if anyone notices, if your that bothered make a new skybox, the lighting and shadows far outweighs the importance of a weird directional sun in the skybox texture.

  • ⌐■_■
    • February 27, 2008 at 4:22 PM
    • #11

    good thread with useful tips!

  • dissonance
    • February 27, 2008 at 6:44 PM
    • #12

    I understand (correct me if I'm wrong) that lightmap sizes do not effect performance ingame, just filesize, but do they do anything to the amount of ram, either system or graphics, that is being used? tl;dr: do bigger lightmaps = more ram used?

  • Pampers
    • February 27, 2008 at 9:52 PM
    • #13

    Way to many outdoor maps have their ambient lighting setting too low, creating an unnatural contrast between lit and shadowed areas, so it's important to play around with the different settings on the light_environment until you are happy with your result. Also, when placing fog in your map I would recommend setting the fog colour to something similar to the 2d skybox texture for best results

  • m8nkey
    • February 27, 2008 at 11:45 PM
    • #14

    Some good tips in here.

    Something vaguely related that I find useful is using displacements for curved surfaces, they result in much smoother lighting than brushes though light seams between displacements and brushes can also be difficult to hide.

    The displacement toolset isn't very accomodating when it comes to geometry like cylinders or concave and convex arches. This tut has some useful techniques for quickly making displacement curves:

    http://%7boption%7d

  • Zacker
    • February 28, 2008 at 11:12 AM
    • #15
    Quote from dissonance

    I understand (correct me if I'm wrong) that lightmap sizes do not effect performance ingame, just filesize, but do they do anything to the amount of ram, either system or graphics, that is being used? tl;dr: do bigger lightmaps = more ram used?

    Quote from Zacker

    Another thing regarding high res lightmaps you should worry about is really the amount additional texture memory it takes. Most people have plenty of HDD space but a limited amount of gfx mem.

    So yes, they do affect the amount of texture memory used, which is usually stored on the gfx mem. If you hit the limit gfx mem limit here and it goes over and have to use the system memory, then you will get an ingame performance impact. In general you should treat lightmap memory performance concerns in the same way as you usually deal with textures and memory.

  • dissonance
    • February 28, 2008 at 4:16 PM
    • #16

    Alright, I see. Thanks for the info.

  • Defrag
    • March 2, 2008 at 7:56 PM
    • #17

    This is also a good read

    http://www.3d-mike.com/game/lighting.htm

  • Quakis
    • March 8, 2008 at 11:08 PM
    • #18

    I found this site via CGTextures, but it also has a nice little lighting tutorial. Check it out; http://%7boption%7d

  • Punky
    • March 9, 2008 at 10:35 AM
    • #19
    Quote from Quakis

    I found this site via CGTextures, but it also has a nice little lighting tutorial. Check it out; http://%7boption%7d

    WOW, just WOW!

    Look at this, can this be source?!

    [Blocked Image: http://www.cubeupload.com/files/35bf0source.jpg]

  • e-freak
    • March 9, 2008 at 11:38 AM
    • #20

    gnah guys you don't really know mapcore, doya?

    viewtopic.php?f=25&t=8158&p=145680#p145680

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  2. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  3. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  4. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  5. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  6. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  7. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  8. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  9. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  10. Classic Maps Reborn For CS2

    SillySpaceCat
    May 31, 2026 at 10:33 PM

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™