L3DT users' wiki
Large 3D terrain generator

Part 5: Adding the road to the attributes map

You can apply the road to the attributes map in two ways; using the 2D editor, or using the 3D editor. I find it's best to start with the 2D editor first to do most of the brushwork, and then follow up with the 3D editor for the fine brushwork.

Thus, we start with the 2D editor…

Painting in 2D

To open the attributes map brush for the 2D view, select the 'Mouse tools→AM brush tool' menu option, as below:

:tutorials:l3dt:roads:attribbrushmenu_2d.png

This will open the attributes map brush. To paint the road surface, select the climate to be 'artificial', the land type to be 'asphalt', and the pattern to be 'solid' (as below):

:tutorials:l3dt:roads:attribbrushdlg.png

Using the left mouse button, click and drag on the main map view to apply the brush:

:tutorials:l3dt:roads:am2.png

If you need to pan the viewport, select the default mouse mode (arrow icon on toolbar, shown below), left-click and drag on the window to move the viewport, and then select the edit map mouse mode (pencil icon on toolbar, also shown below) to resume editing the attributes map. To zoom the viewport in or out, use the mouse scroll-wheel.

:tutorials:l3dt:roads:defaultmouseicon.png The 'default' and 'edit active map' mouse icons

Once you've finished applying the road using the attributes map brush, you should be looking at something much like this:

:tutorials:l3dt:roads:am3.png

Correcting painting mistakes (2D brush)

If you have the misfortune to make a mistake when applying the attributes map brush, you can easily correct it by selecting the 'temperate' climate and the '<auto calc>' land type, as shown below:

:tutorials:l3dt:roads:attribbrushdlg2.png

When you apply these brush settings, L3DT will re-calculate the correct land types within the brush radius. This is demonstrated below, I have made a mistake in my road placement by going over a cliff (below left), and then corrected the mistake by using the <auto calc> land type (below right).

:tutorials:l3dt:roads:am4.png :tutorials:l3dt:roads:am5.png
Oops, I made a mistake. Mistake fixed using the 'auto-calc' option.

In addition to this method of error correction, you can of course use the 'Edit→Restore to last backup' menu option, discussed above.

Painting in 3D

The very same attributes map brush that you used in the 2D viewport just now may also be used in the 3D view in Sapphire, which means you can paint the land type coverage directly onto the 3D terrain.

Please note that the brush tools are a little bit slower in the 3D renderer than the 2D renderer. This is due to the extra CPU load taken by the 3D renderer. Thus, it is recommended to do all your main brush editing in the 2D view as far as possible, and use the 3D brush for touch-ups.

Anyway, to open the attributes map in the 3D renderer, first open Sapphire, then select the 'Edit→Attributes map brush' menu item, shown below:

:tutorials:l3dt:roads:attribbrushmenu.png

For various reasons regarding (in)efficient 3D texture rendering, the use of the attributes map brush in the 3D view requires L3DT to first generate an image from the attributes map. Thus, when you first select the attributes map brush in Sapphire, you will be shown this little message box.

:tutorials:l3dt:roads:calcamimagemsg.png

When you click OK, L3DT will go away and calculate for a few seconds…

:tutorials:l3dt:roads:calcamimageprog.png

…and once complete, Sapphire will show you the attributes map draped across the terrain, and open the attributes map brush for editing:

:tutorials:l3dt:roads:3d6.png

The use of the attributes map brush in the 3D renderer is otherwise identical to the 2D brush case discussed in the previous section, so I shan't re-iterate the description of all the controls.

Correcting painting mistakes (3D brush)

Notwithstanding the last third or so of the previous sentence, I will re-iterate that to correct mistakes made with the attributes map brush, you should select the '<auto calc>' land type, as shown below.

:tutorials:l3dt:roads:attribbrushdlg2.png

The two screenshots below again demonstrate a mistake with the brush (below left), which I then correct using the '<auto calc>' land type to re-calculate the correct land type coverage (below right).

:tutorials:l3dt:roads:3d7.png :tutorials:l3dt:roads:3d8.png
Oops, I made a mistake. Mistake fixed using the 'auto-calc' option.

…and, of course, mistakes can still be corrected using the 'Edit→Restore' menu option in Sapphire.

Next page More calculations
 
tutorials/l3dt/roads/add_road_to_am.txt · Last modified: 2017/08/31 06:47 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki