1. Hey Guest, welcome to the new forums. Be sure to check out this thread to get all the information you need on the cool new stuff!

Light leaks with func_detail?

Discussion in 'Mapping Questions & Discussion' started by xzzy, Apr 17, 2012.

  1. xzzy

    aa xzzy

    Messages:
    801
    Thanks Received:
    389
    Anyone got any tricks for dealing with this?

    [​IMG]

    I've seen this in other places but usually it's not a big deal because it's not a dark area.. but in this spot it's really bugging me. The floor is a func_detail, while the surrounding walls are all world geometry.

    I'm guessing maybe it's a lightmap issue? The func_detail doesn't split up the face so part of the lighted area underneath bleeds through.

    Is the only solution making the floor world geometry? I guess it wouldn't be too bad to do that, but I'm curious if anyone's ever found another way.

    I guess I could crank up the lightmap resolution, but that comes with other side effects.
     
  2. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    4,521
    Thanks Received:
    3,480
    You could try blocklight? Remember to uh, func_detail it. Really though.

    Or you might want to try cutting the walls into two brushes each, so that they are lit differently, I dunno.
     
    Last edited by a moderator: Apr 17, 2012
  3. stevethepocket

    aa stevethepocket I can fix it!

    Messages:
    3,140
    Thanks Received:
    1,248
    I've been having a similar issue with my sniper decks. Making sure the walls on top are separate from the walls below didn't fix it. Force-cutting that entire area into two visleaves by putting a hint brush across the entire mid at that level strangely didn't fix it either. Haven't tried messing around with smoothing groups yet, but maybe there's some trick involving the "hard" group in that window that might do it?
     
  4. Draco18s

    Draco18s L9: Fashionable Member

    Messages:
    622
    Thanks Received:
    136
    That might help.
     
  5. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,697
    Thanks Received:
    5,428
    Rather than slicing the wall into two pieces, make it three. Nodraw the strip that is hidden by the func_detail.
     
  6. stevethepocket

    aa stevethepocket I can fix it!

    Messages:
    3,140
    Thanks Received:
    1,248
    OK, so I've tried the smoothing groups trick. It did separate the upper brushes from the lower ones, but it also separated them from each other, which was not acceptable. So then I tried making them into a smoothing group instead of a hard group, and... got the exact same result, despite that being the exact opposite of what smoothing groups are supposed to do.

    :confused:

    I have a new plan that I'm pretty sure will do the trick, but I also want to know how the hey that happened.
     
  7. honeymustard

    honeymustard L9: Fashionable Member

    Messages:
    666
    Thanks Received:
    272
    As Booj said, nodraw the area that the func_detail covers.
     
  8. grazr

    aa grazr Mmm, hhhyes. indubitably.

    Messages:
    5,126
    Thanks Received:
    3,464
    it's only light bleeding through because the lightmaps at the back of the func_detail are larger than the space the func_detail obscures light bounces as that's a single brush face you're looking at. Either decrease the lightmap scale to below 16 to bring the lightmap scale in sync with your geometry (which i would have recommended were the faces involved more important, as this lengthens compile time and increases file size), or split the faces in 2 (or nodraw the space behind it with a second split, making 3 brushes).
     
    Last edited: Apr 17, 2012
    xzzy thanked this.
  9. 3Dnj

    aa 3Dnj Ducks

    Messages:
    240
    Thanks Received:
    371
    Grazr and ABS are right :) listen to them !!!
     
  10. xzzy

    aa xzzy

    Messages:
    801
    Thanks Received:
    389
    I experimented with a couple ways of doing it, and eventually settled on converting the floor of the func_detail into world geometry. Results in a few extra portals but I also noticed it means the area doesn't get drawn as frequently, which is a nice side effect even if I pay for it with extra build time.

    That's just this particular case though. Splitting the world geometry into texture-nodraw-texture is pretty interesting and I'll do that in the future.
     
  11. YM

    aa YM LVL100 YM

    Messages:
    6,340
    Thanks Received:
    4,725