Problem item shadow ?

Discussion in 'Mapping Questions & Discussion' started by CafeineMan, Nov 1, 2019.

  1. CafeineMan

    CafeineMan L2: Junior Member

    Messages:
    76
    Positive Ratings:
    13
    Hello,

    Why the color is so dark ? Is there a trick to avoid that?

    [​IMG]
     
  2. Tumby

    aa Tumby

    Messages:
    1,004
    Positive Ratings:
    1,010
    With most props, it would be enough to enable staticproplighting, as described in this article:
    http://www.nodraw.net/2010/12/lighting-compile-options/

    However, these pipe props do not support per-vertex lighting. You have two options:

    Option A:
    Place an info_lighting and give it some name. For example "info_light_01".
    Move the info_lighting to be somewhere inbetween all of these pipes.
    Next, go into the properties of the pipe and type the name of the info_lighting in the "Lighting Origin" field.
    Use the same info_lighting for all four pipes Or use the same info_lighting for all props that are touching/connected.
    Problems with this method: The lighting will not appear very realistic. However, it should be good enough.

    Option B:
    Download this set of pipe props https://tf2maps.net/downloads/industrial-pipes-with-vertex-lighting.8551/
    Replace all your pipes with the ones you just downloaded.
    Enable the advanced lighting compile options as describe in the article above.
    Problems this this method: The pipes will not be shiny. Judging from your screenshot, this won't be a problem anyways.
     
    • Thanks Thanks x 1
  3. CafeineMan

    CafeineMan L2: Junior Member

    Messages:
    76
    Positive Ratings:
    13
    So many thanks! It's works perfectly (option B) !
    But I have two other problems with lightning and shadows, could you evently help me again please ?

    With a rounded wall (berk) :

    [​IMG]

    And a bloc_light, I don't know why, it creates a transparent space :

    [​IMG]
     
  4. Tumby

    aa Tumby

    Messages:
    1,004
    Positive Ratings:
    1,010
    You can fix the shadows around the curved thing by not making it a func_detail. Something that only curves inwards like this can made out of world brushes without a problem.
    Alternativly, you could also slice up the brushes that are behind it and make sure theres nodraw where func_detail and wall touch.
    The reason why this happens is that the wall has a lightmap behind the curved part, which is just messing with the smoothing and everything.

    I have no idea what the problem in the second image is.
     
  5. CafeineMan

    CafeineMan L2: Junior Member

    Messages:
    76
    Positive Ratings:
    13
    Hi!

    It doesn't work. I probably do not understand very well (there's just nodraw on the floor).
    My block is divided like that :
    [​IMG]

    I try with a func_brush but it's not perfect :

    normal block :
    [​IMG]

    func_brush
    [​IMG]

    Can I realy leave the blocks as they are ? It's a big map and I'm not very capable for optimization too.

    Thanks again for the time spent answering me, it's very nice.
     
    Last edited: Nov 2, 2019
  6. Tumby

    aa Tumby

    Messages:
    1,004
    Positive Ratings:
    1,010
    Don't use func_brush! Don't use any type of brush entity! It looks perfect as a world brush.
    If you keep it a world brush, the only major problem seems to be a vertical line in the middle. To fix this, the texture needs to wrap around the arch perfectly. That way the compiler knows that it's all supposed to be one smooth thing. Use "Alt + Right Click" to do that. Here are two videos explaning this:

    View: https://www.youtube.com/watch?v=Rzz14Fu_lGc


    View: https://www.youtube.com/watch?v=eURuZu5jlIo


    A minor problem is that the shadows are very blocky and blurry. Simply select the faces and set the Lightmap Scale to something smaller than 16. Try something like 8 first.
    Just keep in mind that more accurate shadows will increase the filesize of the map. Common practice is to make shadows more accurate in complicated areas like that, where it actually makes a difference, and then make the shadows less accurate in areas where nothing much is happening, like a big wall or roof that is evenly lit everywhere.
     
    • Thanks Thanks x 1
  7. CafeineMan

    CafeineMan L2: Junior Member

    Messages:
    76
    Positive Ratings:
    13
    Problem solved :oops: :
    [​IMG]
    I have too much rounded wall or floor and bot don't like rounded wall or floor.
    But I'll watch immediatly the video (it will serve for next time). Thanks !

    I have an other problem with the compilation (entdata [variable] 353747/393216 (90.0%) VERY FULL! and physics [variable] 6847342/4194304 (163.3%) VERY FULL! ) but I will post soon my map and I hope some of you will help me to improve all of that.

    Have a nice day Tumby!
     
    • Thanks Thanks x 1
  8. Pocket

    aa Pocket func_croc

    Messages:
    4,508
    Positive Ratings:
    2,398
    The real reason for that problem was that the two flat walls next to it run all the way into the corner where they meet each other. So VRAD was generating lightmaps that continue behind the curved pieces, instead of a single one that wraps all the way around. So the trick is to cut those brushes off where they meet the curve, and then use the alt-right-click method Tumby mentioned.
     

    Attached Files:

    • Thanks Thanks x 1
  9. CafeineMan

    CafeineMan L2: Junior Member

    Messages:
    76
    Positive Ratings:
    13
    Great! Simple (obvious afterwards) and effective.
     
  10. Tumby

    aa Tumby

    Messages:
    1,004
    Positive Ratings:
    1,010
    Keeping everything world brushes avoids this problem already. Faces between world brushes are culled during compile, and so there can't be any lightmaps there.
     
  11. CafeineMan

    CafeineMan L2: Junior Member

    Messages:
    76
    Positive Ratings:
    13
    Yes, I forgot the entity problem (the real problem) too :confused:
     
  12. henke37

    aa henke37

    Messages:
    2,020
    Positive Ratings:
    484
    As for the block light issue, that's a simple misunderstanding. That material doesn't affect rendering. It has no collision geometry and doesn't affect visibility, all it does is acting as a wall while vrad computes lightning data. It is entirely ignored afterwards.