Height Maps from the APK

  • Thread starter Outspacer
  • 217 comments
  • 35,462 views
@eran0004 One last request, is it possible to overlay the background from the app to the detailed maps you've made? Like in post #17 on first page of this thread. I'm finding it hard to estimate positioning accurately when making tracks. Having those background markings would help me greatly!

Mountain track at your command!

It goes downhill for about 1000~ ft

https://www.gtplanet.net/forum/resources/downhill.3297/

Just tried this one, it's awesome! 👍 You can pretty much see the whole of Sierra from the top :drool: Absolutely gorgeous view. Track layout is pretty good too. A few bumps and blind crests might need to be smoothed, but otherwise it's a pretty fun touge layout :D Definitely a keeper.

If you can make a similar one for Death Valley and Eifel Flat (the mountain on the left side) it would be great 💡
 
Last edited:
Mountain track at your command!

It goes downhill for about 1000~ ft

https://www.gtplanet.net/forum/resources/downhill.3297/
It's hillarious running in arcade mode and the starting grid becomes a demolition derby because none of them can move forward... so they all back up at once LMAO :lol:

Fun course though once you get up the hill :cheers:


On a side note... has anyone figured out if you can lift the invisible ceiling at all? I have some tracks with awesome double jumps offline but smash you in the face online.
 
@eran0004 One last request, is it possible to overlay the background from the app to the detailed maps you've made? Like in post #17 on first page of this thread. I'm finding it hard to estimate positioning accurately when making tracks. Having those background markings would help me greatly!

If someone can get the background from the app, sure. I don't have it though and I don't know how to get it.

If you set the app to display length in metric scale, you can use the grid to orient yourself (1000 / 500 / 100 / 50 meters).
 
If someone can get the background from the app, sure. I don't have it though and I don't know how to get it.

If you set the app to display length in metric scale, you can use the grid to orient yourself (1000 / 500 / 100 / 50 meters).

Ahh apologies, I thought you have the app. How have you been getting all the terrain data all this time, if I may ask?

Yeah I figured comparing the scales from the app 1 large box is 1km across. It just makes things easier if you have the background overlaid as you don't have to keep measuring back and forth between the contour map and the app. But I'll manage 👍
 
Ahh apologies, I thought you have the app. How have you been getting all the terrain data all this time, if I may ask?

The relief-shaded background in the app is generated on-the-fly from the height data (plus something else for the areas of forest, city, etc, that we haven't found yet). I posted something similar for Eifel. I could try and produce some better versions at some point, but it might be difficult to exactly match how the app does it.

I was trying to find a good location on Eifel for my Subi Reef track last night, and found that relief map quite useful to refer to alongside the contour map.

I hacked the track to move it to Eifel and then shifted it to a different position on the map. Ended up being massively high off the terrain though - https://www.gran-turismo.com/us/gt6/user/#!/friend/Outspacer/course/1649001/ - no idea how or why that happened!
 
Ahh apologies, I thought you have the app. How have you been getting all the terrain data all this time, if I may ask?

Yeah I figured comparing the scales from the app 1 large box is 1km across. It just makes things easier if you have the background overlaid as you don't have to keep measuring back and forth between the contour map and the app. But I'll manage 👍

I have the app, but I don't have an image of the background :)

The terrain data is from the RAW files, edited by @Outspacer. It's basically the greyscale images he's been posting, only edited in Photoshop to create contours and a colour gradient.
 
The relief-shaded background in the app is generated on-the-fly from the height data (plus something else for the areas of forest, city, etc, that we haven't found yet). I posted something similar for Eifel. I could try and produce some better versions at some point, but it might be difficult to exactly match how the app does it.

I have the app, but I don't have an image of the background :)

The terrain data is from the RAW files, edited by @Outspacer. It's basically the greyscale images he's been posting, only edited in Photoshop to create contours and a colour gradient.

Thanks for the explanation guys. I was thinking more simply along the lines of taking a screenshot from the app, adjusting the transparency in photoshop then overlaying the countour map on top of it. I think that's what the guy in post #17 did anyway. No need to create it yourself!
 
Thanks for the explanation guys. I was thinking more simply along the lines of taking a screenshot from the app, adjusting the transparency in photoshop then overlaying the countour map on top of it. I think that's what the guy in post #17 did anyway. No need to create it yourself!

That's actually harder than it sounds, to do it nicely. There's overlaid text and/or home straights, and the app doesn't pan all the way north (doesn't allow for the overlaid toolbars at the top of the screen). And it always has the grey for out-of-bounds.

Producing them with code gets clean images fairly easily. I'll probably tweak them a bit before I say they're 'done', but these should be usable.

Andalusia:


Death Valley:


Eifel:


Eifel Flat:
 
How hard is it for you guy's to make a track doing the way you do ?

I'm wondering because the latest track to hit the forum is a 8 mile Top Gear test track with crossover, but it's not the crossover I'm interested in, it's the way the track was created in Eifel flat then imported to Eifel with some great results.

Ok so the mountains don't look great but the way the track cuts through the landscape makes it pretty cool, like your driving in a canyon.

https://www.gtplanet.net/forum/resources/top-gear-test-track.3383/
 
How hard is it for you guy's to make a track doing the way you do ?

I'm wondering because the latest track to hit the forum is a 8 mile Top Gear test track with crossover, but it's not the crossover I'm interested in, it's the way the track was created in Eifel flat then imported to Eifel with some great results.

Ok so the mountains don't look great but the way the track cuts through the landscape makes it pretty cool, like your driving in a canyon.

https://www.gtplanet.net/forum/resources/top-gear-test-track.3383/

A bit of messing about :) Rooted device to get at the track files. Changing theme is just a matter of changing a certain byte in each of the data files (.bin and .meta) with a hex editor or whatever. The files both have to have the same value: 1=Death Valley, 2=Eifel, 3=Andalusia, 5=Eifel Flat. More info in the 'Where...' and '35km...' threads than here, but you get the idea, I hope.
 
A bit of messing about :) Rooted device to get at the track files. Changing theme is just a matter of changing a certain byte in each of the data files (.bin and .meta) with a hex editor or whatever. The files both have to have the same value: 1=Death Valley, 2=Eifel, 3=Andalusia, 5=Eifel Flat. More info in the 'Where...' and '35km...' threads than here, but you get the idea, I hope.

Don't have a rooted device & my PC is well... dead :(

Would it be possible if I gave you a simple track for you to drop into the most mountainous part of Eifel for me ?
No other changes just the map change if it's not to much to ask ?
At your own leisure, no rush.
 
Don't have a rooted device & my PC is well... dead :(

Would it be possible if I gave you a simple track for you to drop into the most mountainous part of Eifel for me ?
No other changes just the map change if it's not to much to ask ?
At your own leisure, no rush.

Not enough time for my stuff let alone yours! :) And you'd still have to get the track off and back on again - not sure how you'd do that without root or PC :confused:
 
Not enough time for my stuff let alone yours! :) And you'd still have to get the track off and back on again - not sure how you'd do that without root or PC :confused:

No problem fella :)
Looks like I'll have to try & get the old PC working again.

In the meantime I'll look forward to your next creation :)
 
Last edited:
That's actually harder than it sounds, to do it nicely. There's overlaid text and/or home straights, and the app doesn't pan all the way north (doesn't allow for the overlaid toolbars at the top of the screen). And it always has the grey for out-of-bounds.

Producing them with code gets clean images fairly easily. I'll probably tweak them a bit before I say they're 'done', but these should be usable.

Those looks pretty good to me 👍 I don't mind some overlaid text as long as it doesn't block any major things. The home straights would ideally be included as well as the border line (grey out of bounds can remain shaded, I don't need them to be visible).

Thank you very much for all your work mate! Really appreciate it 👍
 
Those looks pretty good to me 👍 I don't mind some overlaid text as long as it doesn't block any major things. The home straights would ideally be included as well as the border line (grey out of bounds can remain shaded, I don't need them to be visible).

Thank you very much for all your work mate! Really appreciate it 👍

You can layer in the home straights and out-of-bounds from here, to your liking. Just scale these up to 2048x2048 (or scale those down to 1024x1024). 'Gimp' is free, if you haven't got Photoshop or something like it. I don't have a means to produce the nice contour maps that eran0004 posts, so blend those in as well and you have something sweet :D
 
You can layer in the home straights and out-of-bounds from here, to your liking. Just scale these up to 2048x2048 (or scale those down to 1024x1024). 'Gimp' is free, if you haven't got Photoshop or something like it. I don't have a means to produce the nice contour maps that eran0004 posts, so blend those in as well and you have something sweet :D

Nice, thanks for that. I don't have much experience with image editing program (except MS Paint lol), but I can try 👍
 
So many ways to glue these layers together... and probably everyone likes a different way!

Eifel_800.png


Death_Valley_800.png


Andalusia_800.png


Eifel_Flat_800.png
 
Last edited:
@Outspacer Those are pretty much perfect! Eifel's backdrop could "pop out" a bit more, but maybe it's too hard with the different contour colours. Also Andalusia could use more contour lines, but again it might be hard because of the small height difference across max-min values.
 
@Outspacer Those are pretty much perfect! Eifel's backdrop could "pop out" a bit more, but maybe it's too hard with the different contour colours. Also Andalusia could use more contour lines, but again it might be hard because of the small height difference across max-min values.

Those are just a demo really, and useful to see them all done with the same parameters for comparison. Eifel's lighting (backdrop) isn't as dramatic as, say, Death Valley because it's actually quite smooth. Plus, the colouring there gives so much information that the brain tends to focus on that! Overall the goal is to see past these tricks to the shape of the terrain, which I think works fine for Eifel and the out-of-bounds part of DV, but I'm still not sure what's the best way to do it for DV and A (preferably while still showing that they are much flatter than Eifel).

I'm not happy with the out-of-bounds dimming - although it works ok I think a simple boundary line works better.
 
Those are just a demo really, and useful to see them all done with the same parameters for comparison. Eifel's lighting (backdrop) isn't as dramatic as, say, Death Valley because it's actually quite smooth. Plus, the colouring there gives so much information that the brain tends to focus on that! Overall the goal is to see past these tricks to the shape of the terrain, which I think works fine for Eifel and the out-of-bounds part of DV, but I'm still not sure what's the best way to do it for DV and A (preferably while still showing that they are much flatter than Eifel).

I'm not happy with the out-of-bounds dimming - although it works ok I think a simple boundary line works better.

I'm not so concerned about DV. As you said it's quite flat (max height difference that I've seen is only 50 metres) and the cliffs on both sides are not drivable anyway.

Andalusia is also quite tricky because of small height difference compared to the out of bounds mountains.

I think post #17 on the first page managed to show the colours well while still allowing us to see the background features. Ideally you would combine that style with the more detailed contour maps of post #69 (Andalusia) and post #55 (Eifel) by eran. But I don't know how feasible this is if you don't have the original pictures.

If only PD allows us to use reference images for the 3 non-flat themes, or just give us a 3D editor...
 
I'm not so concerned about DV. As you said it's quite flat (max height difference that I've seen is only 50 metres) and the cliffs on both sides are not drivable anyway.

Andalusia is also quite tricky because of small height difference compared to the out of bounds mountains.

I think post #17 on the first page managed to show the colours well while still allowing us to see the background features. Ideally you would combine that style with the more detailed contour maps of post #69 (Andalusia) and post #55 (Eifel) by eran. But I don't know how feasible this is if you don't have the original pictures.

If only PD allows us to use reference images for the 3 non-flat themes, or just give us a 3D editor...

I don't think the layers line up in post #17, which makes the background stand out more! I think my lighting layer already has more contrast than PD's background, but I could increase it I guess.

Andalusia I could happily put more minor contour levels in, leaving the major ones as they are. Say, 10x rather than the 4x it is now. DV would need a more custom setting, say, do 10x up to a certain level and then only 4x, I could try that.

eran's contour maps were lovely, but using colours other than the simpler hue change I've used means it wouldn't blend nicely with the lighting (background). (In HSV space I'm using Hue for height and Luminance for lighting - nicely orthogonal. With those two varying, it's hard to utilise Saturation in a meaningful way). The colours on mine are independant of the contours, btw.
 
I don't think the layers line up in post #17, which makes the background stand out more! I think my lighting layer already has more contrast than PD's background, but I could increase it I guess.

Andalusia I could happily put more minor contour levels in, leaving the major ones as they are. Say, 10x rather than the 4x it is now. DV would need a more custom setting, say, do 10x up to a certain level and then only 4x, I could try that.

eran's contour maps were lovely, but using colours other than the simpler hue change I've used means it wouldn't blend nicely with the lighting (background). (In HSV space I'm using Hue for height and Luminance for lighting - nicely orthogonal. With those two varying, it's hard to utilise Saturation in a meaningful way). The colours on mine are independant of the contours, btw.

My non-technical brain took a while to figure that out lol.

Yeah I can see how eran's map wouldn't blend that nicely with the background. Yours blend better, but the colours are a bit too saturated I think, that's why the shadows in the background doesn't show up that well (especially in the red/blue areas on Eifel). If you could make the colours "lighter" I think it would be perfect.

And yeah more lines for Andalusia would be good. I don't know if it's possible to leave out the out-of-bounds areas when making the contour? That way the elevation change wouldn't be overshadowed by the mountains.
 
My non-technical brain took a while to figure that out lol.

Yeah I can see how eran's map wouldn't blend that nicely with the background. Yours blend better, but the colours are a bit too saturated I think, that's why the shadows in the background doesn't show up that well (especially in the red/blue areas on Eifel). If you could make the colours "lighter" I think it would be perfect.

And yeah more lines for Andalusia would be good. I don't know if it's possible to leave out the out-of-bounds areas when making the contour? That way the elevation change wouldn't be overshadowed by the mountains.

Well... I'm packing to move house now so it might be a while before I get time to do any better!

Could go pastel :ill:

Eifel_800_pastel.png


But I think tweaking the lighting layer could do it better. Andalusia is the probelm one - with more dramatic lighting it looks like crap because there isn't enough elevation change to make it smooth (it already looks blocky in places, like near the eastern edge and in the valley just NE of the out-of-bounds hill in the middle).
 
Say if you edit the Andalucia limits SVG to make it more... square. And perhaps delete the bit in the middle. Could you then run the (rooted)TPE and it would let you model tracks over those newly expanded areas?
 
Say if you edit the Andalucia limits SVG to make it more... square. And perhaps delete the bit in the middle. Could you then run the (rooted)TPE and it would let you model tracks over those newly expanded areas?

Possibly.

It's reasonable to assume that those shapes are what the app tests, at least. The file in the .apk isn't just the SVG though, it's a Unity resource containing the .xml, and the .xml contains a KD tree that would need to be rebuilt.

The easiest way to produce a square one for Andalusia or Death Valley might be to take the Eifel Flat one and scale all of the coordinates to match the size of the map, including those in the KD tree. The downside of doing it that way is that it wouldn't have the internal polygons that I'm guessing mark where certain objects might get created (roadside cafes etc?), although you could perhaps change the attribute of the 'inside' polygons.

The 'Terrain' block would need be kept the same, so copy that from the correct file into the modified one.

The other hack worth trying on the .xml file is removing the home straight definitions, to see if that lets you place it anywhere.

Finally, the resource file header would need fixing, but I think that's simply altering one or two length fields to match the modified xml.

And then hope there's no validity check made on the file at runtime. (Try the home straight hack first).

Would be pretty cool if it works!
 
Well... I'm packing to move house now so it might be a while before I get time to do any better!

Could go pastel :ill:

That actually looks better 👍 The more muted colours doesn't overpower the background. I think that's the best map so far.
 
That actually looks better 👍 The more muted colours doesn't overpower the background. I think that's the best map so far.

Oh, really? I prefer giving more emphasis to the height than the shading, myself. That's the sort of thing that can be altered just when combining layers, so here's the rest of 'em like that... I do agree that it helps the contours stand out more against the blue areas...

Andalusia_800_pastel.png



Death_Valley_800_pastel.png


Eifel_Flat_800_pastel.png
 
Oh, really? I prefer giving more emphasis to the height than the shading, myself. That's the sort of thing that can be altered just when combining layers, so here's the rest of 'em like that... I do agree that it helps the contours stand out more against the blue areas...

The height is important, but you can get a sense of that from the lines. I like to see the background shading for landmarking purposes, when measuring distances between corners, how long a straight should be, etc. Doing it with gridlines is too slow for me lol. By using landmarks is a lot more intuitive 👍 That's the whole reason why I'd like to overlay the 2 things together in the first place.

Of course if PD allows us to use reference image for the 3 non-flat areas we wouldn't need to do this :banghead:

I think those are perfect for my use now. Andalucia could use more contour lines, but I can just refer to eran's maps for that. Thank you so much mate 👍:cheers:
 
Back