Brush

From Tygron Support wiki
Revision as of 12:46, 21 August 2014 by Rudolf (talk | contribs)
Jump to navigation Jump to search

After reading this page:

  • you've learned what the brush is.
  • you've learned how the brush is implemented in the Tygron Engine.
  • you've learned how to use the brush.

The brush

The brush is a tool in the editor, which allows you to select an area in the 3D World, specifically within the game area. By correctly using the brush, it is possible to intricately draw a variety of components or properties in the Tygron Engine, such as construction and ownership.

How is the brush implemented in the Tygron Engine

File:Construction18.jpg
The Brush panel

The brush is not directly available in the editor. Instead, it appears when it is required while using the editor. Its effects and abilities are directly related to the type of component you are using the brush for.

How to use the brush

The brush panel will appear automatically when you need to draw in the 3D World. The Brush will automatically have certain options available or unavailable based on the specific thing you wish to draw. For example, if you wish to draw a road, you will only be able to do so in lines. If you wish to draw terrain, you do not have the option to remove the terrain, etc.

Drawing

There are several ways to draw using the brush. Depending on what you are drawing, the following options may be available. (Note that in the following description, selections are created, but not yet applied. There will be no actual effect on the 3D world until the selection is applied later on.)

Drawing modes

Several drawing modes exist to allow you to draw in the 3D world.

Rectangle
The default drawing mode. When you make a selection, you click and hold the mouse button, and drag the cursor to another location on the screen. When you release, the rectangular selection is placed. The two opposite corners of the rectangle will be the place where you clicked, and where you released the mouse button. You can draw another rectangle by selecting a different location on the map and drawing another rectangle in a similar manner. By starting the rectangle on a place on the map which is already selected, you will subtract the rectangle you are currently drawing from the selection.
Single block
A selection type for buildings which have a single-sized location, such as fountains. When you make a selection, you click in a single location in the 3D world. The selection will be in that location. You can only select one location in total If you attempt to select another location after already selecting a first one, the first selection will be cleared. If the building you are drawing is already placed in the world, a second selection cannot be made at all, until the the building is removed.
Line
The default drawing mode for roads. When you make a selection, click and hold the mouse button, and drag the cursor to another location on screen. When you release, a selection in the form of a line is made between the place where you clicked, and where you released the mouse button. You can only draw one line at a time. If you attempt to draw another line before applying the selection, the previous selection is cleared.
Polygon
Use this mode for drawing free-form areas. When you make a selection, click and hold the mouse button, and drag the cursor to another location on screen. The path along which you move the cursor will form the edge of a polygon, with the final part of the edge being a direct line between the place where you clicked, and where you released the mouse button.

Valid and invalid selections

When you begin drawing, you may see that part of the world is a blueish-grey, instead of the usual color. The parts of the world that are colored this way are not valid locations for your selection. If a part of your selection overlaps with these areas, that part of your selection will be red instead of green. This means that part of your selection is invalid (for example, because you try to place a building, but a building already exists in that location). When applying your selection, the red parts are ignored. Only the green part is applied.

Clearing a selection

If you feel it necessary to remove your current selection entirely and draw anew, you can use the "Clear Selection" button. This removes the selection you have made from the world, without applying it.

Applying

When you have made a selection, you can click "Apply Selection". At this point, the selection is used to place the building, zone, ownership or anything else you might have been drawing, in the 3D world.

Removing

The brush can often also be used to remove elements or properties from the game area. To do this, you can set the "Remove" setting to "On". You will notice your area for valid selections will probably be inverted. Places where you were unable to create a valid selection could now be valid, and places where you could make a valid selection will likely be invalid. This is because when you wish to remove something, you must select part of it. While usually, when you wish to draw something, it cannot be placed again in the same place.