Brushes: CSG operations

From The DarkMod Wiki
Revision as of 21:51, 6 January 2008 by Baddcog (talk | contribs) (CSG tut by Baddcog)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

CSG operations are tools that can be used on brushes (which always start as cubes) to turn them into other shapes. These shapes can be other cubes, cylinders, spheres, cones and other odd shapes. This can add alot of life to a level that would other wise be made of cubes. These shapes all differ from patches in the fact that they are flat shaded so they will have sharp edges whereas patches are smooth shaded and look round. That can be a benefit for alot of shapes that need a sharp look to them.

Brushes are level geometry so they have some benefits over patches, mainly that they can seal off the void and keep your map from leaking. You can easily create shapes from them that you can't from patches easily. The one limit is they must always be convex, meaning they have to have a closed hull, that if a line was drawn through at any point it would go through no more than two sides. So they can be a cylinder but not a tube, however you can use many of them together to make a shape like a tube. Another benefit is that they block pathfinding, so if you make a round tower out of brushes an AI will not walk through the walls. A similar tower made out of patches would need monster clip to build pathfinding to block AI.

Press Show Preview below to see how it will look like, and also don't forget to fill in the Summary field - it makes reviewing changes by others much easier!