Announcement

Collapse
No announcement yet.

RuntimeMeshComponent terrain with heightmap

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

    RuntimeMeshComponent terrain with heightmap

    Hi,

    I need to create a landscape with the new RMC and a heightmap.

    Anyone knows a good place to start? Perhaps there is someone who already did this?


    #2
    I haven't used the RuntimeMeshComponent so far, but I implemented a similar system with the ProceduralMeshComponent source code 1.5 years ago. It should be relatively straight forward, iterate through all pixels and add two triangles per face. You should probably also look into sharing vertices between triangles. Another bit tricky thing is to get the normals right, because you have to look at adjacent faces and blend the normals.

    Comment


      #3
      Thanks for the reply.

      Ive been trying to loop a heightmap file of like 100 x 100 px, however when i just want a 512x512 the loop is just to big.. Do i miss anything here?

      Comment


        #4
        I think the free voxel terrain plugin has this feature. Open source.
        Edge of Chaos RTS
        "Age of Total Heroes" - RTS Pathfinding and Movement System for UE4
        RTS Camera C++ Tutorial

        Comment

        Working...
        X