The SplineToRoadIntersection tool can be used to create complex road intersections.
In contrast to the other two tools, this tool requires multiple splines to create a single intersection.
A minimum of two splines are required, but for most intersections you will need 3 or 4 or even more splines.
The splines for this tool define the outline of the intersection.
Place splines along the outline of the intersection. These splines do not have to form a continuous outline. Gaps are allowed.
The tool will bridge gaps by connecting the end of one spline to the closest starting point of another spline.
The splines have to all run in counter-clockwise direction around the intersection!
After you have placed the splines, click on the script in the menu and a small window will open with the scripts settings.
In the Material Settings section, the top line allows selecting of a custom diffuse texture, the middle line selects the normal texture and the bottom line selects the specular texture.
The UV Scale slider determines the scale of the texture on the intersection. When you use custom textures you may need to adjust this in order for the texture to properly fit the intersection.
Be aware that a wrong setting here may cause a "UVs out of range" error! Should you see this error, delete the previously generated intersection and try again with a different UV Scale setting.
The three sliders for line color represent Red, Green and Blue values respectively from left to right and the "White" and "Yellow" buttons provide easy access to predefined white and yellow colors respectively.
Please Note: This tool cannot generate traffic splines or complex road markings. You will have to create traffic splines manually and for road markings you can use the SplineToRoadMarkings tool.
Please Note: When using the "Create Water Puddle Surfaces" option, a additional shape will be created that will create water puddles during rain and wetness. You can see the effect by setting the wetness via the seasons visual control script. Please be aware that this shape will need to be at terrain height, as this effect unfortunately does not work as a terrain decal. When using this option you may need to re-create the intersection after making changes to the terrain height.
To generate the intersection, make sure you have selected all of the splines for the outline of this intersection in the scenegraph and then click the "Generate intersection" button.
The created intersection will be placed in a transform group named "intersections" at the bottom of the scenegraph.