Support Topics
 Support topics UC-win/Road

Methods for representing different road structures by switching between them

Maintenance and support service related information

In this instance, we will explain a method for switching and representing road structures within a single dataset, which can be useful when performing design considerations. UC-win/Road does not have a function to instantly switch between different representations of road geometry or cross-sections; however, by using the methods described below, it is possible to create multiple variations of these representations.

When changing the appearance of the road surface

The width and shape of the road remain unchanged; when changing the color or material of the road surface, a switching expression using the road fixture's road marking function can be used. The texture of the road markings, like the 3D models, can be displayed/hidden using the landscape display switching function, making it possible to switch between states such as the normal state and the colored pavement state, as shown in Figure-01. Road markings are generally overlaid within a single lane bounded by dividing lines; therefore, for example, when changing the pattern of the shoulder, special measures may be required, such as defining the shoulder area as a single lane. Also, areas defined as intersections cannot be switched, so caution is necessary.


Figure 1: Examples of color pavement pattern transitions

When changing the lane configuration of a road

If only the lane configuration changes without altering the overall width of the road, it is possible to switch between different configurations by using a 3D modeling plugin to create a 3D model of the road. In this case, for each pattern being represented, separate .rd files need to be created and edited individually, and models must be generated separately for each file.


Figure 2: Example of lane configuration changes (changing the number of lanes)

To output a 3D model of the road, select "File" > "Export" and then "3DS Export." Check only the box for "Roads" under "Output Target," and then proceed with the export. If you want to extract only a portion of the road, edit the exported 3DS file using a 3D model editing software like Shade3D, and delete the unnecessary parts. Then, edit the road cross-section to reproduce a different road structure (in Figure-03, this would involve reducing the number of lanes and widening the sidewalk), and perform the same 3DS export process followed by deleting any unwanted sections.


Figure 3: The generated road model

Next, to arrange the 3D models for each pattern, hide the road cross-sections within the range where the switching expression is applied. When hiding a cross-section, copy the cross-section set in the target area and create a separate cross-section for hiding, then set the texture to "hidden" in the editing screen. For car lanes, select "black" as the texture (or create a black texture with all RGB values at 0 if one doesn't exist) and check the box labeled "make black transparent" to hide it.


Figure 4: Image after hiding the cross-section view

To place a 3D model in a location where the road is not displayed, open the 3D model registration screen or the 3D model library and load the exported 3DS file. Models exported using the 3DS export function are generated at a location far from the placement point if they are outputted in a local coordinate system because the origin of the model will be the origin of the UC-win/Road space (the southwest corner). Therefore, it is recommended to adjust the origin position of the model after loading it, as editing and adjusting its position can be inconvenient. (If the model is exported using an X-Y coordinate system, it will be generated even further away)

To adjust the origin position, you can either press the "Center" button on the 3D model editing screen or enter the amount of movement in the "Origin Shift" field and then press the "Apply" button. Pressing the "Center" button will automatically move the origin to the center of the model. However, because the minimum unit for coordinate input when placing a 3D model is 1cm, if you are aligning it with a location where roads are hidden, there may be discrepancies less than 1cm, which can create gaps. In such cases, we recommend specifying the origin shift using values of approximately 1 meter in the "Origin Shift" field, referring to the coordinate range displayed in the lower right corner of the editing screen, and adjusting the origin position to better match the shape of the model (it is not necessary to perfectly center it).


Figure 5: Origin shift of the model

Place the 3D models, which have been moved to a different origin point, near the areas where roads are hidden, and adjust their positions so that they align with the hidden area. Switch the "Model Display" option in the menu, place the models corresponding to each pattern you want to represent, and edit the display settings as needed. By switching the "Model Display" option, it becomes possible to represent multiple lane configurations.


Figure 6: Arrangement of 3DS models and display switching settings

When representing transitions involving changes in road width

In the aforementioned method, since the terrain around the road does not change, when switching between patterns with different widths, the road model and the terrain may overlap or leave gaps. Therefore, if the road width differs for each pattern, it is necessary to create a 3D model of both the road and the surrounding terrain.


Figure 7: Illustration of how the system adapts when the road width changes

The procedure is the same as in the previous section, but when exporting to 3DS, check both "Roads" and "Terrain" under the "Output Target" option. If you select "Output separately by type" in the options, the roads and terrain will be output as separate 3DS files, which makes subsequent adjustments easier.

Load the generated road model and terrain model separately as 3D models, and arrange them using the same procedure as described in the previous section. When arranging the terrain model, it is not necessary to move the origin; by setting the coordinates of the "Position" parameter of the arrangement model to X:0, Y:0, and height:0, you can place the terrain model at the same location as the original terrain. After that, adjust the "Model Display" settings to switch between different views, and it will be complete.


Figure 8: Settings for drawing roads and terrain

When expressing transitions that include intersections,

If you are also changing the structure of the intersection, after creating the intersection, press the "3DS Output" button in the intersection editing screen and export each intersection individually to a 3DS file. Then, press the "Replace with Model" button, load the exported 3DS file, and in the editing screen, set all textures to be invisible (open the "Texture" tab, select each part, and uncheck the "Display" box). In the editing screen, press "OK," and when you appear on the model registration screen, select the model. This will make the entire original intersection a transparent model, preparing it for layering with replacement models. After this, load the 3DS-exported model into the regular 3D model registration screen, and then follow the same procedure as before to place and switch between models.


Figure 9: 3D data output and input for an intersection

When representing traffic flow by switching between patterns for each case

The methods described so far allow you to change the road shape, but the movement of vehicles as traffic flow remains unchanged. If you want to change the traffic flow movement in conjunction with changes in road shape, it is possible to export the traffic flow data as a micro-simulation dataset and load saved data. Note that this requires the Micro-Simulation Player plugin. In the "Record/Playback" menu under the micro-simulation section, select "Recorder" and then "Start" to record the movement of vehicles in the displayed traffic flow and save it in XML format. The saved XML file can be loaded in the "Edit Screen" section of the micro-simulation (select OpenMicroSimXML file), and by individually loading multiple patterns and adjusting the playback time, you can represent different traffic flow movements that correspond to changes in road shape. Because the display switching of roads and the movement of traffic flow through micro-simulation are not linked, they must be operated separately.


Figure 10: Switching traffic flow patterns using micro-simulation functionality

Texture sharing for switchable models

For reference, when exporting roads and terrain as a 3DS file and loading it as a model, textures commonly used for paved surfaces or ground will be loaded multiple times, once for each 3DS file. This increases the file size accordingly. In such cases, after importing the 3DS file, temporarily export the model in RM format, then re-import the RM file. This allows the same texture to be shared among multiple models, preventing an increase in file size.



(Featured in the Summer Issue of Up&Coming '23)

FORUM8

LOADING