Help with design and lightning

Discussion in 'Mapping Questions & Discussion' started by Flaffy, Oct 4, 2015.

  1. Flaffy

    Flaffy L1: Registered

    Messages:
    34
    Positive Ratings:
    0
    First off is the lighting. I´m using light_spot and point_spotlight for the lightning in the room.
    In-game:
    IngameView.PNG
    Hammer View:
    HammerView.PNG



    If I could make the chickenfence be transparent or make the light go through it.

    Second problem is how do I make the beam not look ugly, if I make it smaller.
    The problem: it's too big and it blocks players, any ideas on how to make the room still look nice without a stupid looking beam.

    ingame2.PNG

    Here's the whole room:
    WholeRoom.PNG
     
    Last edited: Oct 4, 2015
  2. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    Just remove the beam, nothing wrong with that, tbh.

    You'll want to align your wood textures though, that'll annoy people.

    For that dark corner, I'd use a dim light (aka: Omni light) the same color of the lights in the room. This is called phantom lighting.

    For the dark items under the stairs, try compiling with the -staticproplight and -staticproppolys and -textureshadows compile options. You can also disable shadows on those items, and that'll stop any weird self-shadowing that might occur.
     
  3. Flaffy

    Flaffy L1: Registered

    Messages:
    34
    Positive Ratings:
    0
    Can I make it so the light will go through the chickenfence? I saw in cs:go that the sun goes through windows and leaves shadows on of a cross (crosswindow) on the wall
     
  4. radarhead

    aa radarhead Hands out ratings like cheap cigars

    Messages:
    1,002
    Positive Ratings:
    535
    Light should already be going through the fence. It's a transparent texture.
     
  5. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,978
  6. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    832
    But only on props.
     
  7. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,978
    I am almost certain -textureshadows does any transparent textures, and for props, you need to list them in a .rad file?
     
    Last edited: Oct 4, 2015
  8. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    661
    Why do people insist on misspelling "lighting" as "lightning"? I wouldn't want to have lightning in a room.
     
    • Thanks Thanks x 2
  9. Hotel Detective

    Hotel Detective L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    189
    ..well I would
     
    • Thanks Thanks x 2
  10. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    I've only ever seen it used on props, but I don't think it rules out textures.
     
  11. Snowbat

    Snowbat L4: Comfortable Member

    Messages:
    165
    Positive Ratings:
    61
    Cant you use an info target that you put outside the chicken fence and have the prop use that info_target as lighting source?
    I remember doing that with one of my old CS:S maps that had a similar problem.
     
  12. Flaffy

    Flaffy L1: Registered

    Messages:
    34
    Positive Ratings:
    0
    So how do I use that thing? ".rad" file or something. Or fix the problem as you say.
    (sorry if it's stupid question, i'm new)
     
  13. Lampenpam

    aa Lampenpam

    Messages:
    1,018
    Positive Ratings:
    337
    Not a stupid question. It's just something a newbie cant know about until someone tells him how to enhance his lightning... I mean lighting compiles.

    Read through this: http://www.nodraw.net/2010/12/lighting-compile-options/
     
    • Thanks Thanks x 1
  14. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    832
    Yes you can. It's called origin lighting and it's what dynamic props use. But all of the prop would be lit the same way so it would look strange underneath this shaded area. If the mapper uses the VRAD compile argument -staticproplighting as in the article Lamp linked, static props will have their lighting and shading worked out on a per-vertex basis, meaning its surface will be lit variably just like in real life.

    The .rad file is for when you want light to be able to shine through transparent textures in props, for example chain link fence. It's not any use here though because the -textureshadows argument is for props only, not brushes, as brush faces with transparent textures will let light through anyway as evidenced in this image:

    Top left - entirely chickenwire
    Top right - entirely nodraw
    Bottom left - Chicken wire on bottom face, wood everywhere else
    Bottom right - Entirely wood

    [​IMG]

    Give any face of a brush a transparent texture and the VRAD treats the whole thing as transparent.
     
    • Thanks Thanks x 3
  15. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,215
    Oho! So that's why Source treats transparency in models and brush textures differently. It doesn't actually do texture shadows on the brushes; it just ignores them altogether.

    Anyway, yeah, the reason those props are so dark is that their origins are further in than the outsides are, and thus more in shadow. An info_lighting is fine for alpha, mind you. In fact, leaving it as-is would be fine for alpha; if your map ever gets to beta you should probably start using -staticproplighting along with the Final compile settings.
     
    • Thanks Thanks x 1
  16. Flaffy

    Flaffy L1: Registered

    Messages:
    34
    Positive Ratings:
    0
    Here's the changes so far...
    Looks nice.PNG
     
  17. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    832
    Looking better. Don't worry, you will improve your lighting over time, as you develop your skill.

    You should save your real lighting work for your beta, late beta or release candidate versions. At least when you have fully detailed things using textures and props. Your lighting can be affected by those things, you see, so it's better to finish them first, to save work. During development of early versions of your map when you are concerned mostly with play testing, just focus on making sure all of your map is evenly lit, and there are no dark places where a character's team colour is hard to see. You can use the console command thirdperson to see how your lighting affects your character.
     
    • Thanks Thanks x 1
  18. Hyperion

    aa Hyperion L16: Grid Member

    Messages:
    810
    Positive Ratings:
    617
    You can make pumpkin brighter by using info_lighting and setting it right next to that other pumpkin
     
  19. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,215
    Of course, if this is your first map or so, it's fine to play around with this stuff just to get a feel for how it works, so you're not struggling through it when it comes time to detail the map for real. I've got a few test maps still floating around the mapsrc folder that have no objectives at all, just detailing.