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

Ctrl Alt Defeat

L1: Registered
Jun 10, 2014
31
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??
 

Freyja

aa
Jul 31, 2009
2,994
5,813
Yes, but it's very bad practice. You should try to shrink wrap your map when sealing it to improve optimisation and compile time.
 

Ctrl Alt Defeat

L1: Registered
Jun 10, 2014
31
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?
 

iiboharz

eternally tired
aa
Nov 5, 2014
857
1,291
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.
 

Idolon

they/them
aa
Feb 7, 2008
2,107
6,116
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.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
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.