Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Projection of road on terrain

Discussion in 'Editor & General Support' started by Simunek, Dec 25, 2016.

  1. Simunek

    Simunek

    Joined:
    Jul 15, 2016
    Posts:
    49
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    You could just draw the path with the existing texture tools.

    Or check out the terrain api and asset store for relevant tools to do this.

    In theory with a spline or b-spline you could write your own path tool.
     
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,943
  4. DawidMoza

    DawidMoza

    Joined:
    Nov 24, 2016
    Posts:
    216
    It's all about the assets now
     
  5. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,943
    You can always build your own solution using the Catlike Coding spline tutorial as a starting point. Creating a road through this method would simply be a matter of procedurally generating your own road mesh with the spline as a guide.

    http://catlikecoding.com/unity/tutorials/curves-and-splines/
     
  6. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,056
    MegaFiers also has a conform modifier for dong what you need.

    Or you use their other asset MegaShapes which will map a loft to the terrain or map the terrain to the loft.

     
  7. Deleted User

    Deleted User

    Guest

    the OP's picture shows a spline that projects a decal
    https://blogs.unity3d.com/2015/02/06/extending-unity-5-rendering-pipeline-command-buffers/

    something like that ^
    mixed with spline things .. (never done these things myself, but know of them)
    splines + decals

    and the things people are posting are meshes made from a spline
    ... theres all sorts of stuff about splines

    .... QuakeWars mod tools / level editor had that system of road making...
    the terrain is ANY shape, and it just projects a decal texture onto the terrain, based on a spline.
     
  8. Simunek

    Simunek

    Joined:
    Jul 15, 2016
    Posts:
    49
    Thank you very much :D In the end I used a lot from this and it was very helpful! Thank you very much once more!!! :D
     
  9. la-tornade

    la-tornade

    Joined:
    Jul 21, 2015
    Posts:
    7
  10. pantang

    pantang

    Joined:
    Sep 1, 2016
    Posts:
    219
    Fancy making that into a little asset? Id happily pay a few quid to save me my current headache. All I want to do is drop a script on a object, click a button and have the unity terrain move to meet it. Maybe a little border area or slope if you were feeling fancy.