Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Splines on Top of terrain

Discussion in 'General Discussion' started by Namysoft, Mar 30, 2022.

  1. Namysoft

    Namysoft

    Joined:
    Sep 8, 2018
    Posts:
    10
    Hello all,

    I've been looking for a solution to my problem for a while but can't find one so far.... I or the player would like to build paths/roads at runtime. Like in the game Manor Lords. I think it can be done with splines, but I have no idea how to put the generated mesh and textures on the uneven terrain after creation. I don't need a finished code, but rather an idea how to realize this.

    Manor Lords road construction, second 0:17



    Thanks a lot and best regards
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,483
    As far as I can tell, this is simply a basic heightmap terrain.

    They have a terrain system that allows modification of terrain heightmap at runtime, and when user paints roads, they paint "road texture" over it, and flatten it a bit. There are also decals placed on top of the roads, but that's pretty much it.

    Same thing like Sim City 4 terrain tools, or Cities Skylines terrain tools and so on.
     
  3. Namysoft

    Namysoft

    Joined:
    Sep 8, 2018
    Posts:
    10
    Hey,

    ah okay, maybe this could be a better solution. I will try it like this.

    I will post an answer if its working.

    greetings
     
  4. Recon03

    Recon03

    Joined:
    Aug 5, 2013
    Posts:
    840


    This is a bit older post, but I wanted to correct this... Unreal does not have runtime support for landscapes. They are using RVT, and render to texture for the painting most likely..

    They also may be using a mesh for the terrain itself, since this is the only current way in Unreal... its an area that Unreal Lacks..

    But with Unity, look up Microverse Roads, Rowlan just made something like this... Not sure if he has it working in runtime or not, but he does for editor...

    Look up Microverse and Microverse Roads.