Merging brushes
Quote from wrathofmobius on June 1, 2012, 10:26 pmIs it possible to merge multiple brushes into one? I'm asking because I'm detailing a map from the PeTI and converting it into a Wheatley-style chamber. However, the huge amount of brushes makes ~5600 visleaves, which is obviously not optimal. I do, however, need to leave them as worldbrushes.
Is it possible to merge multiple brushes into one? I'm asking because I'm detailing a map from the PeTI and converting it into a Wheatley-style chamber. However, the huge amount of brushes makes ~5600 visleaves, which is obviously not optimal. I do, however, need to leave them as worldbrushes.
[spoiler]WOM Test 1
Laser Cube Quest
Mho' Power - Community Spotlight!
Four Corners[/spoiler]

Quote from Nacimota on June 2, 2012, 12:20 amwrathofmobius wrote:Is it possible to merge multiple brushes into one?Not really.
wrathofmobius wrote:... the huge amount of brushes makes ~5600 visleavesThis isn't quite accurate. As long as they make a flat surface, more brushes will not cut up the visleaves. Allow me to demonstrate with an example:
https://dl.dropbox.com/u/19093054/visleaf.png
Note that while the wall is made up of 32 brushes, they do not dissect the visleaf (the edges of which are highlighted in blue). If the brushes make a flat surface, meging them into one will not change the visleaf layout.
Not really.
This isn't quite accurate. As long as they make a flat surface, more brushes will not cut up the visleaves. Allow me to demonstrate with an example:
https://dl.dropbox.com/u/19093054/visleaf.png
Note that while the wall is made up of 32 brushes, they do not dissect the visleaf (the edges of which are highlighted in blue). If the brushes make a flat surface, meging them into one will not change the visleaf layout.
Quote from Brainstone on June 2, 2012, 5:29 amHowever, visleaf are split automatically, every 512 units. (Or was it 1024, I don't quite remember)
However, visleaf are split automatically, every 512 units. (Or was it 1024, I don't quite remember)
Quote from Lpfreaky90 on June 2, 2012, 5:35 amThe only way you can achieve this is by manually making brushes of the appropriate size in hammer and removing the others ones.
And as Nacimota pointed out: they don't cut corners visleaves. The different blocks can very well be used to add some texture variation to the walls. Something like this:
The only way you can achieve this is by manually making brushes of the appropriate size in hammer and removing the others ones.
And as Nacimota pointed out: they don't cut corners visleaves. The different blocks can very well be used to add some texture variation to the walls. Something like this:

Quote from Nacimota on June 2, 2012, 5:46 amBrainstone wrote:However, visleaf are split automatically, every 512 units. (Or was it 1024, I don't quite remember)Every 1024th from the map origin, along all three axes (these points are marked with orange/brown lines in Hammer).
Every 1024th from the map origin, along all three axes (these points are marked with orange/brown lines in Hammer).
Quote from wrathofmobius on June 2, 2012, 9:45 pmThanks for the informative replies. What can I do to get my visleaf count down? Or is ~5600 acceptable?
Thanks for the informative replies. What can I do to get my visleaf count down? Or is ~5600 acceptable?
[spoiler]WOM Test 1
Laser Cube Quest
Mho' Power - Community Spotlight!
Four Corners[/spoiler]
Quote from Lpfreaky90 on June 3, 2012, 6:46 amwrathofmobius wrote:Thanks for the informative replies. What can I do to get my visleaf count down? Or is ~5600 acceptable?Depends on the size of your map.
The most efficient way to get your number of visleaves down is to use func_details.look normal
don't split visleaves
don't seal your map
can't be dynamicuse this on all things that don't block the player's line of sight like:
* angled pannels
* Tiles on the floor and/or on the ceiling where the ceiling isn't completely blocking the line of sight in destroyed theme.
* Other things that don't block the players Line of sight.
Depends on the size of your map.
The most efficient way to get your number of visleaves down is to use func_details.
look normal
don't split visleaves
don't seal your map
can't be dynamic
use this on all things that don't block the player's line of sight like:
* angled pannels
* Tiles on the floor and/or on the ceiling where the ceiling isn't completely blocking the line of sight in destroyed theme.
* Other things that don't block the players Line of sight.

Quote from ChickenMobile on June 3, 2012, 8:53 pmSkip and hint brushes are your friend. There are plenty of good tutorials on the web explaining optimisation with hint and skip brushes.
Just look at Valve's light instances which you can pop in walls. They have a hint brush over it so then the vis leaf won't be cut in some odd way.
Skip and hint brushes are your friend. There are plenty of good tutorials on the web explaining optimisation with hint and skip brushes.
Just look at Valve's light instances which you can pop in walls. They have a hint brush over it so then the vis leaf won't be cut in some odd way.