Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Author Topic: Tunnels and road height adjusting  (Read 3419 times)

JakeRS

  • Jr. Member
  • *
  • Posts: 12
Tunnels and road height adjusting
« on: October 09, 2018, 01:22:24 pm »

I've decided to do a long run with a truck from Serbia to Montenegro, most of the road was nice, but once I came to the mountainous regions, I couldn't drive anymore, so I had to respawn the truck after the real world tunnel finishes, since currently Outerra doesn't show tunnels as actual roads, but just forest.

The other issue, especially in Montenegro, was roads that have insane height differences, drops and climbs, so that you would need a rocket engine to climb them, I suppose that this is the same in Switzerland and other mountainous places like that.

I'm not a programmer or anything, so I have no understanding of how all that works, but still my idea is, if it is possible, for tunnels to make them (roads in tunnels) start with the height of where the tunnel begins and end with the height of the tunnel exit, the path between these two could be either direct or maybe even the same path as in real world, but the height of the medium part of the tunnel road wouldn't be important, I don't know if I explained it well, but hopefully you understand. I doubt that it is possible to get road height info inside tunnels, but it is possible to get height info on tunnel entrance and exits, so maybe they can be connected somehow.

The steep roads, crazy drops and climbs, if possible, could maybe be fixed with an algorithm that averages out the height of the road sections in case a part of the road is extremelly steep, so for example if section A is 30m above ground level, section B is 15m (a bridge,etc. that shows up like that) and section C is also 30m, then an algorithm should change section B to either 30m or something that falls into a "tolerable steepness" level. That way bridges and mountain climbs wouldn't be an obstacle anymore and perhaps people could drive in Switzerland and places like that.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Tunnels and road height adjusting
« Reply #1 on: October 09, 2018, 04:21:59 pm »

Tunnels will be done that way, there's little else to do since there's usually no elevation info in the map data, and we have to resolve it during the import.

As for the other road problems, there are several categories: missing bridges, mismatched road vector data vs terrain elevation data, insufficient precision to determine if road goes above or below a cliff near rivers. It's not possible to solve all of these universally, even after implementing the bridges - some things have to be fixed in OSM data, or we need to implement a more sophisticated filtering algorithms in importer ...
Logged

Jagerbomber

  • Hero Member
  • *****
  • Posts: 1563
Re: Tunnels and road height adjusting
« Reply #2 on: October 09, 2018, 08:31:52 pm »

Yeah, there's a road that was supposed to carve a pretty sizeable chunk out of a hill/"mountainside" in my town (though not a tunnel), but instead it just rides the elevation of the hill.

I bet this is a big problem in Colorado.  :)) 
(But of course in many many many places.)
« Last Edit: October 09, 2018, 08:33:58 pm by Jagerbomber »
Logged
"Perhaps this speaks to some larger trend within society today...  A prevailing desire on the part of indie developers to recreate the entire world into one where you can charge more than $15 for your game design degree coursework." - Yahtzee ;) :P