Can you put a nodraw box around the map to avoid leaks?

Discussion in 'Mapping Questions & Discussion' started by Ctrl Alt Defeat, Jul 15, 2015.

  1. Ctrl Alt Defeat

    Ctrl Alt Defeat L1: Registered

    Messages:
    31
    Positive Ratings:
    5
    Just curious. Finally getting back to mapping after hiatus and am getting back to a project of mine. I've got some cliffs on the outer edges (will be displacements soon enough). Can I just put a hollow nodraw box around the map to make sure there are no leaks? Or do i need to be more intricate with having bordering displacements??
     
  2. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,849
    Positive Ratings:
    4,845
    Yes, but it's very bad practice. You should try to shrink wrap your map when sealing it to improve optimisation and compile time.
     
    • Thanks Thanks x 1
  3. Ctrl Alt Defeat

    Ctrl Alt Defeat L1: Registered

    Messages:
    31
    Positive Ratings:
    5
    Ah, okay, thanks. But why is it bad with nodraw? I thought nodraw just meant it was unrendered; how would it impact the performance of the map at all? Just out of curiosity, what do you do to seal your maps if they have displacement boundaries? Do you put a small brush on the edge of it?
     
  4. iiboharz

    aa iiboharz Meme Queen

    Messages:
    711
    Positive Ratings:
    1,034
    It affects the performance of the map because it still generates and calculates vis data in that nodraw box so potentially there could be a visleaf that sees a leaf in the box that can see the whole map.
     
    • Thanks Thanks x 1
  5. Idolon

    aa Idolon the worst admin

    Messages:
    1,536
    Positive Ratings:
    4,404
    You can also use the cordon tool instead of actually making a nodraw box for testing. That said, you should definitely properly seal your map before you release it.

    As for displacements, nodraw behind them is the way to go. You can use visgroups to toggle the visibility of displacements, which will make your life a lot easier. If you want an example of putting nodraw behind displacements, there are decompiled versions of Valve maps that you can take a look at.
     
    • Thanks Thanks x 1
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,531
    You don't need to be super detailed with nodraw sealing behind displacements. As long as you put them behind major cliff walls that's fine, but don't feel like you need to actually follow all the curves.
    Look at some decompiled official maps to get an idea of it.
     
    • Thanks Thanks x 1