Brush Creation

From Valve Developer Community
Revision as of 09:16, 2 July 2005 by JPE (talk | contribs)

Jump to: navigation, search

Creating Brush Solids from Scratch

Creating Brushes is quite simple. The process always follows the same four basic steps:

1. Select the Block Tool.

2. In the New Objects dialog, select Primitives in the Categories box. In the Objects selection box you will have multiple options. Select any one of these objects:

  • Block
  • Wedge
  • Cylinder
  • Spike
  • Arch
  • Sphere
  • Torus

Note: The Arch and Torus Primitives are special cases. They are not actually a Primitive Object, but tools which allows you to quickly and easily make multi-piece geometry. For more information, see Arch Properties and Torus Properties.

3. Drag a box in a 2D view, making sure it is the correct size and in the correct position in each of the views.

4. Press ENTER to create the solid.

Creating Brushes by Cloning

Cloning provides a simple way to quickly duplicate an object or group of objects. This includes both Brushes and entities, and groups can contain a mixture of both. Clones are duplicates of the the original objects, but have no other relationship with them.

How to clone an object or set of objects:

  1. Go into Selection mode by pressing Shift+S.
  2. Select the object (Brush, entity, or group of Brushes and/or entities) that you would like to clone.
  3. Hold shift, and click and drag the selected object to its new position with the left mouse button.
  4. While shift is still being held, release the mouse button. The object has now been cloned.

Inserting Prefabs

Once you have Prefab objects created (see [[Creating and Using Prefabs]]), it is a simple task to insert a Prefab into your level.

There are two ways to put a Prefab into your level:

The simple method is, from the New Objects dialog, to select the Prefab library from the Categories selection box, and the specific Prefab from the Object selection box, and then press the Insert original Prefab button. This will insert the selected Prefab in the center of the 2D views. You can do this with either the Entity Tool or Block Tool selected. Simply move it around into place. (Make sure Texture Locking is turned on!)

To insert a Prefab:

  1. Select the Entity Tool.
  2. In the New Objects Bar, select a Prefab library in the Categories pop-up list.
  3. Select a Prefab from the library in the Objects pop-up list.
  4. Click in the 3D view where you want the Prefab to be placed, or click in the 2D view and press ENTER.

Hammer newobjects.jpg

The second way to insert a Prefab is using the Block Tool to determine the size of the Prefab. This will create Prefabs at any size you specify, rather than inserting them at original size then requiring you to resize them manually.

To place a Prefab object, scaling it to an exact size:

  1. Select the Block Tool.
  2. In the New Objects Bar, select a Prefab library in the Library selection box. Then choose a Prefab project from the Object selection box.
  3. Drag a selection box in the 2D views, making sure it is the correct size and in the correct position in each of the views.
  4. Press ENTER or the Insert Original Prefab button on the New Objects Bar to insert the Prefab. The Prefab will inserted, and scaled to fit the selection box.

File:Hammer newprefab.jpg