light asthetics

Discussion in 'Mapping Questions & Discussion' started by Ezekel, Feb 19, 2009.

  1. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    so there's the point_spotlight, the env_lightglow and the env_sprite
    probably others i've not come across yet.

    do people have a preference to one? what factors go into choosing what method to use to add that little extra flare (no pun intended) to a light source?


    also, which ones are most expensive to render? (assuming you have the point_spotlight flag "no dynamic light" turned on)
     
  2. Icarus

    aa Icarus

    Messages:
    2,246
    Positive Ratings:
    1,182
    I prefer to use point_spotlight wherever possible but you have to be careful, too many spotlights and you'll hit the dreaded No Free Edicts error
     
  3. dirtyminuth

    dirtyminuth L5: Dapper Member

    Messages:
    221
    Positive Ratings:
    14
    Here are my three lighting "scenarios" that I utilize (not including light_environment):

    Ambient Lighting
    • light
      - High linear, high constant, low quadratic
      - Low (100-) brightness
    Directed Lighting
    • light_spot
      - High (300+) brightness
    • point_spotlight
      - Same color as associated light_spot
    Point Lighting
    • light
      - Medium (100-300) brightness
    • env_sprite
      - Centered on associated light
      - Render Mode: World Space Glow
      - Sprite Name: materials/Sprites/light_glow03.vmt (works well)

    There are additional tweaks I use, but that's about it. light_spot / point_spotlight and light / env_sprite are logical couples.
     
    • Thanks Thanks x 1
  4. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    what's a no free edicts error exactly?
    is it at compile stage or in game?



    also, if that's the case, does combining an envsprite and env lightglow seem like a good way to simulate the same effect of a point spotlight?
     
  5. Icarus

    aa Icarus

    Messages:
    2,246
    Positive Ratings:
    1,182
    There's a limit of edicts built into the Source engine. Edicts are usually generated by dynamic entities.

    point_spotlight consists of several edicts.

    If you exceed the edict limit, the server will crash with no log, and all clients will exit to desktop without warning.
     
    Last edited: Feb 20, 2009
  6. NovaSilisko

    aa NovaSilisko L42: Life, the Universe and Everything

    Messages:
    502
    Positive Ratings:
    136
    Hmm, I usually use env_lightglow, but is that more expensive then a sprite?
     
  7. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    i believe sprite is cheapest of the lot.

    i usually use a sprite + a lightglow together


    could you give a ball park as to how many point spotlights it's safe to have?
    e.g. 20-30? 30-40? 40-50?
     
  8. Icarus

    aa Icarus

    Messages:
    2,246
    Positive Ratings:
    1,182
    it's not a set number, because there are lots of other entities that take up edicts.

    I know for some reason, Waste has a very high edict count, so I'm limited to only about 10-20 spotlights.

    However, some other maps have up to 50
     
  9. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    is there a way to check if you have a high/low count?
    so you know if you've got edicts to spare or not
     
  10. Shmitz

    aa Shmitz Old Hat

    Messages:
    1,129
    Positive Ratings:
    742
    I try to use point_spotlights only in areas where the light should be in high contrast with the dark, or would naturally be rather dusty or foggy. In "clean air" conditions, lightglow is better for bright lights. A sprite is best for lights that aren't supposed to seem terribly bright, like the kerosene lamps.