Введение в картостроительство

Браши – основа 3D левел дизайна.

Блоки. Цилиндры. Конусы. Это не звучит внушительно, но эти фигуры и есть основа архитектуры в Хаммере. Вы можете вырезать, сжимать их, растягивать... Вы можете комбинировать эти элементы, создавая все возможные и невозможные формы. Этот способ называют constructive solid geometry (CSG) это и есть главный прием работы в Hammer. Создание брашей расписано в разделе Creating Brushes.

Once you create a brush, you'll assign to it a texture, which is a pre-existing bitmap image created to make the brush resemble something in the real (or some imagined) world. Examples of textures include bricks, rock faces, and water.

Entities

You say you want more in your game world than inanimate solids? Well then, what you want are entities. Where brushes are "world objects" used to form the basic inanimate structure of your level, entities are the objects that move, have sound, or are interactive. An entity is anything that performs some type of operation or task within your level. Models are a type of entity.

Entity Types

There are two main types of entities: point-based and brush-based.

Point-based entities exist only at a certain exact point. Examples include lights, monsters and players. (Monsters do have an area, but this is defined by the game code and is not modifiable from within the map.) Some point entities are just that: points. For example, the env_beam entity, which controls beam effects, uses two point entities as targets; you place the two points and the beam of light runs between them.

Brush-based entities are entities that depend on a brush for their physical presence, like doors, platforms, and other moving objects. A trigger is another type of brush-based entity; it requires that you indicate an area or activation field which controls the trigger's operation. The model entity points at a model file on disk that is rendered by the engine.

The creation of both point and solid-based entities is described in the section entitled Creating Entities.

Putting it All Together

Using these simple components, you can create a virtually limitless variety of levels. Whether its a barren room or a vast, complex world, you'll do it by using solids and textures to create your architecture, then adding models, lights, monsters, buttons, moving platforms and a host of other entities to bring your creation to life.

Once everything is in place, you will need to compile your level by choosing Run Map from the File Menu. This is the process that turns your collection of solids and entities into a playable level that you can run in the Source Engine. Although the compiling process happens when you think you've finished your level, knowing something about this process ahead of time can save you many headaches.

 


© 2004 Valve Corporation. All rights reserved. Valve, the Valve logo, Half-Life, the Half-Life logo, the Lambda logo, Steam, the Steam logo, Team Fortress, the Team Fortress logo, Opposing Force, Day of Defeat, the Day of Defeat logo, Counter-Strike, the Counter-Strike logo, Source, the Source logo, Hammer and Counter-Strike: Condition Zero are trademarks and/or registered trademarks of Valve Corporation.  Microsoft and Visual Studio are trademarks and/or registered trademarks of Microsoft Corporation.  All other trademarks are property of their respective owners

Хостинг от uCoz