Primitive: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (fixed misinformation)
Line 1: Line 1:
A '''primitive''' is a single convex [[brush]] within [[Valve Hammer Editor|Hammer]]. Primitives include arches, blocks, cylinders, spheres, spikes, tori and wedges.
==Primitive types==
A '''primitive''' is by definition a very simple structure, primitive when it relates to the [[Valve Hammer Editor]] refers to a [[brush]] based object that confroms to a common shape. Primitives include arches, blocks, cylinders, spheres, spikes, tori and wedges.Some are made up of multiple brushes but are still considered primitive as they are used commonly and a simple shape, the 2 examples are tori and arches.


==Primitive types==
{{note|Some primitives have an orientation, to set which way they face upon creation turn on the 'Reorient primitives upon creation' option under the 2D views. Now whichever 2D view you leave active (click in last) will be the way the object faces.}}


{{note|Tori and arches are actually not primitives but groups of primitives.}}
{{note|Another option that may cause problems cna be found under the General tab, 'stretch arches and tourses to fit bounding box'. This means any arches or tori you create will fill the box you drew, if turned off it will consider that box as defining the circle the arch or torus is drawn from}}


===Arch===
===Arch===


Must be created from the top view and rotated into whatever position you want it in.
This creates a basic arch as defined by the [[Hammer Arch Properties | Arch Tool]], multiple blocks slightly rotated will be created within 1 group.


[[Image:primitives-arch.png]]
[[Image:primitive_arch.jpg]]


===Block===
===Block===
Line 15: Line 16:
The block, a basic cube, is the most used object when mapping in Hammer.
The block, a basic cube, is the most used object when mapping in Hammer.


[[Image:primitives-block.png]]
[[Image:primitive_block.jpg]]


===Cylinder===
===Cylinder===


Cylinders are second in popularity only to blocks. They must be created from the top view and rotated into position.
A cylindrical brush created with a specified number of sides.


[[Image:primitives-cylinder.png]]
[[Image:primitive_cylinder.jpg]]


===Sphere===
===Sphere===
Line 27: Line 28:
The sphere is a rather complicated piece of geometry, so it would be wise to be careful with the number of faces you give the sphere.
The sphere is a rather complicated piece of geometry, so it would be wise to be careful with the number of faces you give the sphere.


[[Image:primitives-sphere.png]]
[[Image:primitive_sphere.jpg]]


===Spike===
===Spike===


[[Image:primitives-spike.png]]
Like the cylinder but all the top vertecies come to 1 central point.
 
[[Image:primitive_spike.jpg]]


===Torus===
===Torus===


The torus resembles an inner tube or a donut. This is most useful for rings. This primitive can easily mass polygons so keep the number of faces on this primitive low.
The torus resembles an inner tube or a donut. This primitive can easily mass polygons so keep the number of faces on this primitive low. Like The arch it has a special [[http://developer.valvesoftware.com/wiki/Hammer_Torus_Properties | Tool]].


[[Image:primitives-torus.png]]
[[Image:primitive_torus.jpg]]


===Wedge===
===Wedge===


The wedge is best used for creating ramps. It is basically a triangular prism.
The wedge is basically a triangular prism.


[[Image:primitives-wedge.png]]
[[Image:primitive_wedge.jpg]]


==See also==
==See also==

Revision as of 13:16, 1 April 2006

Primitive types

A primitive is by definition a very simple structure, primitive when it relates to the Valve Hammer Editor refers to a brush based object that confroms to a common shape. Primitives include arches, blocks, cylinders, spheres, spikes, tori and wedges.Some are made up of multiple brushes but are still considered primitive as they are used commonly and a simple shape, the 2 examples are tori and arches.

Note.pngNote:Some primitives have an orientation, to set which way they face upon creation turn on the 'Reorient primitives upon creation' option under the 2D views. Now whichever 2D view you leave active (click in last) will be the way the object faces.
Note.pngNote:Another option that may cause problems cna be found under the General tab, 'stretch arches and tourses to fit bounding box'. This means any arches or tori you create will fill the box you drew, if turned off it will consider that box as defining the circle the arch or torus is drawn from

Arch

This creates a basic arch as defined by the Arch Tool, multiple blocks slightly rotated will be created within 1 group.

Primitive arch.jpg

Block

The block, a basic cube, is the most used object when mapping in Hammer.

Primitive block.jpg

Cylinder

A cylindrical brush created with a specified number of sides.

Primitive cylinder.jpg

Sphere

The sphere is a rather complicated piece of geometry, so it would be wise to be careful with the number of faces you give the sphere.

Primitive sphere.jpg

Spike

Like the cylinder but all the top vertecies come to 1 central point.

Primitive spike.jpg

Torus

The torus resembles an inner tube or a donut. This primitive can easily mass polygons so keep the number of faces on this primitive low. Like The arch it has a special [| Tool].

Primitive torus.jpg

Wedge

The wedge is basically a triangular prism.

Primitive wedge.jpg

See also