Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/archive/global.php(40) : eval()'d code on line 2
func_brush? [Archive] - TF2Maps.net Forums

PDA

View Full Version : func_brush?


Laz
07-06-2008, 02:49 PM
I came across a func_brush in an official map.

I know why we used to use func_wall and stuff, but I thought that was what func_detail is for now?

so my question, func_brush VS func_detail, what's the difference, when to use and why?

taotd
07-06-2008, 03:22 PM
I think what func_detail does is it takes some of the pressure off of having the engine render whatever it is, essentially telling the game "Hey, this stuff here? Yeah, don't bother fully rendering this, it's unimportant"

func_brush, because you can give it a name, can be used for a ton of fun stuff. Invisible walls, visible but intangible walls, be sent kill inputs, etc.

grazr
07-06-2008, 04:51 PM
Func_brush also allows you to create a solid object from geometry and to turn its shadows off. You'll find a number of fancy uses for it.

Spacemonkeynz
07-06-2008, 05:21 PM
func_brush is to prop_dynamic as func_detail is to prop_static

basically, if a brush just sits there and looks pretty, make it a func_detail.
But if you want it to do something (parent it, kill it, toggle it etc.) func_brush gives you the inputs to do these things.

Laz
07-06-2008, 07:21 PM
func_brush is to prop_dynamic as func_detail is to prop_static


all I needed to know :D thanks!

What Is Schwa
07-06-2008, 08:39 PM
The only reason we func_detail everything is because the engine ignores func_details when assembling vis_leaves. If you don't know what vis_leaves are you REALLY need to read a tutorial about map optimization.

Here (http://developer.valvesoftware.com/wiki/BSP_Map_Optimization) is the dev wiki page on Map Optimization that explains a lot of the terms.

Here (http://developer.valvesoftware.com/wiki/Controlling_Geometry_Visibility_and_Compile_Times) is the specific page discussing how the engine creates vis_leaves.

If the object isn't supposed to block the players vision than func_detail it. This will reduce your compile time and file size.

Laz
07-07-2008, 04:34 AM
no worries, I have known about vis leafs for a looooong time and how they work :) I was just wondering what func_brush did. last time I seriously mapped was for counterstrike beta 5 (about 10 years ago)

MangyCarface
07-07-2008, 11:05 AM
A good use of func_brush is the minimum light level function. This allows your stairs to have equal amounts of light on them instead of having weird shadows.