Hi all,
I'm trying to make sense of some AC telemetry, specifically the carCoordinates[3] packet, which provides the coordinates of the car in X, Y and Z axes. The Y axis isn't of interest for the time being, as I'm only trying to understand these coordinates in 2-dimensions.
I've just done a lap of Barcelona, and have made a scatter plot in Excel. I've then overlaid the AC Barcelona map (the map.png file in the C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\content\tracks\ks_barcelona\layout_gp directory) as shown in the image below.
The telemetry data is shown in blue, the AC map.png is in white. Note that I've actually had to mirror the AC map.png in Excel; it appears that the telemetry data is inverted horizontally?
Can anyone make sense of the above? It looks like there's some scaling, offsetting, etc. required to convert the in-game carCoordinate values into meaningful real-world data. The map.ini file in the /data directory has SCALE_FACTOR, X_OFFSET, Z_OFFSET, etc. values, which I've played around with, but I think they're used for the in-game map overlay, rather than converting the coordinates themselves. I may be wrong about that though!
Any ideas?
I'm trying to make sense of some AC telemetry, specifically the carCoordinates[3] packet, which provides the coordinates of the car in X, Y and Z axes. The Y axis isn't of interest for the time being, as I'm only trying to understand these coordinates in 2-dimensions.
I've just done a lap of Barcelona, and have made a scatter plot in Excel. I've then overlaid the AC Barcelona map (the map.png file in the C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\content\tracks\ks_barcelona\layout_gp directory) as shown in the image below.
The telemetry data is shown in blue, the AC map.png is in white. Note that I've actually had to mirror the AC map.png in Excel; it appears that the telemetry data is inverted horizontally?
Can anyone make sense of the above? It looks like there's some scaling, offsetting, etc. required to convert the in-game carCoordinate values into meaningful real-world data. The map.ini file in the /data directory has SCALE_FACTOR, X_OFFSET, Z_OFFSET, etc. values, which I've played around with, but I think they're used for the in-game map overlay, rather than converting the coordinates themselves. I may be wrong about that though!
Any ideas?