Terrains: Is it possible to make one terrain larger?

Discussion in 'Content Creation' started by iheartmods, Jan 11, 2014.

  1. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    Is it possible to make a terrain larger...?

    If not, is it possible to create another terrain on the map (I'm trying to make some long straights in my map and one terrain isn't cutting it)
     
  2. Miura

    Miura
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    311
    Open the terrain object in the editor and change squareSize. That will only resize the ground, so you'll have to replace everything else. You could also import the terrain again, then you can change the height range too. Export heightmap first if you want to keep the shape and materials.

    While it's possible to make more than one heightmap, only one of them has collision, so that's not very useful yet.
     
  3. ultranew_b

    ultranew_b
    Expand Collapse

    Joined:
    Nov 12, 2013
    Messages:
    140
    I've seen a level that has a 20 km stretch in it, so yes its possible to go large. (8192 x 8192)

    :D
     
  4. LJFHutch

    LJFHutch
    Expand Collapse
    Environment Artist
    BeamNG Team

    Joined:
    Aug 4, 2012
    Messages:
    667
    I think you mean to add additional space onto a terrain (recrop it)? That is possible, a rough (and somewhat theoretical) outline is as follows:
    * Export the terrain heightmap and terrain layers.
    * Import the heightmap into world machine 2 and change the scale and resolution (it will have to be double the size afaik, because of the ^2 (512,1024,2048,4096 etc). You could also do this in Photoshop afaik because it supports 16bit images.
    * Export the new heightmap
    * Edit the exported terrain layers in Gimp/PS so they take into account the extra space you just added (to keep it simple just make the extra space black for all of them and white for a single texture, then fix ingame).
    * Import the terrain and edited layers back into BeamNG.drive
    * Offset the terrain object based on where you added the extra space (if it was to all sides equally you don't need to do anything, but for instance if you had a 1024x1024 terrain and added on another 512 west and east and 1024 to the north you would have to move it by 512 south so the features are still in the same world space and your static objects and vegetation line up correctly.
     
    • Like Like x 1
    • Informative Informative x 1
  5. JDMClark

    JDMClark
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    1,347

    Thanks for all of the information LJFHutch! My map in working on I kinda wish I made it bigger now but I wasn't sure how to get over 2048. While tackling a map as big as it is is a little bit too much for me to handle.. Wishing I made it bigger though
     
  6. LSDMT420

    LSDMT420
    Expand Collapse

    Joined:
    Aug 23, 2013
    Messages:
    386
    I just tried importing a 8192x8192 heightmap and get an error saying the max size is 4096.. Maybe I just configured it wrong some how, I attached the png if anyone wants to take a look.
     

    Attached Files:

  7. ultranew_b

    ultranew_b
    Expand Collapse

    Joined:
    Nov 12, 2013
    Messages:
    140
  8. LSDMT420

    LSDMT420
    Expand Collapse

    Joined:
    Aug 23, 2013
    Messages:
    386
    The Salt flats level is a 4096x4096 resolution map.
     
  9. Miura

    Miura
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    311
    I think the resolution is limited to 4096 pixels for now, even that is a recent addition to Torque. Bigger resolution would likely need paged terrains so the terrain is not loaded in one big piece.

    The resolution doesn't limit the physical size of the map. Just increase the meters per pixel value when importing (or squareSize after importing). Big maps have other problems, which is why the salt flats map is just a simple terrain with almost no features.
     
  10. LSDMT420

    LSDMT420
    Expand Collapse

    Joined:
    Aug 23, 2013
    Messages:
    386
    I changed the meters per pixel to 4 and imported a 4096 map, and wow it's huge! Thanks for the info, I didn't know you could increase the size in torque when importing. Terrain painting is going to take all day lol.
     
  11. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    There is an option to do that automatically btw. You tell Torque3D what angles to paint the current texture between, aka how steep the slope is. Very useful for getting cliffs etc painted. Make sure to save before doing this though as Torque3D will hang (not respond) until it has finished, which if you specify a large bracket may take longer than you are willing to wait.
     
  12. LSDMT420

    LSDMT420
    Expand Collapse

    Joined:
    Aug 23, 2013
    Messages:
    386
    Yea that is what I was talking about taking all day! On smaller maps it can take 30mins or more to autopaint the whole terrain, on my machine anyway.
     
  13. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    If you work out and set the correct minimum and maximum i find it can be done reasonably quick. Just look at what co ordinate you placed your terrain at then add 512 to that number for your upper limit and you may find it takes a lot less time (provided you haven't done this in the past). I wish Torque3D brought up a progress bar with a cancel button when you do this though as i have lost unsaved work due to setting the range to be way to high.
     
  14. ultranew_b

    ultranew_b
    Expand Collapse

    Joined:
    Nov 12, 2013
    Messages:
    140
  15. Straubz

    Straubz
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    370
    There is a simple trick to make it faster, just select your terrain block in the object editor and look for the "BaseTexSize" option, and change it to 512 rather than 1024, then change it back when your done. It made it ~70% faster for me, the results aren't as good but it saves time and has less chance of crashing.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice