Hi Guys ,
Inspired from the Autodesk’s learning channel for creating City Blocks in 3ds max , as shown in the below link ,
I thought why not take this a level further and implement something like this within Unreal Engine. So I started working on this , and my first week was totally focussed on automating the creation of road structure. I will be preparing video demonstration in few days, but here are few screenshot to better explain how it works.
Step 1 : A simple crossroad junction is created , with all the mathematical logic for placing the meshes and splines at correct location totally written in C++
Step 2 : You can place the junction at any location and increase the width and height as you wish.
Step 3 : Create other junctions as well. Do not try to place the junctions manually!! Use the respective parameters to change the position.
In the above picture , you are duplicating the road intersection blueprint and changing horizontal position to 4750 to place it to the extreme left , and deleting the left connector to remove the extra mesh , using the “Delete Left Connector” parameter
Step 4 : Duplicate this junction 4 times , each with 90 degree rotation , to place them at the correct location from the axis.
Step 5 : Create junctions at the extreme corners , this time deleting two unwanted meshes from two sides
Step 6 : You can change the default texture of the mesh at any section of the road , as shown below :
Create varieties of textures in Photoshop, according to your project requirement.
If you feel like the texture is in the wrong direction , you can rotate each road mesh , as shown below :
By default the four meshes at four end will have 0 , 90 , 180 and 270 rotation respectively , for usual alignment.
Step 7 : Create connecting roads by dragging the road placeholder at each side.
The texture tiling will adjust according to the length of the road mesh you are dragging
[FONT=Arial Narrow]Step 8 : Adding extra road branches. See below