Difference between revisions of "Brush Creation"

From Valve Developer Community
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:Level Design]]
 
[[Category:Level Design]]
=Creating Brush Solids from Scratch=
+
=Creating [[Brush]] Solids from Scratch=
  
Creating brushes is quite simple. The process always follows the same four basic steps:
+
Creating [[Brush]]es is quite simple. The process always follows the same four basic steps:
  
1. Select the Block Tool.
+
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:
+
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
 
* Block
Line 15: Line 15:
 
* Sphere
 
* Sphere
 
* Torus
 
* 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.
+
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.
 
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.
Line 21: Line 21:
 
4. Press ENTER to create the solid.
 
4. Press ENTER to create the solid.
  
=Creating Brushes by Cloning=
+
=Creating [[Brush]]es 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.
+
Cloning provides a simple way to quickly duplicate an object or group of objects. This includes both [[Brush]]es 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:
 
How to clone an object or set of objects:
  
 
# Go into Selection mode by pressing Shift+S.
 
# Go into Selection mode by pressing Shift+S.
# Select the object (brush, entity, or group of brushes and/or entities) that you would like to clone.
+
# Select the object ([[Brush]], entity, or group of [[Brush]]es and/or entities) that you would like to clone.
 
# Hold shift, and click and drag the selected object to its new position with the left mouse button.
 
# Hold shift, and click and drag the selected object to its new position with the left mouse button.
 
# While shift is still being held, release the mouse button. The object has now been cloned.
 
# While shift is still being held, release the mouse button. The object has now been cloned.
  
=Inserting Prefabs=
+
=Inserting [[Prefab]]s=
  
Once you have prefab objects created (see Creating and Using Prefabs), it is a simple task to insert a prefab into your level.
+
Once you have [[Prefab]] objects created (see [[Creating and Using [[Prefab]]s]]), it is a simple task to insert a [[Prefab]] into your level.
  
There are two ways to put 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!)
+
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:
+
To insert a [[Prefab]]:
  
# Select the Entity Tool.
+
# Select the [[Entity Tool]].
# In the New Objects Bar, select a prefab library in the '''Categories''' pop-up list.
+
# In the New Objects Bar, select a [[Prefab]] library in the '''Categories''' pop-up list.
# Select a prefab from the library in the '''Objects''' pop-up list.
+
# Select a [[Prefab]] from the library in the '''Objects''' pop-up list.
# Click in the '''3D view''' where you want the prefab to be placed, or click in the '''2D view''' and press ENTER.
+
# Click in the '''3D view''' where you want the [[Prefab]] to be placed, or click in the '''2D view''' and press ENTER.
  
 
[[Image:hammer_newobjects.jpg]]
 
[[Image: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.
+
The second way to insert a [[Prefab]] is using the [[Block Tool]] to determine the size of the [[Prefab]]. This will create [[Prefab]]s 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:
+
To place a [[Prefab]] object, scaling it to an exact size:
  
# Select the '''Block Tool'''.
+
# Select the '''[[Block Tool]]'''.
# In the New Objects Bar, select a prefab library in the '''Library''' selection box. Then choose a prefab project from the '''Object''' selection box.
+
# In the New Objects Bar, select a [[Prefab]] library in the '''Library''' selection box. Then choose a [[Prefab]] project from the '''Object''' selection box.
 
# 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.
 
# 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.
# 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.
+
# 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.
  
 
[[Image:hammer_newprefab.jpg]]
 
[[Image:hammer_newprefab.jpg]]

Revision as of 09:16, 2 July 2005

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