How to Create Road Tracks Using Road Architect in Unity

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey guys in this video we will learn how to easily create road system for your terrain using road architect in unity so without further ado let's get started before i start if you are interested in more advanced graphics related tutorial about unity then please give a visit to my patreon page link is given in the description alright let's continue first of all we need to download and install the road architect package in unity roar architect package is a free tool provided by micro gst you can find a link in the description to download this package however for this tutorial i'm gonna use this version of road architect which is provided by fest heroes and that is because this version is more updated and has less errors so to download the package simply click on this drop down arrow and click on download zip file once the zip file is downloaded simply right click and choose extract here then change the name of the folder to road architect so simply remove the master after the road architect okay and make sure the name of the folder is road architect not the road architect master otherwise you will have some issues then simply right click and copy the folder go to unity and in the asset folder paste your root architect folder here and this will automatically install roar architect in your project you can also verify that by going windows and go to road architect and you can see the road architect options here next i'm quickly going to create a terrain for our demo so i right click go to 3d object and choose terrain then to add a texture click on the painter in section go to layers and click on add layer so i'm gonna choose a layer this one okay let's also add some details on our terrain so for that i go to stampeder in section and choose any brush and simply click to sculpt the terrain okay and our demo terrain is prepared now let's see how we can add road on this terrain system creating roads using road architect is really very easy to add roads first go to windows road architect and choose create road system and this will create this road system in your scene hierarchy next to add road on the terrain make sure your road object is selected then go into the top view and press and hold shift on the keyboard and simply click to add this road nodes if you accidentally exit out of this mode then again select your road game object and while holding the shift key simply click to keep making this road nodes and as you can see our basic road system is ready now to explain this road system if i go to the road game object here you can see this is our main spline for the road and these are the node that we have created for this road system basically these nodes are used to control and design our road system so if i select the first node and here you can see you can move this node to left and right and our road system will automatically update it you can also move this up and down once you've created your main spline you can again adjust your path by moving this road nodes now let's take a look at some of the common parameter of this road system so i simply select my road and the first option is to update road so basically whenever you make any change in the parameters you simply click on update road and the changes will be reflected on your road road architect also provide an online and offline manual which i highly recommend you to check out if you're using this road system for your project next you can turn on and off gizmos and also change their color here it says that you can use ctrl and click to add node but for me sometime it doesn't work so i use shift key by the way you can also use shift key to insert an in-between nodes for example if i click here now we have added a node between these two nodes the next option to modify your road so if i zoom in here now you can change your lane from two to four or maybe six for now let's choose four lane you can also hide the shoulder part so simply uncheck this option and click on update row and you see this part is now gone you can also control the width and the definition of this road by adjusting these parameters you can also choose different kinds of default materials that comes with this package such as dirt brick or cobblestone you can also use your own material you go to this material section select this material and here you can change your material such as diffuse texture to apply a different texture on the road okay basically most of these parameters are pretty much self-explanatory i suggest you to try these parameters on your own and see how they affect this road system you can also create multiple road under this road system so let's say we want to create another road so i select this main road architect system and click on add road and now press ctrl and as you can see it doesn't work so i'm using shift and click to add rows okay as you can see now we have two roads under this road architect system now let's see how we can add more details like railing and road light and other stuff to this road system so for that first i zoom in here then select this node and click on open wizard and here you can choose different kinds of railing and different kinds of age objects such as barrel and this warning sign or you can choose this kind of lighting system so let's say we want to add this railing to our road so simply click on this railing and here you can see the railing is added in the center of our road one thing you will notice that this railing object is only added between these two nodes not for the whole road so let me quickly explain you how this node system actually work basically this complete road is divided into different part and those parts are controlled by this node what i mean by that this node is responsible for the design of this part of the road and this node for this part and so on and so forth so let's say i want a different kind of railing for this part so i simply select this node click on open wizard and now i can choose a different kind of railing such as this one and here you can see now we have a different kind of railing for this part to delete any detail object simply select the node and click on this cross icon and the detail is now gone basically any kind of detail you will add for this node will be added under this node next we definitely don't want this railing in the center of the road so to adjust the position on the design of this railing simply select the node and click on this arrow and here we have a lot of parameters to modify the shape and the design of this railing so let's say i want to move this railing to the left side so go to the horizontal offset option and move it to the negative left 10 meters okay next we want one more railing to the right side of the road so simply click on this copy icon and now we have another railing object next go to its parameters and in the horizontal offset option move it to the right edge of the road you can also add different kinds of object at the start and the end of the railing so simply go to these parameters and in the start and end object you can choose different options but for some reason it is not working so to simply remove this object i select none you can also save this railing design as a preset to add grilling to the complete road so for example i select the node and i click on the save icon and i call this railing left and save and save this one as a railing right now to add railing to the next node simply select the next node click on open wizard and here you can see these are the presets we saved so select left and this will add a link to the left and add to the right okay and now you can repeat the same process for other node to add railing to the complete road okay now we have added drilling to the complete road next i want to show you how this road system work with terrain objects like trees and grass so let's quickly add some trees on our terrain so again i select my terrain go to the pantry section click on edit tree and choose a tree okay and and simply click on mass place and place trees now as you can see some trees are placed in the center of the road so to simply fix this problem select the main road system and click on update all roads and as you can see these trees are removed and the same thing applied to the grass as well so let's quickly add some grass so i go to terrain and go to the detail section click on edit details and add grass texture and i select this grass okay click on add and let's plate some grass okay so now again to remove the grass from the road select the main road system and click on update all roads and voila the grass is now removed from the road i also want to add some emit lighting to the scene so again i go to lighting setting click on new lighting setting uncheck baked lighting option and simply click on generate lighting and this will generate a basic ambient lighting you can also adjust the road material if it is looking too shiny so simply reduce the smoothness you can also add multiple detail to a single node so for example let's say we want to add some road light so i again select the node click on open wizard and go to the other groups and choose this fancy railing with lights and here you can see we have road lights along with a new railing removing this node is also very easy simply select the node and click on this cross icon and now we are back to where we started it is time to test our road system i have imported this camera and vehicle from unity's vehicle tool package a link is given in the description to download this package and let's try how this works and as you can see our road system is working perfectly fine the collider on the railings are also working once you have finished setting up this road system then you can use a smooth brush to fix this hard edges of this terrain so simply select the terrain and choose the smooth height tool and simply smooth the details like this so now it's looking perfectly fine if you have any queries regarding this tutorial you can ask me in the comment section or join my discord server and before i wrap up huge thanks to all of my patreon supporters and special thanks to hannah sinconan dimidu alexander borrow triple seven brendan manion daniel florian adrian francois lobby hooden phoebe liu jb john marks josemar elvis joseph lavibe longley selassie nagal and underwater sun that's it for this video see you in the next one bye bye
Info
Channel: UGuruz
Views: 46,335
Rating: undefined out of 5
Keywords: unityguruz, uguruz, unity roads, unity road architect, unity road tutorial, unity roads on terrain, unity road system, unity traffic system, road architect unity, road architect unity tutorial, how to, unity race track tutorial, unity road creator, unity terrain roads, unity road maker, creating roads in unity, easy road 3d unity tutorial, terrain roads, unity terrain tutorial, unity terrain grass
Id: sS-qAdlID68
Channel Id: undefined
Length: 14min 58sec (898 seconds)
Published: Tue Apr 06 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.