Methods for resolving overlaps between cut slopes of adjacent roads
In this issue, we will introduce the terrain editing functions in UC-win/Road Ver17.1, which were featured in the New Year's edition, and demonstrate their actual usage. There are many situations where you need to edit terrain, and in this article, we will focus on how to handle cut slopes between two adjacent roads. In areas where two roads are adjacent, such as at junctions, merging points, or sections where upper and lower lines are separated, the cut slopes of each road may overlap. With Ver17.1, it has become easier to edit terrain in such locations.
To create a terrain patch, the mesh of the terrain is made finer than usual. First, click on the area of the terrain that you want to edit in detail, and when a yellow triangular mesh appears, select "Create Terrain Patch" from the right-click menu. Specify the editing range with a rectangle, and confirming this will generate a terrain patch, allowing for more detailed terrain editing (Figure 4).
 |
 |
| Figure 1: Overlap of cut slopes |
Figure 2: Creating terrain patches |
 |
 |
| Figure 3: Specifying the extent of terrain patches |
Figure 4: Terrain patch editing screen |
We will add elevation points to the terrain patch and subdivide the mesh. Click on the terrain patch, then select "Add Vertex" from the "Edit" menu. Elevation points will be added at the clicked location, so add points around areas where the cut slopes overlap. While performing this operation, the road's cut and fill sections will not be reflected in the terrain. Once you have finished adding points, click the "Generate Road" icon to update the cut and fill sections on the terrain.
 |
| Figure 5: Original terrain patch |
 |
| Figure 6: Adding vertices |
 |
| Figure 7: Immediately after adding a vertex |
 |
| Figure 8: Regeneration of cut slopes |
 |
| Figure 9: Terrain patches after regeneration |
Click on the added points, enter the elevation, and adjust the terrain's undulation. By setting the height of the terrain to be the same as the road surface only in areas where cut slopes overlap, it is possible to eliminate the unnatural state where the cut slopes are overlapping. In addition, vertices within a terrain patch can be moved horizontally by dragging while holding down the Ctrl key, and vertically by dragging while holding down the Alt key. You can also select multiple points by pressing the Ctrl key while selecting an elevation point, allowing you to adjust them simultaneously.
 |
 |
| Figure 10: Changes in elevation |
Figure 11: State where the overlap of the cut soil has been resolved |
 |
 |
| Figure 12: Before the movement of the elevation point |
Figure 13: After moving the elevation point |
Each time you check the final result, the "road generation" process is required. However, because it's possible to quickly add vertices, change elevations, and generate roads, this version allows for more efficient editing compared to previous versions.
Methods for collectively adjusting a wide range of terrain features
In the explanation mentioned earlier, we described how to adjust elevation points one by 1 in detail; however, it is also possible to adjust a large area of terrain collectively.
First, use the "Select Vertex" tool in the panel to define an area where you want to level the terrain. Clicking creates a zone boundary, and pressing Enter after creating the zone selects all the elevation points within that zone simultaneously. Zones can also be defined across multiple terrain patches. While holding down the Alt key and dragging with the selected points, you can move them up or down relative to each other. Additionally, if you click on one of the points and enter a value for its elevation, the elevation of all the selected points will be adjusted to match that input value, effectively leveling the terrain.
 |
| Figure 14: Vertex selection |
 |
| Figure 15: Enclosing the editing area with zones |
 |
 |
| Figure 16: Selected vertex |
Figure 17: Changing the altitude (to a level state) |
Utilize external terrain information
To reproduce more accurate terrain, we sometimes incorporate publicly available terrain data; however, even in these cases, the same terrain editing functions are available within UC-win/Road.
There are mainly the following methods for incorporating external terrain data:
・Terrain generation from GSI tiles
・Terrain generation using TIFF images such as those from SRTM
・Importing LandXML files
・Importing shapefiles
・Importing IFC files
・Conversion of point cloud files to terrain patches
LandXML files, Shapefiles, and IFC files can be imported by selecting "File" then "Import" from the menu. You can specify coordinate systems, set import ranges, and configure whether to create new data or merge it with existing data, allowing you to convert the data into terrain patches.
Point cloud files can be converted to terrain patches within the point cloud menu after loading the point cloud data. Because point clouds often contain a large number of measurement points, processing such as thinning can be performed.
Furthermore, if you have any existing elevation data, it can be imported and used as a terrain patch by converting it to a proprietary XML format. You can load the data through the "Edit" - "Patch" menu, and it is also possible to export terrain patches into an XML format. The format of the XML file can be checked by opening the exported file with a text editor like Notepad.
We hope you will utilize the improved terrain editing functions to create better VR data.