Skip to content

K3rhos/RoadTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍Overview

This tool is a work in progress procedural road system designed to avoid the need for manual 3D road modeling/mapping.

The road layout is controlled by an editable spline, allowing you to easily adjust curves position and direction to fit your environment. No premade road model is required, the shape of the road is automatically generated using customizable parameters. (Width, Material, ...)

This system also procedurally handles sidewalks, decals, and streetlights placement, removing the need to manually place props along the road. All elements adapt dynamically based on the road’s configuration.

NOTE: Assets shown in some of the screenshots/videos (e.g. Models, Materials, Textures...) are not featured with this repository

Overview

RoadToolDemo.mp4

🔧Features

  • General features & Optimization

General

  • Road generation

Road

  • Road lanes

Lanes

  • Sidewalk along the road

Sidewalk

  • Road surface decals

Decals

  • Lampposts auto generated along the road

Lampposts

  • Road surface physics

Lampposts

  • Road terrain

Lampposts

  • Road terrain sidebar

Lampposts

📀Setup

Road texture

I really recommend using a triplanar shader for the road texture otherwise you will still face some issue with "seems" at some places when using a standard shader.

Example:

Road Material Standard Shader

Road Material Triplanar Shader

Sidewalk texture

The sidewalk texture can be just a regular seamless texture, however if you want to use a sidewalk texture with an actual sidewalk border, here is how it should be setup for the border to face the road properly:

Sidewalk Texture

Demo:

Sidewalk Texture Demo

Demo (With a proper texture):

Sidewalk Texture Demo (With a proper texture)

📜Credits

About

Allow you to easily create fully modulable roads

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages