# airship_city: a mesh for the world to draw in 3D. The Venus cloud city: nose toward -y, the envelope's centre at 0 (its belly near z -30, the city's bowl down to about z -80); 300 m long; flies, so no ground. Static but for its six fan rotors.
# airship_city.mesh: magic CBMESH1, uint32 vertices, uint32 indices; per vertex 40 B: float32 pos xyz (m, z up,
#   the footprint's centre on the ground at 0), float32 normal xyz, float32 uv, uint8 rgb (display sRGB),
#   uint8 kind (0 painted, 1 metal, 2 glass, 3 lamp), uint8 texture (0 none, else a row below), 3 pad;
#   then uint32 indices, 3 per triangle. A textured face: colour and alpha from the texture, cut under 0.5.
front -y
vertices 30415
triangles 27800
bytes 1550216
# moving parts. spin <file> x y z ax ay az rev_s: a propeller mesh (built round its origin, spinning about its +Y)
#   placed at x y z (m, this file's frame) with its +Y turned onto the axis ax ay az, rev_s turns a second.
# u v carry the bending (texture 0 on every face, so a reader that ignores them draws the craft at rest):
#   v = 0 static; v = c + p: channel c, p in [0, 1) the strand's phase; u: the weight along the strand, 0 at its
#   root (fixed) .. 1 at its tip. channel <c> <name> amp <m> period <s> wave <cycles along> [bulge gulp lift]:
#   with a = 2 pi (t / period - wave * u + p + P), P the instance's own phase (0 for a single craft),
#   1 hang:    x y += amp * u^1.5 * ((cos a, sin a) + 0.35 (sin (0.37 a + 2), cos (0.29 a)))
#   2 hose:    as hang, and a gulp: the point moves out along its normal by bulge * exp (-((u - (1 - g)) / 0.035)^2),
#              g = fract (t / gulp + p): a bump running from the tip (u 1) up to the root (u 0) every gulp seconds
#   3 trail:   a towed train: x += amp * u * sin a, z += amp / 3 * u * sin (1.3 a + 1)
#   4 pulse:   a bell about the Z axis: c = the contraction, 0..1 (k = fract (t / period + P): c = sin (pi/2 k / 0.35)
#              while k < 0.35, then 0.5 + 0.5 cos (pi (k - 0.35) / 0.65)); x y *= 1 - amp * c * u, z -= lift * c * u
#              (u 0 at the apex, 1 at the rim)
#   5 tendril: as hang (u along it, p its sway phase), and x y *= 1 - amp4 * c (the full pulse of channel 4: it
#              hangs from the rim)
spin airship_city_fan.mesh -45.122 -100.810 -19.357 0.0000 1.0000 0.0000 -1.600
spin airship_city_fan.mesh 45.122 -100.810 -19.357 0.0000 1.0000 0.0000 1.600
spin airship_city_fan.mesh -51.969 -0.810 -22.998 0.0000 1.0000 0.0000 -1.600
spin airship_city_fan.mesh 51.969 -0.810 -22.998 0.0000 1.0000 0.0000 1.600
spin airship_city_fan.mesh -41.881 99.190 -17.634 0.0000 1.0000 0.0000 -1.600
spin airship_city_fan.mesh 41.881 99.190 -17.634 0.0000 1.0000 0.0000 1.600
# hard sphere x y z r | hard capsule x0 y0 z0 x1 y1 z1 r [moves <channel> <u>]: the solid parts (hulls, envelopes,
#   gondolas, balloons and their loads, a bell) as simple shapes round them, metres, this file's frame; the world
#   keeps these out of the ship. Hoses, tentacles, arms, cables and lines are soft and left out: they may brush by.
#   moves: the shape rides that bending channel at weight u (a towed balloon swings with its train).
hard capsule 0.00 -126.00 0.00 0.00 126.00 0.00 38.50
hard capsule 0.00 128.00 0.00 0.00 146.00 0.00 37.00
hard capsule 0.00 -82.00 -62.00 0.00 82.00 -62.00 34.00
hard sphere 0.00 -12.00 -82.00 6.00
hard capsule 0.00 -62.00 28.14 0.00 -62.00 40.14 6.50
hard capsule -45.12 -106.75 -19.36 -45.12 -92.17 -19.36 7.02
hard capsule 45.12 -106.75 -19.36 45.12 -92.17 -19.36 7.02
hard capsule -51.97 -6.75 -23.00 -51.97 7.83 -23.00 7.02
hard capsule 51.97 -6.75 -23.00 51.97 7.83 -23.00 7.02
hard capsule -41.88 93.25 -17.63 -41.88 107.83 -17.63 7.02
hard capsule 41.88 93.25 -17.63 41.88 107.83 -17.63 7.02
hard capsule -36.69 -30.50 -58.00 -36.69 -16.90 -58.00 6.10
hard capsule 37.27 31.50 -58.00 37.27 45.10 -58.00 6.10
