Jump to content

Brush (video games)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 2601:249:8281:35e0:35d1:adbe:c34d:8c33 (talk) at 18:00, 17 November 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Brushes are templates used in some 3D video game engines, such as the Quake engine, its derivatives the GoldSrc and Source game engines, or the Unreal Engine, to construct levels.[1] Brushes can be primitive shapes (such as cubes, spheres and cones), pre-defined shapes (such as staircases), or custom shapes (such as prisms and other polyhedra).[2][3]

During the map compilation process, brushes are turned into meshes that can be rendered by the game engine. Often brushes are restricted to convex shapes only, as this reduces the complexity of the binary space partitioning process. However, using CSG operations, complex rooms and objects can be created by adding, subtracting and intersecting brushes to and from one another.[4] Additionally, brushes can be used as liquids[5] or as an area trigger.[6]

References

  1. ^ "Definition of Brush in the Valve Developer Community". Valve. Retrieved 2011-03-24.
  2. ^ Finney, Kenneth V. (2004). 3D Game Programming All in One (Course Technology PTR Game Development Series). Muska & Lipman/Premier-Trade. ISBN 1-59200-136-X.
  3. ^ Holmes, Shawn (2002). Focus on Mod Programming for Quake III Arena. Premier Press. ISBN 1-931841-56-X.
  4. ^ "UDN – Two – BspBrushesTutorial". Epic Games. Retrieved 2012-04-21.
  5. ^ BSP Headquarters - BSP Quake Tutorial #5
  6. ^ BSP Headquarters - BSP Quake Tutorial #6