Announcement

Collapse
No announcement yet.

Realtime road creation?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Realtime road creation?

    Hi, again everyone!

    I am just wondering it is possible to create roads on a terrain in real time(for example like in Black&White2, Egypt, Caesar, Anno).

    Either texture painting or actual creations of road static meshes (although I think that the 1st method is much better) to follow the terrain exactly and have the ability to be referenced by scripts.

    For example like in this video: http://www.youtube.com/watch?v=8s9ThLnZnmc

    The main question here is whether it is possible, not necessary how to do it.

    Thanks!

    #2
    You can blend road texture into terrain material with simple b/w mask. Question is if there is a way to modify that texture mask in real time. You also could use vertex color to blend road, but then again question is if we can access vertex colors in runtime.

    Scripted textures do not work for now.

    Comment


      #3
      Another possible option is to use decals. Probably a better solution then static meshes but suffers from similar performance problems.

      Comment


        #4
        Decals are effectively static meshes as far as rendering is concerned - meshes would probably be easier to program with, however.

        Comment


          #5
          Thanks for the replies! I don't know how to use decals, but that sounds interesting!

          As for static meshes - I was thinking that if it is static meshes, then it would not be too much of a problem, as long as the surface is flat, with no elevation variation. So for the level I am working on, I have to make sure that only the flat areas allow building on them, I guess, because the road static meshes will not connect together properly if built over a hill, etc.

          Comment


            #6
            Thanks for sharing xnasorcerer, not quite what I am looking for, but could come in handy!

            Comment

            Working...
            X