BuildRouteVertices
function · loadingscreen · primitive
- Address
0x4075a0· 818 bytes, up to0x4078d1- Signature
uint32_t __fastcall (uint32_t pathId, uint32_t leg)- Meaning
- Fits a spline over a leg's endpoints and waypoints and fills the route vertices
- Confidence
- verified, proof one
- Finding
- loadingscreen/route#route-ribbon
- Test
loadingscreen::route_tessellate_segs_difftest
Finding: Route ribbon in loadingscreen: route
0x4075a0 builds the route for a taxi path and leg from the LoadingScreenTaxiSplines row with that
path and leg (0x407da0): point A (the last stop of the leg's pair), point B (the first stop of the
next leg's pair, wrapping), each in world map coordinates (0x4a72b0), and the row's waypoints between
(an x or a y above 0, up to 8). The spline over A, A, the waypoints, B, B has arc length L; the route
has segs = max(trunc(L · 66.66667), 1) and 4·segs + 12 vertices. 0x407900 fills the first 8 with
marker quads (±0.02, ±0.0265 around A and B), 0x407c80 the rest in segs + 1 steps of four at the
spline point plus the ship offsets.
The derivation is in the doc.
Callers 1
- BuildRoute loadingscreen
Callees 14
- SplatVector3 loadingscreen
- FillRouteEndpoints loadingscreen
- FillRouteRibbon loadingscreen
- FindShipInfo loadingscreen
- FreeVector3Buffer loadingscreen
- FreeFloatBuffer loadingscreen
- ConstructRouteVertex loadingscreen
- DestroyRouteVertex loadingscreen
- ConstructRouteSpline loadingscreen
- ReserveRouteVertices loadingscreen
- __alloca_probe crt
- __ftol crt
- SetSplinePath spline
- WorldPositionToMapView ui
Calls and jumps by a bare address, from tables/calls.tsv.