Vehicles falling through actual terrain onto background terrain

Discussion in 'Content Creation' started by gigawert, Nov 7, 2015.

  1. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    I am making a small terrain, with a background terrain with hills, but I want the vehicles to contact the small terrain and not the background terrain. Currently the small terrain is not contactable but the background is. How do I fix this?
     
  2. NaxNir

    NaxNir
    Expand Collapse

    Joined:
    Jan 28, 2014
    Messages:
    618
    is the background terrain a mesh or another terrain block?
     
  3. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    I imported it as a heightmap which made it a separate terrain. So I think it is a terrain block.
     
  4. NaxNir

    NaxNir
    Expand Collapse

    Joined:
    Jan 28, 2014
    Messages:
    618
    That can cause issues (having more than 1 terrain block). Maybe try using a mesh instead (like the Baja Hills map), or try adding the main terrain AFTER adding the "ghost/background" terrain.
     
  5. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    Hmmm... I dunno how to do a mesh, and I've already started to work on the main terrain. I think what I'll do instead is double the size of the main terrain, have the track in the middle, and mountains around it.
     
  6. NaxNir

    NaxNir
    Expand Collapse

    Joined:
    Jan 28, 2014
    Messages:
    618
    Send me the backround terrain's heightmap, and I'll see what I can do (the whole level would be helpful) ;) i can't do anything today, but tomorrow i will be able to
     
  7. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    OK. I will send the PM asap. And I imported the heightmap into BeamNG with a lower highest elevation value to make the mountains into hills.
     
  8. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    Probably need to take the second terrain heightmap into another program and export it back
    as a .dae mesh. I'm noobing on this myself.:p
     
  9. randomshortguy

    randomshortguy
    Expand Collapse

    Joined:
    Aug 9, 2013
    Messages:
    1,562
    You can have more than one terrain in a map, but only ONE will have collision.
     
  10. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    Well then, how do I set a certain one to have collision?
     
  11. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    If you are looking to have a "distant terrain" it's probably better to make it a mesh and avoid potential headaches using
    two terrain blocks. Meshes have collision too.

    The collision issue with dual terrain blocks would probably necessitate creating the level you want to drive on LAST
    as that is the one Torque would assign collision to?....not sure. Seriously, do the mesh route, you won't regret it.
    As I learn how to do it I will pass on the info when I can.:cool:
     
  12. defib

    defib
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    491
    Uh, have you tried reopening the in game editor? Somehow, terrains you edit in game have no collision until you reopen the editor.
     
  13. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    Hmm, that sounds like a good idea. Maybe I'll try that.
     
  14. lukerules117

    lukerules117
    Expand Collapse

    Joined:
    Aug 18, 2013
    Messages:
    729
    I was having a problem like this when I was just trying to edit gridmappure a bit to have a small blocky area to see how cars could drive on it and how small the boxes should be for a car to handle, the cars just fell through the ground onto a second layer that I didn't even want to exist.
     
  15. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Losing collison with your single or primary terrain is common, that's why you pause physics during edits. When it's time to playtest, simply F11 back out of the editor and unpause physics. Pause again, F11, rinse, repeat.

    What gigawert is running into (insert collision pun here) is a different problem. AFAIK the only terrain which has collision is the last terrain T3D loads. The fix is very simple:
    1. Load your map with all terrains.
    2. F11 into the editor.
    3. Switch to the Object Editor (F1) - this is the normal edit mode with the Scene Tree on the right.
    4. Expand your mission group (in the Scene Tree) and find all of your terrains.
    5. For convenience you may want to move your terrains together on the list using drag-and-drop.
    6. Pick out the terrain you want to have collision and make it the lowest terrain on the list. Again, use drag-and-drop to change the order of the list.
    7. Save your level.
    8. Unload your level (File -> Exit Level).
    9. Load your level again from the level selection screen.
    10. Viola.
    In other words, just make certain that the terrain which you want to have collision is the lowest terrain on the Scene Tree / Mission Group list. Changes will not take affect until the level has been completely reloaded (eg toggling F11 will not do it). Of course you can also do the same thing by changing the order of the terrains inside your *.mis file using Notepad++.
     
    • Like Like x 1
  16. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    Interesting, I will try that.
     
  17. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,029
    It worked! Thanks!
     
    • Like Like x 1
  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