MotionView User's Guide

Creating a Road Graphic

Creating a Road Graphic

Previous topic Next topic No expanding text in this topic  

Creating a Road Graphic

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Select Road Graphic Tools from the MotionView Vechicle Tools menu.

road_graphics_tools_menu_bar

Upon selecting, the following dialog is displayed:

road_graphics_tools_dialog_mv

The steps to create a road graphic are outlined below.

1.Selecting the input road file:
-On populating the input road file path, the road file is parsed to detect the road file type and populate the length and width of the road.  The input road file has data point written either in ASCII or binary format.  The parser reads the sampling of file along length and the width of the road to determine the original data sampling in the input road file.

road_graphics_slct_input_file_ex_mv

2.Graphic options:

The Graphic Options are preset to show a centerline and shoulder graphic.  Activating the Show graphic options check box will expand the dialog, allowing you to append the graphic options and their parameters.

road_graphics_tools_options_mv

a)Lane Divider Graphic:

This option is used to activate centerline in the output graphic.  The tools provide four options for centerline:

-Single Line
-Single Dashed Line
-Double Line
-Double Dashed Line

When a lane divider line is selected the width of centerline has to be selected.  The units of the width are same as the output graphic units.  Upon selection of dashed centerline (single or double), an additional option for dash length is activated and the units of dash length are again in graphic units.  By default, a preset centerline width and dash length is given.

road_graphics_tools_lane_divider_mv

A graphic representation of a road with different lane divider lines is shown below:

road_graphics_tools_lane_divider_example_mv

Single Line (left), Single Dashed Line (mid), Double Dashed Line (right)

b)Shoulder Graphics:

This option generates a shoulder on both sides of the road.  When the Shoulders option is selected, the width field of shoulder is activated and you can edit this field to set the shoulder width. A graphic entity comparison of a road with and without shoulders is shown below:

road_graphics_tools_with_shoulder_example_mv

Road with shoulders

road_graphics_tools_without_shoulder_example_mv

Road without shoulders

c)Color of Road Graphic Components:

The components of road graphic (road, centerline, shoulders) can be assigned different colors by selecting them from the drop-down menu.

road_graphics_tools_colors_mv

3.Close Graphic:

Select this option to close the road graphic to form a circuit.  When you select this option the Road Graphics Builder evaluates whether the road can be closed.  If not, the Road Graphics Builder displays this alert and the Close road graphic check box will be deactivated.

road_graphics_closed_road_option_mv

Graphic entity with the "Close road graphic" option not selected

road_graphics_closed_road_option1_mv

Graphic entity with the "Close road graphic" option selected

road_graphics_road_closure_error_mv

Road Graphic Closure Error message

The road closure criterion is based on following two metrics:

-The distance between start and end points is less than 1% of total road length.
-The angle between the starting and ending tangents is less than 40 degrees.
4.Graphic Units:

By default the graphic units are selected as “millimeter” with respect any input road file units.  This option gives you the flexibility to select the output graphic file unit: millimeter, centimeter, meter, kilometer, feet, inch, or mile.  The output graphic is thus scaled likewise.  All of the parameters in graphic options are according to graphic output units.

5.Output File Graphic Sampling:

You can also control the resolution of output file graphic by changing the "Total nodes along length” and “Total nodes along width” parameters, in order to make a coarse or a fine graphic.  By default, the Road Sampling check box is enabled to generate the output graphic using the same sampling as the input road file.

road_graphics_output_file_length_width_mv

A high number of nodes will result in more of the surface being created in the graphic and would be computationally expensive.  For larger files, it is recommended to lower the number of nodes for faster creation of a graphic.

road_graphics_output_sampling_example_mv

Fine mesh/high sampling example

road_graphics_output_sampling_low_mesh_example_mv

Coarse mesh/low sampling example

6.Load Road Graphic:

By default the Road Graphic that is generated is loaded to the model file.   The Load road graphic options provide you with an option not to load the Road Graphic onto the model after the creation of the .obj file.

road_graphics_tools_load_road_graphic_option_mv

7.Road Graphic Output:

Builder is designed as a one click interface to create and load graphic in the current MotionView window.  The Graphic Output is loaded as a Graphic System with FileGraphic as its components (road, left shoulder, right shoulder, centerline).

road_graphics_browser_example_mv

Depending on the graphic options selected, the components may vary from 1 (for single road component) to 5 (road with double centerline and shoulders).

The output graphic is saved as a Graphic System of file graphic in a MotionView model file.  By default, the output graphic model is saved in same working directory as the input road description file and has the same file name with an .mdl extension.  You do however have the option to change this destination by changing file path in the output graphic path.

road_graphics_mv_window_example_mv

The Output graphic has two attachments, “graphic body” and “graphic marker”, in order to seamlessly integrate the road graphic into existing models.  By default, the graphic body is resolved to the Ground Body and the graphic marker is resolved to the road marker (if it exists), or else to the Global Marker.

road_graphics_panel_attachments_tab_mv

8.Reusability of a Road Graphic:

The saved output graphic can be imported into any of the models using the import option.  Also along with the saved model file, the graphic builder saves the .obj in the same destination directory.  Both of these files can be reused.