1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

Unsolved terrain collision height increases as you get further away from 0,0

Discussion in 'Mod Support' started by Average Person, Jan 22, 2019.

  1. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    389
    I stumbled upon this odd bug as I was setting up my map, when I started driving around the terrain I noticed the vehicle was floating, I restarted the map and tried again, it was fine.
    I started driving away from 0,0 and noticed I was floating again, I decided to take a screenshot at 0,0 and then at 8192,8192 to show this odd bug *This effects both the groundcover & collision height*
    20190121174741_1.jpg 20190121174651_1.jpg
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    BeamNG.Support
    Staff Member

    Joined:
    Aug 5, 2012
    Messages:
    12,635
    Is the terrain close to the world 0,0,0 coordinates?

    If not, and instead is very far, then probably you are going into precision issues.
     
  3. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    389
    it was 0,0 I even centered it by setting it to -4096 on the x and y and 0 on the z
    I ended up just setting up a new map which seemed to fix it, though I don't know if I would really count that as solved.
     
  4. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    389
    I encountered this bug again and I can't figure out what's causing it, this is a completely different map and I've tried restarted the game.
    I'd also like to mention that the terrain is only offset 40 meters from 0,0 in the x and y direction and 0 on z so I doubt its a floating point accuracy issue.
    20190210172750_1.jpg
     
  5. DuneWulff

    DuneWulff
    Expand Collapse

    Joined:
    Apr 25, 2016
    Messages:
    874
    What is the scale of the map?
    I know that really, really large square sizes can make the car clip through and float over terrain.
     
  6. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    389
    The square size is 1 and the map is only 4096x4096
     
  7. Nadeox1

    Nadeox1
    Expand Collapse
    BeamNG.Support
    Staff Member

    Joined:
    Aug 5, 2012
    Messages:
    12,635
    Try visualizing the groundmodel/terrain collision using the apposite tool (in the Debug menu)
     
  8. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    389
    I will try that today but I can confirm that this is a issue with the visual mesh due to the fact that I was importing forest objects from blender and they where lining up with the collision but not the visual mesh, I think it might have something to do with the W axis or whatever its called not being perfectly 0 but I can't set it to 0.
     
  9. krallopian

    krallopian
    Expand Collapse

    Joined:
    Dec 5, 2013
    Messages:
    296
    This happened to me when I was first building my map, it turned out I moved the terrain after importing my height map and that screwed up my ground plane, I just reimported it after I had moved it, and that fixed it.
     
  10. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    389
    Just tested this and it didn't fix the issue, I relaunched the game afterward just to make sure.
     
  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