Jump to content

Road tracer


Marcousik
 Share

Recommended Posts

Hello,

This shows the result of how a script is calculating and casting a road under different terrain conditions, various hills and various slopes, and a few exagerations.

The script is not casting a spline; it lets the road follow the terrain, as a group of workers would do if they had to build a road: They would not cut all hills to pass the road through, but let the road follow the hills and they would look that the road keeps straight in its large part. That's exactly what I wanted the tool to do.

If you want the road to be easy drivable and calm, just use the smooth terrain tool on the different place where the road should go; The road will just follow the terrain mouvement.

 

I can tell the roads are cast very quickly only using the start() function - only a few seconds for tons of road segments.

Such a road as in the video drops a little bit the FPS because it is made of 100 of little models generated, placed, textured and shaped, with max view range.

The performances for this is still very acceptable, after a few corrections done on the models size and tables incrementations variables. There is always the possibility to simply reduce the view range of the models to win more FPS.

At the end I can say it was very fun and challenging to make this tool, and I 'm really happy because it now works as I expected it should.

 

 

Here is a view from the editor: 

It is very simpe, just tell the sccript where you want the road to go through. It is not even necessery to place the markers on the terrain.

The road will start from "StartRoad" and go to "EndRoad", building a curve that will approach the "Curve" point.

1760415149_Capturedcran(23).thumb.png.cf7305dd772a7f4aea458fffc5fec8e1.png

 

Here is a littl bit of work in progress:

  • Like 3

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...