1.7. EXPORTING VECTOR DATA:
We need to make sure the vector files are correctly set up for use as splines in UE4. A common problem is splines being broken into segments. We need to connect them together to prevent breaks in our UE4 spline meshes at a later stage, which is what we cover in this section of the tutorial.
Load the rail shapefile you exported back into a new Global Mapper window:
- Open a new instance of Global Mapper (you can have multiple open at one time, but we don’t need the previous one we’ve used, so you can close that.
- Drag the rail vector .shp file into the main window.
Using the ‘Digitizer Tool’ to select part of the rail vector, you can see it’s separated into discreet segments:
Connect segments that should be connected:
- Using the ‘Digitizer Tool’ select all line segments that should be connected (since this is a single rail line, that’s all of them)
- <Right-click> select ‘COMBINE – Combine Selected Line Features’.
Export the combined vectors to a new .shp file:
- ‘Select Export Format’ > ‘Shapefile’
- On the ‘File Selection’ tab of ‘Shapefile Export Options’ check ‘Export Lines’.
- Navigate to your exports folder and give the file a useful name.
- We’ve already exported data to the correct bounds so we don’t need to do that again.
- Click ‘OK’ to save the new .shp file.
Repeat Steps 1 to 3 for the road and trails vector files.
[NOTE: The road and trail vector files are likely to be more complex than rail. You should connect only those vectors that form part of the same road or trail.]