Understanding the maps provided by the interface?
Posted: 22 Oct 2014, 01:21
Ok, if I'm understanding correctly there's a whole bunch of map sizes.
#1 - There's what I'll call the LargeMap - which represents the area where units can be in.
Marble_Madness_Map = 2048x2048 (256x256 *8)
#2 - There's the HeightMap - which represents the terrain height, and has 1/8 of the granularity of the LargeMap.
Marble_Madness_Map = 65536 (256x256)
#3 - CornersHeightMap? Couldn't figure out properly what that is but I think it might not be super relevant to AIs...
Marble_Madness_Map = 66049 (256+1 x 256+1)
#4 - JammerMap - 1/8 the granularity according to method summary but:
Marble_Madness_Map = 1024 (?equiv. to 32x32!? Does the Jammer Map have a granularity of 1/64?)
#5 - LosMap - Line Of Sight, but I couln't really figure out what's the stated granularity on this one.
Marble_Madness_Map = 16384 (128x128 - granularity of 1/16?)
#6 - RadarMap - 1/8?
Marble_Madness_Map = 1024 (as JammerMap)
#7 - ResourceMapRaw - As in a map of Metal density? And .. 1/2 the granularity?
Marble_Madness_Map = 16384 (as LOS?)
#8 - SlopeMap - 1/2 the granularity? Does this indicate the .. slope? (by name I assume so but then, why is the HeightMap 1/8 and this 1/2!?)
Marble_Madness_Map = 16384 (as LOS?)
#9 - Interface.getElevationAt (x, z) - is this expecting (x,z) coordinates at the granularity 1/1 or 1/8 or ?
#10 - Is the SlopeMap directly related to Unit.Definition.getMaxSlope()? as in: anywhere on the map, if the map's slope <= the unit's MaxSlope the unit will be able to go there?
#11 - _Callback.getPathing () - SpringRTS seems to pre-calculate path related things, which I assume pre-calculations of where each unit will be able to pass through. Is this getPathing allowing access to query the engine over that information? I assume this to be very well performant...
#12 - With which map do the building blocks interact? I'm kind of thinking it is the SlopeMap. A building's size appear to be Decal Size X and Decal Size Y - does each of the units in Decal Size correlate to 1 unit in the SlopeMap or?
---
Sorry so many questions but they're all related and I think it's better than spamming the forum...
#1 - There's what I'll call the LargeMap - which represents the area where units can be in.
Marble_Madness_Map = 2048x2048 (256x256 *8)
#2 - There's the HeightMap - which represents the terrain height, and has 1/8 of the granularity of the LargeMap.
Marble_Madness_Map = 65536 (256x256)
#3 - CornersHeightMap? Couldn't figure out properly what that is but I think it might not be super relevant to AIs...
Marble_Madness_Map = 66049 (256+1 x 256+1)
#4 - JammerMap - 1/8 the granularity according to method summary but:
Marble_Madness_Map = 1024 (?equiv. to 32x32!? Does the Jammer Map have a granularity of 1/64?)
#5 - LosMap - Line Of Sight, but I couln't really figure out what's the stated granularity on this one.
Marble_Madness_Map = 16384 (128x128 - granularity of 1/16?)
#6 - RadarMap - 1/8?
Marble_Madness_Map = 1024 (as JammerMap)
#7 - ResourceMapRaw - As in a map of Metal density? And .. 1/2 the granularity?
Marble_Madness_Map = 16384 (as LOS?)
#8 - SlopeMap - 1/2 the granularity? Does this indicate the .. slope? (by name I assume so but then, why is the HeightMap 1/8 and this 1/2!?)
Marble_Madness_Map = 16384 (as LOS?)
#9 - Interface.getElevationAt (x, z) - is this expecting (x,z) coordinates at the granularity 1/1 or 1/8 or ?
#10 - Is the SlopeMap directly related to Unit.Definition.getMaxSlope()? as in: anywhere on the map, if the map's slope <= the unit's MaxSlope the unit will be able to go there?
#11 - _Callback.getPathing () - SpringRTS seems to pre-calculate path related things, which I assume pre-calculations of where each unit will be able to pass through. Is this getPathing allowing access to query the engine over that information? I assume this to be very well performant...
#12 - With which map do the building blocks interact? I'm kind of thinking it is the SlopeMap. A building's size appear to be Decal Size X and Decal Size Y - does each of the units in Decal Size correlate to 1 unit in the SlopeMap or?
---
Sorry so many questions but they're all related and I think it's better than spamming the forum...