Announcement

Collapse
No announcement yet.

A few questions about terrain size

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

    A few questions about terrain size

    Hi All,

    So I've started looking in to using UE4, and I've got a bit stuck with Terrain sizing, in particular, what determines the actual, physical size of a terrain Within UE4 itself.

    I come from a background of terrain making within the Arma series of engines, and we handle things a bit different, specifically, we specify a heightmap resolution, and a cell size, and these multiplied together give me the physical size of the terrain, for example 1024x1024 with a 5m cell size, I have a 5.1km terrain.

    The way I see it now, is if I have a 1009x1009 heightmap, and import that in to the unreal engine, there is no equivalent of "cell size" the terrain imported is simply a 1:1 scale, meaning my terrain is going to be 1009x1009, is this correct? I'm pretty handy with L3dt, and just started using world machine, so any pointers for using those with UE would be great, sorry if these are pretty n00b questions, so but I'd like to get an understanding of how this all works before trying it out and banging my head against a wall because I've missed something fairly trivial.

    Many Thanks

    Nigel

    #2
    Anyone? :|

    Comment


      #3
      Originally posted by NigeyS View Post
      Hi All,

      So I've started looking in to using UE4, and I've got a bit stuck with Terrain sizing, in particular, what determines the actual, physical size of a terrain Within UE4 itself.

      I come from a background of terrain making within the Arma series of engines, and we handle things a bit different, specifically, we specify a heightmap resolution, and a cell size, and these multiplied together give me the physical size of the terrain, for example 1024x1024 with a 5m cell size, I have a 5.1km terrain.

      The way I see it now, is if I have a 1009x1009 heightmap, and import that in to the unreal engine, there is no equivalent of "cell size" the terrain imported is simply a 1:1 scale, meaning my terrain is going to be 1009x1009, is this correct? I'm pretty handy with L3dt, and just started using world machine, so any pointers for using those with UE would be great, sorry if these are pretty n00b questions, so but I'd like to get an understanding of how this all works before trying it out and banging my head against a wall because I've missed something fairly trivial.

      Many Thanks

      Nigel
      Check out the Landscape docs as they a lot of information on topics like this.

      Comment


        #4
        Thank's Sam,

        I have read those docs, and unless I'm missing something fairly basic they don't really go in to much details about what the problem is I'm having, quite simply, if I import a heightmap from world machine, that is 1009x1009 and is set within WM to be 8km x 8km how do I set that 8km x 8km size in UE4, leaving the heightmap res at 1009x1009 and the scaling all set to 100 brings some issues, the height is all over the place, sometimes way to small, sometimes way to large, and the terrain is definitely not 8km x 8km as I can walk around the entire terrain in a minute or so..

        Comment


          #5
          The scale factor of the landscape actor is the distance between landscape vertices in unreal units. Compared to ArmA, having a scale of 500 on X any Y axis would mean that the quad (cell) size of the landscape is 5 meters. By default the landscape has scale factor of 100 on every axis, which means the quad size is 1 meter.

          When you import a heightmap, you just need to know the XY resolution. If the heightmap is 4 meters per pixel, you scale your landscape to a factor of 400 on X and Y axis. I believe the engine automatically pads the imported heightmap to match the dimensions of UE 4 landscape.

          I haven't found a nice way to scale the height of the landscape yet, I just eyeball it usually and guestimate using the ruler tool and adjust the Z scale accordingly.
          Last edited by jonimake; 06-12-2015, 02:49 AM.

          Comment


            #6
            Originally posted by jonimake View Post
            The scale factor of the landscape actor is the distance between landscape vertices in unreal units. Compared to ArmA, having a scale of 500 on X any Y axis would mean that the quad (cell) size of the landscape is 5 meters. By default the landscape has scale factor of 100 on every axis, which means the quad size is 1 meter.

            When you import a heightmap, you just need to know the XY resolution. If the heightmap is 4 meters per pixel, you scale your landscape to a factor of 400 on X and Y axis. I believe the engine automatically pads the imported heightmap to match the dimensions of UE 4 landscape.

            I haven't found a nice way to scale the height of the landscape yet, I just eyeball it usually and guestimate using the ruler tool and adjust the Z scale accordingly.
            Thanks for that pretty much exactly what I thought, so basically whatever the per pixel resolution is in WM.. for example my test map is 3.94m per pixel, that then becomes the x,y scale multiplier, mine would be 394 for x,y ? and yes Z scale seems very touchy, where do I find the ruler tool btw? it's escaped me !

            Nigel

            Comment


              #7
              I eyeball as well because that's the final judge anyways. If your terrain is numerically accurate and looks off- that won't help anyone.

              If you go into top view. Click mouse wheel drag on the map it should start to draw a line with unit size.

              Comment

              Working...
              X