Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(verse): richer operations deck, tailored uniforms, trousers by rank tier (#784)

Ruben Lütke05b9efce5e33
diff --git a/art/verse/characters/README.md b/art/verse/characters/README.md
index 15e52e6e3b..c0e4266d88 100644
--- a/art/verse/characters/README.md
+++ b/art/verse/characters/README.md
@@ -13,6 +13,7 @@ python scripts/verse/blender.py run --no-lock art/verse/characters/fetch_base.py
python scripts/verse/blender.py run --no-lock art/verse/characters/build.py # humans + clips
python scripts/verse/blender.py run --no-lock art/verse/characters/build_drones.py # drones
python scripts/verse/blender.py run art/verse/characters/build.py --qa # + Cycles QA
+python scripts/verse/blender.py run art/verse/characters/build.py --qa-contact # contact sheets only
node art/verse/characters/check_glb.mjs # three.js check
```
@@ -108,7 +109,7 @@ per tier are in `characters.json` (`tiers`, sRGB hex; `THREE.Color.set()` conver
|---|---|---|
| `M_Uniform` | tunic, collar | tier colour |
| `M_Trousers` | riding trousers | tier colour (flag tier: black) |
-| `M_Trim` | cuffs, front-flap seam | tier trim colour (a shade darker) |
+| `M_Trim` | cuffs, front-flap seam (raised bead) | tier trim colour: a shade darker; on the `deck` tier a lighter grey, so the seam and cuffs read as the zip and cuffs of a work suit |
| `M_Accent` | shoulder-seam and collar piping | the agent's personal accent colour |
| `M_Cap` | cap (mesh `Cap`) | tier colour |
| `M_Skin`, `M_Hair` | face, hands / hair | per person |
@@ -125,8 +126,9 @@ per tier are in `characters.json` (`tiers`, sRGB hex; `THREE.Color.set()` conver
Drones carry their own rig and clips inside their glb.
- Technician: `M_Uniform` (black suit), `M_Helmet`, `M_Visor`, `M_Mark`, `M_ChestBox`,
`M_Glow` (chest-box lights), `M_Trim`, `M_Gloves`, `M_Boots`, `M_Belt`, `M_Skin`.
-- Trooper: `M_Armor` (white plates, helmet, boots), `M_Undersuit`, `M_Visor`, `M_Belt`,
- `M_Gloves`, `M_Accent` (unit band on the left upper arm).
+- Trooper: `M_Armor` (white plates, helmet, boots), `M_Undersuit`, `M_Visor`, `M_Belt`
+ (utility belt and pouches), `M_Gloves`, `M_Accent` (unit band on the left upper arm).
+ Plates are parametric shells with bevelled rims, each rigid on one bone.
## Using it in three.js
diff --git a/art/verse/characters/build.py b/art/verse/characters/build.py
index 06abde9e6f..cd015ee1cd 100644
--- a/art/verse/characters/build.py
+++ b/art/verse/characters/build.py
@@ -39,7 +39,7 @@ TIERS = {
"deck": {
"M_Uniform": "#3b3f47",
"M_Trousers": "#3b3f47",
- "M_Trim": "#2f3238",
+ "M_Trim": "#5a5f68",
"M_Cap": "#3b3f47",
"tile": "#a9adb2",
"cap": False,
@@ -185,6 +185,7 @@ def main(argv):
ap.add_argument("--only", default="")
ap.add_argument("--no-clips", action="store_true")
ap.add_argument("--qa", action="store_true")
+ ap.add_argument("--qa-contact", action="store_true", help="QA contact sheets only")
args = ap.parse_args(argv)
C.reset_scene()
O.make_materials()
@@ -249,10 +250,10 @@ def main(argv):
for act, _slot in acts:
bpy.data.actions.remove(act)
write_manifest(out, entries, clip_info, ctxs)
- if args.qa:
+ if args.qa or args.qa_contact:
from characters import qa
- qa.contact_sheet(built, ctxs)
+ qa.contact_sheet(built, ctxs, full=not args.qa_contact)
def write_manifest(out: Path, entries, clip_info, ctxs):
diff --git a/art/verse/characters/crew.py b/art/verse/characters/crew.py
index a027e48857..dd36cbfb62 100644
--- a/art/verse/characters/crew.py
+++ b/art/verse/characters/crew.py
@@ -15,6 +15,7 @@ import numpy as np
from mathutils import Matrix, Vector
from mathutils.bvhtree import BVHTree
+from characters import body as B
from characters import common as C
from characters import outfits as O
@@ -237,54 +238,6 @@ def build_technician(ctx):
# ------------------------------------------------------------------------ trooper
-def shell_from_region(
- ctx, vmask, gap: float, thick: float, name: str, mat="M_Armor", smooth_edges=4
-):
- """Armour shell: body faces inside `vmask`, offset outwards, given depth and bevels."""
- bm = bmesh.new()
- bm.from_mesh(ctx.naked.data)
- bm.verts.ensure_lookup_table()
- dead = [f for f in bm.faces if not all(vmask[v.index] for v in f.verts)]
- bmesh.ops.delete(bm, geom=dead, context="FACES")
- bmesh.ops.delete(bm, geom=[v for v in bm.verts if not v.link_faces], context="VERTS")
- if not bm.faces:
- bm.free()
- return None
- bm.normal_update()
- for v in bm.verts:
- v.co += v.normal * gap
- for _ in range(smooth_edges):
- edge_v = [v for v in bm.verts if v.is_boundary]
- bmesh.ops.smooth_vert(
- bm, verts=edge_v, factor=0.5, use_axis_x=True, use_axis_y=True, use_axis_z=True
- )
- for _ in range(2):
- bmesh.ops.smooth_laplacian_vert(
- bm,
- verts=bm.verts[:],
- lambda_factor=0.5,
- lambda_border=0.0,
- use_x=True,
- use_y=True,
- use_z=True,
- preserve_volume=False,
- )
- ob = O.new_obj(name, bm, [mat])
- m = ob.modifiers.new("solid", "SOLIDIFY")
- m.thickness = thick
- m.offset = 1.0
- m.use_rim = True
- m.use_even_offset = True
- O.apply_mod(ob, m)
- m = ob.modifiers.new("bev", "BEVEL")
- m.width = 0.0022
- m.segments = 1
- m.limit_method = "ANGLE"
- m.angle_limit = math.radians(50)
- O.apply_mod(ob, m)
- return ob
-
-
def trooper_helmet(ctx):
"""Marine helmet (style bible 7.4): smooth ovoid shell, 35 mm smoked visor band
wrapping 180 degrees at eye level, vertical chin ridge with two grille slots."""
@@ -357,23 +310,317 @@ def trooper_helmet(ctx):
return [ob, visor]
-def back_pack(ctx):
- s = ctx.s
- z = 0.745 * ctx.H
- back = ctx.V[
- ctx.bone_mask("Chest", "Spine")
- & (np.abs(ctx.V[:, 2] - z) < 0.01)
- & (np.abs(ctx.V[:, 0]) < 0.08)
+# ------------------------------------------------------------------ armour plates
+#
+# Every plate is a clean parametric sheet fitted over the body: a grid in the plate's
+# own coordinates (around a limb axis, a dome over a joint, or a height field over the
+# torso), smoothed into a hard-shell envelope that never touches the body, then given
+# thickness and a bevelled rim. Each plate rides one bone rigidly, as a hard shell does.
+
+
+def _region_bvh(ctx, bones):
+ """BVH over the naked-body faces that touch vertices dominated by `bones`."""
+ mask = ctx.bone_mask(*bones)
+ bm = bmesh.new()
+ bm.from_mesh(ctx.naked.data)
+ bm.verts.ensure_lookup_table()
+ dead = [f for f in bm.faces if not any(mask[v.index] for v in f.verts)]
+ bmesh.ops.delete(bm, geom=dead, context="FACES")
+ bvh = BVHTree.FromBMesh(bm)
+ bm.free()
+ return bvh
+
+
+def _fill_nan(R):
+ R = np.array(R, dtype=float)
+ if np.isnan(R).all():
+ raise RuntimeError("armour: no body surface under the plate")
+ for _ in range(64):
+ m = np.isnan(R)
+ if not m.any():
+ break
+ P = np.pad(R, 1, mode="edge")
+ nb = np.stack([P[:-2, 1:-1], P[2:, 1:-1], P[1:-1, :-2], P[1:-1, 2:]])
+ cnt = (~np.isnan(nb)).sum(axis=0)
+ tot = np.nansum(nb, axis=0)
+ ok = m & (cnt > 0)
+ R[ok] = tot[ok] / cnt[ok]
+ return R
+
+
+def _grid_filter(R, closed, op, passes):
+ """max / mean filter over a (rows x cols) grid; cols wrap when closed."""
+ for _ in range(passes):
+ if closed:
+ P = np.concatenate([R[:, -1:], R, R[:, :1]], axis=1)
+ P = np.pad(P, ((1, 1), (0, 0)), mode="edge")
+ else:
+ P = np.pad(R, 1, mode="edge")
+ c, up, dn = P[1:-1, 1:-1], P[:-2, 1:-1], P[2:, 1:-1]
+ lf, rt = P[1:-1, :-2], P[1:-1, 2:]
+ if op == "max":
+ R = np.maximum.reduce([c, up, dn, lf, rt])
+ else:
+ R = (4 * c + up + dn + lf + rt) / 8.0
+ return R
+
+
+def _sheet(name, rows, closed, outward, mat, chamfer=True):
+ """Quad sheet through `rows` (lists of Vectors); faces wound to point `outward(p)`."""
+ bm = bmesh.new()
+ if chamfer and not closed and len(rows) > 2 and len(rows[0]) > 2:
+ # 45 degree corner cuts (the ship's shape grammar), never square corners
+ for i, j, di, dj in ((0, 0, 1, 1), (0, -1, 1, -1), (-1, 0, -1, 1), (-1, -1, -1, -1)):
+ p = rows[i][j]
+ rows[i][j] = p * 0.3 + (rows[i + di][j] + rows[i][j + dj]) * 0.35
+ vs = [[bm.verts.new(p) for p in row] for row in rows]
+ n = len(rows[0])
+ for a, b in zip(vs[:-1], vs[1:], strict=True):
+ for j in range(n if closed else n - 1):
+ k = (j + 1) % n
+ bm.faces.new((a[j], a[k], b[k], b[j]))
+ bm.normal_update()
+ score = sum(f.normal.dot(outward(f.calc_center_median())) for f in bm.faces)
+ if score < 0:
+ bmesh.ops.reverse_faces(bm, faces=bm.faces[:])
+ ob = C.mesh_object(name, bm)
+ ob.data.materials.append(bpy.data.materials[mat])
+ return ob
+
+
+def _harden(ob, thick, bevel=0.0028, segments=2):
+ """Thickness towards the body, a bevelled rim, crisp shading on the rim."""
+ m = ob.modifiers.new("solid", "SOLIDIFY")
+ m.thickness = thick
+ m.offset = -1.0
+ m.use_rim = True
+ m.use_even_offset = True
+ O.apply_mod(ob, m)
+ m = ob.modifiers.new("bev", "BEVEL")
+ m.width = min(bevel, thick * 0.45)
+ m.segments = segments
+ m.limit_method = "ANGLE"
+ m.angle_limit = math.radians(40)
+ O.apply_mod(ob, m)
+ C.set_active(ob)
+ bpy.ops.object.shade_smooth_by_angle(angle=math.radians(38))
+ return ob
+
+
+def _limb_frame(ctx, bone):
+ h = ctx.rig.head(bone)
+ tl = ctx.rig.tail(bone)
+ d = tl - h
+ dn = d.normalized()
+ sx = 1.0 if (h.x + tl.x) >= 0 else -1.0
+ fwd = Vector((0.0, -1.0, 0.0))
+ e1 = (fwd - dn * fwd.dot(dn)).normalized()
+ e2 = dn.cross(e1).normalized()
+ if e2.x * sx < 0:
+ e2 = -e2
+ return h, d, e1, e2
+
+
+def limb_shell(
+ ctx,
+ name,
+ bone,
+ t0,
+ t1,
+ th0,
+ th1,
+ nt,
+ nth,
+ gap,
+ thick=0.005,
+ flare=0.0,
+ closed=False,
+ mat="M_Armor",
+ rigid=True,
+ segments=1,
+):
+ """Shell around a limb bone: rows along the bone (t0..t1 of its length), columns
+ around it (degrees from the front towards the outer side; closed = full ring)."""
+ h, d, e1, e2 = _limb_frame(ctx, bone)
+ bvh = _region_bvh(ctx, [bone])
+ ts = np.linspace(t0, t1, nt)
+ if closed:
+ ths = np.linspace(0.0, 2 * math.pi, nth, endpoint=False)
+ else:
+ ths = np.radians(np.linspace(th0, th1, nth))
+ U = [e1 * math.cos(a) + e2 * math.sin(a) for a in ths]
+ A = [h + d * float(t) for t in ts]
+ R = np.full((nt, nth), np.nan)
+ for i, a in enumerate(A):
+ for j, u in enumerate(U):
+ hit = bvh.ray_cast(a, u, 0.25)
+ if hit[0] is not None:
+ R[i, j] = (hit[0] - a).length
+ R = _fill_nan(R)
+ R = _grid_filter(R, closed, "max", 1)
+ R = _grid_filter(R, closed, "mean", 3)
+ k = (ts - t0) / max(1e-6, t1 - t0)
+ R = R + gap + flare * (k[:, None] ** 1.5)
+ rows = [[A[i] + U[j] * float(R[i, j]) for j in range(nth)] for i in range(nt)]
+ axis_pt = lambda p: h + d * ((p - h).dot(d) / d.length_squared) # noqa: E731
+ ob = _sheet(name, rows, closed, lambda p: p - axis_pt(p), mat)
+ _harden(ob, thick, segments=segments)
+ if rigid:
+ ctx.rigid(ob, bone)
+ return ob
+
+
+def dome_plate(
+ ctx,
+ name,
+ center,
+ axis,
+ radius,
+ alpha_max,
+ nphi,
+ nalpha,
+ bones,
+ clear,
+ flare=0.006,
+ thick=0.005,
+ mat="M_Armor",
+):
+ """Spherical-cap plate (a shoulder bell): apex on `axis`, rim at `alpha_max` degrees,
+ a small flare at the rim, pushed out wherever the body would come through."""
+ ax = axis.normalized()
+ ref = Vector((0.0, -1.0, 0.0))
+ b1 = (ref - ax * ref.dot(ax)).normalized()
+ b2 = ax.cross(b1).normalized()
+ bvh = _region_bvh(ctx, bones)
+ alphas = np.radians(np.linspace(alpha_max / nalpha, alpha_max, nalpha))
+ phis = np.linspace(0.0, 2 * math.pi, nphi, endpoint=False)
+ dirs = [
+ [ax * math.cos(a) + (b1 * math.cos(p) + b2 * math.sin(p)) * math.sin(a) for p in phis]
+ for a in alphas
+ ]
+ R = np.full((nalpha, nphi), radius)
+ for i in range(nalpha):
+ for j in range(nphi):
+ hit = bvh.ray_cast(center, dirs[i][j], 0.3)
+ if hit[0] is not None:
+ R[i, j] = max(radius, (hit[0] - center).length + clear)
+ R = _grid_filter(R, True, "max", 1)
+ R = _grid_filter(R, True, "mean", 2)
+ R[-1] += flare
+ apex_r = max(radius, float(R[0].mean()))
+ bm = bmesh.new()
+ apex = bm.verts.new(center + ax * apex_r)
+ rings = [
+ [bm.verts.new(center + dirs[i][j] * float(R[i, j])) for j in range(nphi)]
+ for i in range(nalpha)
]
- y = float(back[:, 1].max()) + 0.022 * s + 0.006 + 0.04
+ for j in range(nphi):
+ bm.faces.new((apex, rings[0][j], rings[0][(j + 1) % nphi]))
+ for a, b in zip(rings[:-1], rings[1:], strict=True):
+ for j in range(nphi):
+ k = (j + 1) % nphi
+ bm.faces.new((a[j], b[j], b[k], a[k]))
+ bm.normal_update()
+ if sum(f.normal.dot(f.calc_center_median() - center) for f in bm.faces) < 0:
+ bmesh.ops.reverse_faces(bm, faces=bm.faces[:])
+ ob = C.mesh_object(name, bm)
+ ob.data.materials.append(bpy.data.materials[mat])
+ _harden(ob, thick)
+ return ob
+
+
+def torso_plate(
+ ctx, name, bvh, facing, zb, zt, hw, nu, nv, gap, thick=0.006, clear=0.009, mat="M_Armor"
+):
+ """Plate over the front (facing -1) or back (+1) of the torso: a height field along Y,
+ rows fitted to a symmetric curve so the shell is smooth and free of anatomy.
+
+ zb(u), zt(u): bottom and top edge heights over u in [-1, 1]; hw(v): half width
+ over v in [0, 1]. Returns the object and a function (u, v) -> point on its face."""
+ us = np.linspace(-1.0, 1.0, nu)
+ vs = np.linspace(0.0, 1.0, nv)
+ X = np.zeros((nv, nu))
+ Z = np.zeros((nv, nu))
+ Yb = np.full((nv, nu), np.nan)
+ for i, v in enumerate(vs):
+ for j, u in enumerate(us):
+ z = zb(u) + v * (zt(u) - zb(u))
+ x = u * hw(v)
+ X[i, j], Z[i, j] = x, z
+ hit = bvh.ray_cast(Vector((x, facing * 1.0, z)), Vector((0.0, -facing, 0.0)), 2.0)
+ # only the near (outward-facing) surface counts, never the far side
+ if hit[0] is not None and hit[1].y * facing > 0.0:
+ Yb[i, j] = hit[0].y
+ Yb = _fill_nan(Yb)
+ E = facing * Yb # outwards distance of the body
+ Env = _grid_filter(E, False, "max", 1)
+ M = np.stack([np.ones_like(us), us**2, us**4], axis=1)
+ for i in range(nv):
+ coef, *_ = np.linalg.lstsq(M, Env[i], rcond=None)
+ Env[i] = 0.7 * (M @ coef) + 0.3 * Env[i]
+ Env = _grid_filter(Env, False, "mean", 2)
+ Ep = np.maximum(Env + gap, E + clear + thick)
+ Ep = np.maximum(_grid_filter(Ep, False, "mean", 2), E + clear + thick * 0.5)
+ Y = facing * Ep
+ rows = [[Vector((X[i, j], Y[i, j], Z[i, j])) for j in range(nu)] for i in range(nv)]
+ ob = _sheet(name, rows, False, lambda p: Vector((0.0, facing, 0.0)), mat)
+ _harden(ob, thick)
+
+ def surf(u, v):
+ fj = (u + 1.0) / 2.0 * (nu - 1)
+ fi = v * (nv - 1)
+ j0 = min(int(fj), nu - 2)
+ i0 = min(int(fi), nv - 2)
+ a, b = fj - j0, fi - i0
+
+ def lerp2(G):
+ return (G[i0, j0] * (1 - a) + G[i0, j0 + 1] * a) * (1 - b) + (
+ G[i0 + 1, j0] * (1 - a) + G[i0 + 1, j0 + 1] * a
+ ) * b
+
+ return Vector((lerp2(X), lerp2(Y), lerp2(Z)))
+
+ return ob, surf
+
+
+def ribs(
+ name, surf, facing, levels, u0=-0.74, u1=0.74, n=13, height=0.0045, width=0.009, mat="M_Armor"
+):
+ """Raised horizontal ribs following a plate face (trapezoid section, capped ends)."""
bm = bmesh.new()
+ out = Vector((0.0, facing, 0.0))
+ up = Vector((0.0, 0.0, 1.0))
+ sec = [(-0.5, -0.001), (-0.32, height), (0.32, height), (0.5, -0.001)]
+ for v in levels:
+ rows = []
+ for u in np.linspace(u0, u1, n):
+ p = surf(float(u), v)
+ rows.append([bm.verts.new(p + up * (a * width) + out * h) for a, h in sec])
+ for r0, r1 in zip(rows[:-1], rows[1:], strict=True):
+ for k in range(3):
+ bm.faces.new((r0[k], r0[k + 1], r1[k + 1], r1[k]))
+ bm.faces.new(rows[0])
+ bm.faces.new(list(reversed(rows[-1])))
+ bm.normal_update()
+ bmesh.ops.recalc_face_normals(bm, faces=bm.faces[:])
+ ob = C.mesh_object(name, bm)
+ ob.data.materials.append(bpy.data.materials[mat])
+ C.set_active(ob)
+ bpy.ops.object.shade_smooth_by_angle(angle=math.radians(38))
+ return ob
+
+
+def back_pack(ctx, y_back: float, z: float):
+ s = ctx.s
+ bm = bmesh.new()
+ d = 0.08
O.box(
bm,
- Vector((0.0, y, z)),
+ Vector((0.0, y_back + d / 2 + 0.002, z)),
Vector((1, 0, 0)),
Vector((0, 0, 1)),
Vector((0, 1, 0)),
- (0.30 * s, 0.20 * s, 0.08),
+ (0.30 * s, 0.20 * s, d),
mat=0,
)
ob = O.new_obj("Pack", bm, ["M_Armor"])
@@ -381,44 +628,54 @@ def back_pack(ctx):
m.width = 0.008
m.segments = 2
O.apply_mod(ob, m)
+ C.set_active(ob)
+ bpy.ops.object.shade_smooth_by_angle(angle=math.radians(38))
ctx.rigid(ob, "Chest")
return ob
-def pouches(ctx, belt_z, out):
+def pouches(ctx, belt_z, out, src):
+ """Six small utility pouches on the belt (bevelled boxes, graphite)."""
s = ctx.s
- torso = ctx.V[
- (np.abs(ctx.V[:, 2] - belt_z) < 0.02) & (np.abs(ctx.V[:, 0]) < 0.25) & ~O._limbs(ctx)[0]
- ]
+ torso = src[(np.abs(src[:, 2] - belt_z) < 0.02) & (np.abs(src[:, 0]) < 0.25)]
c = torso[:, :2].mean(axis=0)
ang, r = O.polar_radii(torso, c, 36, smooth=3)
bm = bmesh.new()
- for a in (-math.pi / 2 - 0.55, -math.pi / 2 + 0.55, math.pi / 2 - 0.5, math.pi / 2 + 0.5):
+ front = -math.pi / 2
+ for a, w in (
+ (front - 0.48, 0.056),
+ (front + 0.48, 0.056),
+ (front - 0.98, 0.05),
+ (front + 0.98, 0.05),
+ (math.pi / 2 - 0.42, 0.06),
+ (math.pi / 2 + 0.42, 0.06),
+ ):
i = int(np.argmin(np.abs(((ang - a) + math.pi) % (2 * math.pi) - math.pi)))
d = Vector((math.cos(ang[i]), math.sin(ang[i]), 0))
- p = Vector((c[0], c[1], belt_z - 0.006)) + d * (r[i] + out + 0.02)
+ dep = 0.028
+ p = Vector((c[0], c[1], belt_z - 0.004)) + d * (r[i] + out + dep / 2 - 0.004)
O.box(
bm,
p,
d.cross(Vector((0, 0, 1))).normalized(),
Vector((0, 0, 1)),
d,
- (0.08 * s, 0.06 * s, 0.04),
+ (w * s, 0.046 * s, dep),
mat=0,
)
ob = O.new_obj("Pouches", bm, ["M_Belt"])
m = ob.modifiers.new("bev", "BEVEL")
- m.width = 0.004
+ m.width = 0.005
m.segments = 1
O.apply_mod(ob, m)
+ C.set_active(ob)
+ bpy.ops.object.shade_smooth_by_angle(angle=math.radians(38))
ctx.transfer(ob)
return ob
def build_trooper(ctx):
s = ctx.s
- V, N = ctx.V, ctx.N
- t = ctx.tparam
boot_top = 0.24 * s
belt_z = 0.575 * ctx.H
neck_z = ctx.L["neck"].z
@@ -429,55 +686,174 @@ def build_trooper(ctx):
),
name="Garment",
)
- O.decimate(garment, 5200 / C.tri_count(garment))
+ O.decimate(garment, 4000 / C.tri_count(garment))
parts = [garment]
- z = V[:, 2]
- torso = ctx.bone_mask("Spine", "Chest", "Shoulder_L", "Shoulder_R", "Hips")
- narrow = np.abs(V[:, 0]) < 0.17 * s
- chest = torso & (z > 0.665 * ctx.H) & (z < neck_z - 0.005) & (N[:, 1] < 0.05) & narrow
- backp = torso & (z > 0.64 * ctx.H) & (z < neck_z - 0.01) & (N[:, 1] > 0.05) & narrow
- abdomen = (
- torso
- & (z > belt_z + 0.04 * s)
- & (z < 0.65 * ctx.H)
- & (N[:, 1] < -0.15)
- & (np.abs(V[:, 0]) < 0.12 * s)
+ torso_bvh = _region_bvh(ctx, ["Spine", "Chest", "Hips", "Neck", "Shoulder_L", "Shoulder_R"])
+ # Chest plate: neckline scoop at the top, a shallow V at the bottom, three ribs.
+ chest_b = 0.668 * ctx.H
+ chest, chest_surf = torso_plate(
+ ctx,
+ "ChestPlate",
+ torso_bvh,
+ -1.0,
+ zb=lambda u: chest_b + 0.012 * s * abs(u) ** 1.5,
+ zt=lambda u: neck_z - 0.052 * s + 0.036 * s * abs(u) ** 1.6,
+ hw=lambda v: (0.116 + 0.012 * v) * s,
+ nu=13,
+ nv=9,
+ gap=0.020,
+ thick=0.006,
+ )
+ ctx.rigid(chest, "Chest")
+ parts.append(chest)
+ rb = ribs("ChestRibs", chest_surf, -1.0, (0.16, 0.30, 0.44))
+ ctx.rigid(rb, "Chest")
+ parts.append(rb)
+ # Abdomen: two articulated bands between the chest plate and the belt.
+ ab_lo, ab_hi = belt_z + 0.034 * s, chest_b - 0.012 * s
+ mid = (ab_lo + ab_hi) / 2
+ for k, (z0, z1) in enumerate(((ab_lo, mid - 0.006 * s), (mid + 0.006 * s, ab_hi))):
+ band, _ = torso_plate(
+ ctx,
+ f"Abdomen{k}",
+ torso_bvh,
+ -1.0,
+ zb=lambda u, z0=z0: z0 + 0.006 * s * abs(u) ** 2,
+ zt=lambda u, z1=z1: z1 + 0.006 * s * abs(u) ** 2,
+ hw=lambda v, k=k: (0.092 + 0.01 * k + 0.006 * v) * s,
+ nu=11,
+ nv=3,
+ gap=0.016,
+ thick=0.005,
+ )
+ ctx.rigid(band, "Spine")
+ parts.append(band)
+ # Back plate with the flat pack.
+ back, back_surf = torso_plate(
+ ctx,
+ "BackPlate",
+ torso_bvh,
+ 1.0,
+ zb=lambda u: 0.640 * ctx.H + 0.01 * s * abs(u) ** 2,
+ zt=lambda u: neck_z - 0.028 * s + 0.02 * s * abs(u) ** 1.6,
+ hw=lambda v: (0.122 + 0.01 * v) * s,
+ nu=11,
+ nv=8,
+ gap=0.020,
+ thick=0.006,
)
- ua = ctx.bone_mask("UpperArm_L")
- pauldron = (ua & (t < 0.38)) | (ctx.bone_mask("Shoulder_L") & (V[:, 0] > 0.15 * s))
- band = ua & (t > 0.50) & (t < 0.62)
- fa = ctx.bone_mask("ForeArm_L", "ForeArm_R")
- ul = ctx.bone_mask("UpperLeg_L", "UpperLeg_R")
- ll = ctx.bone_mask("LowerLeg_L", "LowerLeg_R")
- regions = [
- ("ChestPlate", chest, 0.022, 0.006, "M_Armor"),
- ("BackPlate", backp, 0.02, 0.006, "M_Armor"),
- ("Abdomen", abdomen, 0.016, 0.005, "M_Armor"),
- ("Pauldron", pauldron, 0.024, 0.006, "M_Armor"),
- ("UnitBand", band, 0.006, 0.003, "M_Accent"),
- ("BracerF", fa & (t > 0.18) & (t < 0.82), 0.012, 0.004, "M_Armor"),
- ("Thighs", ul & (t > 0.18) & (t < 0.78) & (N[:, 1] < 0.35), 0.014, 0.005, "M_Armor"),
- (
- "Shins",
- ll & (t > 0.12) & (t < 0.72) & (N[:, 1] < 0.25) & (z > boot_top + 0.01),
+ ctx.rigid(back, "Chest")
+ parts.append(back)
+ pack_z = 0.745 * ctx.H
+ v_pack = (pack_z - 0.640 * ctx.H) / (neck_z - 0.028 * s - 0.640 * ctx.H)
+ parts.append(back_pack(ctx, back_surf(0.0, v_pack).y, pack_z))
+ # Shoulder bells over both deltoids.
+ for side in ("L", "R"):
+ j = ctx.rig.head(f"UpperArm_{side}")
+ h, d, e1, e2 = _limb_frame(ctx, f"UpperArm_{side}")
+ axis = (e2 * 0.78 - d.normalized() * 0.42).normalized()
+ bell = dome_plate(
+ ctx,
+ f"Bell{side}",
+ j + d.normalized() * 0.03 * s,
+ axis,
+ 0.076 * s,
+ 70,
+ 18,
+ 5,
+ [f"UpperArm_{side}", f"Shoulder_{side}"],
0.012,
- 0.005,
- "M_Armor",
- ),
- ]
- for name, mask, gap, thick, mat in regions:
- sh = shell_from_region(ctx, mask, gap * s, thick, name, mat=mat)
- if sh is None:
- continue
- O.decimate(sh, min(1.0, 650 / max(1, C.tri_count(sh))))
- ctx.transfer(sh)
- parts.append(sh)
- parts.append(back_pack(ctx))
+ flare=0.007,
+ )
+ res = np.zeros((len(bell.data.vertices), len(ctx.bones)))
+ res[:, ctx.bones.index(f"UpperArm_{side}")] = 0.7
+ res[:, ctx.bones.index(f"Shoulder_{side}")] = 0.3
+ O.set_weights(bell, ctx.bones, res)
+ parts.append(bell)
+ # Unit band (accent colour) round the left upper arm.
+ parts.append(
+ limb_shell(
+ ctx,
+ "UnitBand",
+ "UpperArm_L",
+ 0.52,
+ 0.62,
+ 0,
+ 0,
+ 2,
+ 12,
+ 0.008,
+ thick=0.003,
+ closed=True,
+ mat="M_Accent",
+ )
+ )
+ for side in ("L", "R"):
+ parts.append(
+ limb_shell(
+ ctx,
+ f"Bracer{side}",
+ f"ForeArm_{side}",
+ 0.2,
+ 0.84,
+ -150,
+ 150,
+ 5,
+ 11,
+ 0.013,
+ thick=0.005,
+ flare=0.004,
+ )
+ )
+ parts.append(
+ limb_shell(
+ ctx,
+ f"Thigh{side}",
+ f"UpperLeg_{side}",
+ 0.24,
+ 0.84,
+ -50,
+ 120,
+ 6,
+ 11,
+ 0.012,
+ thick=0.005,
+ )
+ )
+ ll = f"LowerLeg_{side}"
+ hz, tz = ctx.rig.head(ll).z, ctx.rig.tail(ll).z
+ t_end = (boot_top + 0.006 - hz) / (tz - hz)
+ parts.append(
+ limb_shell(
+ ctx,
+ f"Shin{side}",
+ ll,
+ 0.08,
+ t_end,
+ -118,
+ 118,
+ 6,
+ 12,
+ 0.016,
+ thick=0.005,
+ flare=0.003,
+ )
+ )
parts.append(O.boots(ctx, boot_top, flare=0.008, inflate=0.012, mat="M_Armor"))
+ gv = B.verts_np(garment)
parts.append(
- O.belt(ctx, belt_z, height=0.05, out=0.022, buckle=True, mat="M_Belt", buckle_mat="M_Armor")
+ O.belt(
+ ctx,
+ belt_z,
+ height=0.05,
+ out=0.018,
+ buckle=True,
+ mat="M_Belt",
+ buckle_mat="M_Armor",
+ pts=gv,
+ )
)
- parts.append(pouches(ctx, belt_z, 0.022))
+ parts.append(pouches(ctx, belt_z, 0.018, gv))
parts.extend(trooper_helmet(ctx))
parts.append(
O.collar(ctx, neck_z - 0.006, neck_z + 0.03 * s, out=0.012, mat="M_Undersuit", piping=None)
diff --git a/art/verse/characters/outfits.py b/art/verse/characters/outfits.py
index c2d964958d..a3b5494c92 100644
--- a/art/verse/characters/outfits.py
+++ b/art/verse/characters/outfits.py
@@ -42,7 +42,7 @@ MATERIALS = {
"M_ChestBox": ((0.05, 0.052, 0.056), 0.38, 0.7, {}),
"M_Glow": ((0.9, 0.55, 0.12), 0.4, 0.0, {"emit": 3.0}),
"M_Gloves": ((0.016, 0.016, 0.017), 0.48, 0.0, {}),
- "M_Armor": ((0.80, 0.80, 0.78), 0.28, 0.0, {"coat": 0.6}),
+ "M_Armor": ((0.60, 0.60, 0.58), 0.32, 0.0, {"coat": 0.45}),
"M_Undersuit": ((0.023, 0.026, 0.030), 0.72, 0.0, {"sheen": 0.1}),
"M_Trousers": ((0.105, 0.11, 0.092), 0.8, 0.0, {"sheen": 0.1}),
"M_Mark": ((0.78, 0.78, 0.76), 0.5, 0.0, {}),
@@ -434,34 +434,51 @@ def belt(
buckle_mat="M_RankPlate",
n=40,
name="Belt",
+ pts=None,
):
- torso = slab(
- ctx,
- z,
- 0.03,
- mask=(np.abs(ctx.V[:, 0]) < 0.25)
- & ~ctx.bone_mask(
- "Hand_L",
- "Hand_R",
- "Fingers_L",
- "Fingers_R",
- "ForeArm_L",
- "ForeArm_R",
- "Thumb_L",
- "Thumb_R",
- ),
- )
+ """Belt ring around the torso at z. `pts` (N x 3) replaces the naked body as the
+ surface the belt is measured from (e.g. the tailored cloth surface)."""
+ if pts is not None:
+ # narrower than the naked-body slab: the female elbows reach down to the waist
+ torso = pts[(np.abs(pts[:, 2] - z) < 0.03) & (np.abs(pts[:, 0]) < 0.205 * ctx.s)]
+ else:
+ torso = slab(
+ ctx,
+ z,
+ 0.03,
+ mask=(np.abs(ctx.V[:, 0]) < 0.25)
+ & ~ctx.bone_mask(
+ "Hand_L",
+ "Hand_R",
+ "Fingers_L",
+ "Fingers_R",
+ "ForeArm_L",
+ "ForeArm_R",
+ "Thumb_L",
+ "Thumb_R",
+ ),
+ )
c = torso[:, :2].mean(axis=0)
ang, r = polar_radii(torso, c, n, smooth=3)
+ r_lo = r_hi = r
+ if pts is not None:
+ # Follow the waist-to-hip cone: each edge of the belt takes the cloth radius of
+ # its own half, so it never stands off a narrow waist above flared hips.
+ lo = torso[torso[:, 2] < z + 0.004]
+ hi = torso[torso[:, 2] > z - 0.004]
+ if len(lo) >= 12 and len(hi) >= 12:
+ r_lo = polar_radii(lo, c, n, smooth=3)[1]
+ r_hi = polar_radii(hi, c, n, smooth=3)[1]
+ r = (r_lo + r_hi) / 2
bm = bmesh.new()
rings = []
- for dz, dr in (
- (-height / 2, out - 0.004),
- (-height / 2, out + 0.002),
- (height / 2, out + 0.002),
- (height / 2, out - 0.004),
+ for dz, dr, rr in (
+ (-height / 2, out - 0.004, r_lo),
+ (-height / 2, out + 0.002, r_lo),
+ (height / 2, out + 0.002, r_hi),
+ (height / 2, out - 0.004, r_hi),
):
- rings.append(ring_points(c, ang, r + dr, z + dz))
+ rings.append(ring_points(c, ang, rr + dr, z + dz))
tube(bm, rings, mat=0)
mats = [mat]
if buckle:
@@ -526,10 +543,15 @@ def skirt(
flare=0.02,
mat="M_Uniform",
hem_mat="M_Trim",
+ cloth=None,
):
- # Hull of the pelvis only (not the spread thighs of the rest pose).
+ # Hull of the pelvis only (not the spread thighs of the rest pose). `cloth` is the
+ # garment surface per naked vertex (tailored), else a flat 8 mm over the body.
pelvis = ctx.bone_mask("Hips", "Spine")
- Vg = ctx.V[pelvis] + ctx.N[pelvis] * 0.008
+ if cloth is not None:
+ Vg = cloth[pelvis]
+ else:
+ Vg = ctx.V[pelvis] + ctx.N[pelvis] * 0.008
mask = (np.abs(Vg[:, 0]) < 0.25) & (Vg[:, 2] > z_hem - 0.05) & (Vg[:, 2] < z_top + 0.03)
P_ = Vg[mask]
c = P_[:, :2].mean(axis=0)
@@ -773,7 +795,25 @@ def _limbs(ctx: Ctx):
return hands, fore, upper_arm, head, thigh
+def shoulder_pad(ctx: Ctx) -> np.ndarray:
+ """Outward offset that squares the shoulder line (a light tailored pad)."""
+ V, N = ctx.V, ctx.N
+ ax = np.abs(V[:, 0])
+ neck_z = ctx.L["neck"].z
+ k_x = np.clip((ax - 0.06 * ctx.s) / (0.09 * ctx.s), 0.0, 1.0)
+ k_x = k_x * k_x * (3 - 2 * k_x) * (ax < 0.22 * ctx.s)
+ k_n = np.clip((N[:, 2] - 0.3) / 0.45, 0.0, 1.0)
+ k_z = (V[:, 2] > neck_z - 0.10 * ctx.s).astype(float)
+ return 0.007 * ctx.s * k_x * k_n * k_z
+
+
def classify_officer(ctx: Ctx, female: bool, boot_top: float, belt_z: float):
+ """Tailored tunic and riding breeches.
+
+ The cut is slim: the belly and the hips are taken in under the cloth, the outer
+ shoulder is padded square, and the breeches flare only on the outer thigh (a
+ narrow knee into the boot).
+ """
V, N = ctx.V, ctx.N
n = len(V)
hands, fore, upper_arm, head, thigh = _limbs(ctx)
@@ -782,6 +822,7 @@ def classify_officer(ctx: Ctx, female: bool, boot_top: float, belt_z: float):
inflate = np.full(n, 0.006)
smooth = np.full(n, 3.0)
neck_z = ctx.L["neck"].z
+ pad = shoulder_pad(ctx)
skin_z = neck_z + 0.026 * ctx.s + 0.012 * np.clip(V[:, 1] / 0.06, -1, 1)
hl = hairline(ctx, V, female)
for i in range(n):
@@ -811,28 +852,40 @@ def classify_officer(ctx: Ctx, female: bool, boot_top: float, belt_z: float):
smooth[i] = 3
continue
if fore[i] or upper_arm[i]:
- inflate[i] = 0.005 + 0.003 * C.smoothstep(0.6, 1.0, t[i]) * fore[i]
+ inflate[i] = 0.0045 + 0.003 * C.smoothstep(0.6, 1.0, t[i]) * fore[i] + pad[i]
continue
+ lat = max(0.0, N[i, 0] * (1 if V[i, 0] > 0 else -1))
if thigh[i] or z < ctx.crotch:
- # breeches: flare on the outer thigh, blouse above the boot
- lat = max(0.0, N[i, 0] * (1 if V[i, 0] > 0 else -1))
+ # Riding breeches: a slight flare on the outer thigh only, slim front, back
+ # and inside, narrow at the knee, a small blouse over the boot top.
ft = C.clamp((z - (boot_top + 0.04)) / (ctx.crotch - boot_top - 0.02), 0, 1)
- fl = 0.045 * math.sin(math.pi * ft**0.8) ** 1.5 * (0.35 + 0.65 * lat)
- bl = 0.006 * C.smoothstep(boot_top + 0.08, boot_top, z)
+ prof = math.sin(math.pi * ft**0.7) ** 2
+ fl = 0.034 * prof * (0.1 + 0.9 * lat**1.5)
+ take_in = 0.004 * C.smoothstep(0.55, 1.0, ft) * (1.0 - lat)
+ bl = 0.005 * C.smoothstep(boot_top + 0.07, boot_top, z)
labels[i] = "M_Trousers"
- inflate[i] = 0.006 + fl * ctx.s + bl
+ inflate[i] = 0.0035 + (fl - take_in) * ctx.s + bl
smooth[i] = 4
continue
# torso
smooth[i] = 8 if z > belt_z else 6
front = N[i, 1] < -0.3
+ # Tailoring: take in the belly and the waist, and the hips under the belt.
+ fr = C.clamp((-N[i, 1] - 0.2) / 0.6, 0.0, 1.0)
+ waist = math.exp(-(((z - (belt_z + 0.03 * ctx.s)) / (0.075 * ctx.s)) ** 2))
+ hip = C.smoothstep(belt_z + 0.01, belt_z - 0.05, z) * C.smoothstep(
+ ctx.crotch - 0.04, ctx.crotch + 0.03, z
+ )
+ bk = C.clamp((N[i, 1] - 0.3) / 0.5, 0.0, 1.0)
+ trim = 0.011 * fr * waist + 0.004 * lat * waist + 0.009 * lat * hip + 0.006 * bk * hip
+ base = 0.006 - trim * ctx.s + pad[i]
# Asymmetric closure: the front flap ends in a straight vertical edge 70 mm to
# the wearer's right of the centre line (a small step in the cloth).
edge = flap_edge_x(ctx, z, belt_z, neck_z)
if front and belt_z - 0.02 < z < neck_z + 0.01 and V[i, 0] > edge:
- inflate[i] = 0.006 + 0.0025 * C.smoothstep(0.14 * ctx.s, edge, V[i, 0])
+ inflate[i] = base + 0.0025 * C.smoothstep(0.14 * ctx.s, edge, V[i, 0])
else:
- inflate[i] = 0.006
+ inflate[i] = base
return labels, inflate, smooth
@@ -854,17 +907,22 @@ def flap_seam(ctx: Ctx, garment, belt_z: float, neck_z: float, mat="M_Trim"):
if hit[0] is not None:
pts.append((hit[0], hit[1]))
bm = bmesh.new()
- row_a, row_b = [], []
+ # Raised bead (half-round piping, 9 mm wide, 2.5 mm high): it catches the ceiling
+ # light, so the flap line reads from the 60 degree game camera even tone-on-tone.
+ prof = [(-1.0, 0.0), (-0.65, 0.65), (0.0, 1.0), (0.65, 0.65), (1.0, 0.0)]
+ rows = []
for i, (p, nrm) in enumerate(pts):
nxt = pts[min(i + 1, len(pts) - 1)][0]
prv = pts[max(i - 1, 0)][0]
d = (nxt - prv).normalized()
side = d.cross(nrm).normalized()
- base = p + nrm * 0.0012
- row_a.append(bm.verts.new(base - side * 0.0035))
- row_b.append(bm.verts.new(base + side * 0.0035))
- for i in range(len(pts) - 1):
- bm.faces.new((row_a[i], row_b[i], row_b[i + 1], row_a[i + 1]))
+ base = p + nrm * 0.0008
+ rows.append(
+ [bm.verts.new(base + side * (a * 0.0045) + nrm * (h * 0.0025)) for a, h in prof]
+ )
+ for i in range(len(rows) - 1):
+ for j in range(len(prof) - 1):
+ bm.faces.new((rows[i][j], rows[i][j + 1], rows[i + 1][j + 1], rows[i + 1][j]))
ob = new_obj("Seam", bm, [mat])
ctx.transfer(ob)
return ob
@@ -948,16 +1006,20 @@ def build_officer(ctx: Ctx):
female = ctx.variant == "F"
s = ctx.s
boot_top = 0.48 * s
- belt_z = 0.585 * ctx.H
+ belt_z = (0.597 if female else 0.585) * ctx.H # natural waist
neck_z = ctx.L["neck"].z
- garment = garment_body(
- ctx, lambda c: classify_officer(c, female, boot_top, belt_z), name="Garment"
- )
+ cut = classify_officer(ctx, female, boot_top, belt_z)
+ cloth = ctx.V + ctx.N * cut[1][:, None]
+ garment = garment_body(ctx, lambda c: cut, name="Garment")
decimate(garment, 8200 / C.tri_count(garment))
parts = [garment]
parts.append(boots(ctx, boot_top, flare=0.006, inflate=0.006))
- parts.append(skirt(ctx, garment, belt_z - 0.02, ctx.crotch - 0.01 * s, out=0.003, flare=0.012))
- parts.append(belt(ctx, belt_z, buckle=True))
+ parts.append(
+ skirt(
+ ctx, garment, belt_z - 0.02, ctx.crotch - 0.01 * s, out=0.003, flare=0.005, cloth=cloth
+ )
+ )
+ parts.append(belt(ctx, belt_z, out=0.013, buckle=True, pts=B.verts_np(garment)))
parts.append(collar(ctx, neck_z - 0.004, neck_z + 0.040 * s, mat="M_Uniform"))
parts.append(shoulder_piping(ctx, garment))
parts.append(flap_seam(ctx, garment, belt_z, neck_z))
diff --git a/art/verse/characters/qa.py b/art/verse/characters/qa.py
index ff715a7490..9c6413a888 100644
--- a/art/verse/characters/qa.py
+++ b/art/verse/characters/qa.py
@@ -148,7 +148,7 @@ def render(path):
print(f"[qa] {path}")
-def contact_sheet(built, ctxs):
+def contact_sheet(built, ctxs, full=True):
from characters.build import TIERS
C.ensure_dir(QA_DIR)
@@ -193,6 +193,8 @@ def contact_sheet(built, ctxs):
camera(cx, 0.85, width, 2.0, ppm)
bpy.context.scene.cycles.samples = 128 if ppm < 200 else 96
render(QA_DIR / f"contact_{tag}.png")
+ if not full:
+ return
# walk filmstrip (first built character), 10 frames, 3x
cid, (ctx, objs) = next(iter(built.items()))
body = A.Body(ctx.rig)
diff --git a/art/verse/decks/ops/arch.py b/art/verse/decks/ops/arch.py
index c06d6cb1f1..cd5ab771bb 100644
--- a/art/verse/decks/ops/arch.py
+++ b/art/verse/decks/ops/arch.py
@@ -13,7 +13,7 @@ from __future__ import annotations
import math
from decks.ops import layout as L
-from decks.ops.geo import CUT_H, Mesh, collection, emitter_h, point_light, tag
+from decks.ops.geo import CUT_H, Mesh, area_light, collection, emitter_h, point_light, tag
from kit.architecture import hull
from lib import kit
@@ -27,15 +27,15 @@ RECESS = "M_Recess_Dark"
SKIN = 0.025 # panel skin on visible wall faces
FLOOR_MATS = {
- "mess": "M_Floor_SatinDark",
+ "mess": "M_Floor_GlossBlack",
"records": "M_Floor_GlossBlack",
- "simulator": "M_Floor_SatinDark",
+ "simulator": "M_Ops_Floor_Satin",
"quartermaster": "M_Floor_GlossBlack",
- "quarters": "M_Floor_SatinDark",
- "team_a": "M_Floor_SatinDark",
- "team_b": "M_Floor_SatinDark",
+ "quarters": "M_Ops_Floor_Satin",
+ "team_a": "M_Ops_Floor_Satin",
+ "team_b": "M_Ops_Floor_Satin",
"lobby": "M_Floor_GlossBlack",
- "storage": "M_Floor_SatinDark",
+ "storage": "M_Ops_Floor_Satin",
"medbay": "M_Ops_Floor_SatinGrey",
}
@@ -166,38 +166,81 @@ def hero_wall_body(cavities=()) -> None:
m = Mesh()
hz = L.HERO_Z
xs = [(-2.0, 98.0)]
+ # The hull body stops at the room ceiling: above it the camera looks into
+ # an open cornice gallery (deck beams, pipe runs, maintenance lamps), so
+ # the top edge of the plate is lit ship structure, never a black slab.
+ top = L.ROOM_H
for x0, x1, h0, h1 in cavities:
m.box(x0, x1, -3.0, hz - 0.12, -0.6, h0 - 0.12, "M_Hull_Structure")
- m.box(x0, x1, -3.0, hz - 0.12, h1 + 0.12, L.HULL_H, "M_Hull_Structure")
+ m.box(x0, x1, -3.0, hz - 0.12, h1 + 0.12, top, "M_Hull_Structure")
m.box(x0, x1, -3.0, hz - 1.6, h0 - 0.12, h1 + 0.12, "M_Hull_Structure")
holes = [(x0, x1) for x0, x1, _, _ in cavities]
for a, b in L.solid_spans(xs[0][0], xs[0][1], holes):
- m.box(a, b, -3.0, hz - 0.12, -0.6, L.HULL_H, "M_Hull_Structure")
- # Cornice: the cut ceiling structure seen from above, ribbed every 2.4 m.
+ m.box(a, b, -3.0, hz - 0.12, -0.6, top, "M_Hull_Structure")
+ # Cornice: the cut ceiling structure seen from above.
m.box(-2.0, 98.0, -3.0, hz + 0.32, L.ROOM_H, L.ROOM_H + 0.18, STEEL)
m.box(-2.0, 98.0, hz + 0.24, hz + 0.32, L.ROOM_H - 0.22, L.ROOM_H, STEEL)
+ tag(m.build("SM_Ops_HullFar", bevel=0.01), nav="block")
+ _cornice_gallery()
+
+
+def _cornice_gallery() -> None:
+ """Open structure on top of the far hull wall: I-section deck beams every
+ 2.4 m, pipe runs and a cable tray along the ship, caged maintenance lamps
+ on every second beam (every third one red)."""
+ hz, base = L.HERO_Z, L.ROOM_H + 0.18
+ beams, pipes, lamps = Mesh(), Mesh(), Mesh()
+ deck = "M_Hull_Structure"
for k in range(0, 41):
x = -0.6 + 2.4 * k
- m.box(x - 0.16, x + 0.16, -2.6, hz + 0.3, L.ROOM_H + 0.18, L.HULL_H - 0.12, STEEL)
- m.box(-2.0, 98.0, -2.6, hz + 0.1, L.HULL_H - 0.12, L.HULL_H, "M_Hull_Structure")
- tag(m.build("SM_Ops_HullFar", bevel=0.01), nav="block")
- pipes = Mesh()
- for i, (dz, r, mat) in enumerate(
- (
- (-1.9, 0.16, "M_Hull_PipeInsulated"),
- (-1.3, 0.09, "M_Hull_Pipe"),
- (-0.8, 0.11, "M_Hull_Pipe"),
- (-0.2, 0.06, "M_Trim_BrushedSteel"),
- (0.6, 0.13, "M_Hull_PipeInsulated"),
- (1.25, 0.07, "M_Hull_Pipe"),
- )
- ):
- hh = L.ROOM_H + 0.18 + r + 0.02 + (0.08 if i % 2 else 0.0)
+ beams.box(x - 0.025, x + 0.025, -2.6, hz + 0.22, base, L.HULL_H - 0.06, STEEL)
+ beams.box(x - 0.13, x + 0.13, -2.6, hz + 0.22, L.HULL_H - 0.06, L.HULL_H, STEEL)
+ beams.box(x - 0.11, x + 0.11, -2.6, hz + 0.22, base, base + 0.05, STEEL)
+ # Bracket where the beam lands on the cornice face.
+ beams.box(x - 0.09, x + 0.09, hz - 0.1, hz + 0.28, base, base + 0.42, deck)
+ # Longitudinal stringer and a tread plate for the maintenance crews.
+ beams.box(-2.0, 98.0, -0.55, -0.42, base, base + 0.62, STEEL)
+ beams.box(-2.0, 98.0, -0.3, 0.3, base, base + 0.02, "M_Floor_Grating")
+ runs = (
+ (-0.8, 0.11, "M_Hull_Pipe", 0.0),
+ (-0.2, 0.06, "M_Trim_BrushedSteel", 0.22),
+ (0.62, 0.14, "M_Hull_PipeInsulated", 0.0),
+ (1.05, 0.05, "M_Trim_BrushedSteel", 0.3),
+ (1.32, 0.07, "M_Hull_Pipe", 0.1),
+ )
+ for dz, r, mat, lift in runs:
+ hh = base + r + 0.04 + lift
pipes.tube((-2.0, dz, hh), (98.0, dz, hh), r, mat, 16)
for k in range(0, 41):
x = -0.6 + 2.4 * k
- pipes.box(x - 0.05, x + 0.05, -2.2, 1.6, L.ROOM_H + 0.18, L.ROOM_H + 0.5, STEEL)
- tag(pipes.build("SM_Ops_HullFarPipes", bevel=0.004), nav="none")
+ # Pipe saddles on every beam.
+ pipes.box(x - 0.06, x + 0.06, -0.95, 1.45, base, base + 0.06, STEEL)
+ # Supply main along the cornice face.
+ pipes.tube(
+ (-2.0, 1.85, base + 0.16), (98.0, 1.85, base + 0.16), 0.11, "M_Hull_PipeInsulated", 16
+ )
+ tag(beams.build("SM_Ops_CorniceBeams", bevel=0.006), nav="none")
+ tag(pipes.build("SM_Ops_CornicePipes", bevel=0.0), nav="none")
+ k = 0
+ cages = Mesh()
+ for i in range(1, 41, 2):
+ x = -0.6 + 2.4 * i
+ red = k % 3 == 2
+ mat = "M_Light_Maint_Red" if red else "M_Ops_Light_Maint"
+ # Bracket off the beam web, lamp clear of the top flange so it shows.
+ cages.box(x + 0.025, x + 0.24, 0.2, 0.3, base + 0.4, base + 0.44, STEEL)
+ cages.box(x + 0.13, x + 0.25, 0.1, 0.4, base + 0.27, base + 0.31, STEEL)
+ lamps.box(x + 0.145, x + 0.235, 0.13, 0.37, base + 0.31, base + 0.4, mat)
+ if red:
+ point_light(f"LT_Cornice_{k}", x + 0.5, 0.25, base + 0.36, 5.0, color=(1.0, 0.1, 0.05))
+ else:
+ point_light(f"LT_Cornice_{k}", x + 0.5, 0.25, base + 0.36, 22.0, kelvin=5000.0)
+ k += 1
+ tag(cages.build("SM_Ops_CorniceCages", bevel=0.003), nav="none")
+ tag(lamps.build("SM_Ops_CorniceLamps", bevel=0.0), nav="none")
+ # Dim cool spill from the deck above, so the beams and pipes between the
+ # lamps keep their shape (never seen, never mirrored).
+ area_light("LT_CorniceSpill", 48.0, 0.9, L.HULL_H + 0.9, 100.0, 3.2, 480.0, kelvin=6000.0)
# ---------------------------------------------------------------- corridor
@@ -667,14 +710,64 @@ def trench(
def near_wall() -> None:
- """The near hull wall (z 58..60), cut at 1.1 m; its outer face is hull."""
+ """The near hull wall (z 58..60), cut at 1.1 m: two skins with a service
+ gallery between them (frames, pipe runs, caged maintenance lamps), so the
+ bottom edge of the plate reads as lit hull structure, not a flat band."""
z0, z1 = L.NEAR_Z, L.NEAR_Z + 2.0
+ t = 0.3
m = Mesh()
- m.box(2.4, 93.6, z0, z1, -0.6, CUT_H - 0.012, PAINT_DARK)
- m.box(2.4, 93.6, z0, z1, CUT_H - 0.012, CUT_H, CAP)
+ for za, zb in ((z0, z0 + t), (z1 - t, z1)):
+ m.box(2.4, 93.6, za, zb, -0.6, CUT_H - 0.012, PAINT_DARK)
+ m.box(2.4, 93.6, za, zb, CUT_H - 0.012, CUT_H, CAP)
tag(m.build("SM_Ops_Wall_Near", bevel=0.005), nav="block")
up = Mesh().box(2.4, 93.6, z0, z1, CUT_H, L.ROOM_H, PAINT_MID)
up.build("SM_Ops_WallUpper_Near", "Ceiling", bevel=0.0)
+ _hull_gallery("Near", 2.7, 93.3, z0 + t, z1 - t)
+
+
+def _hull_gallery(name: str, x0: float, x1: float, z0: float, z1: float) -> None:
+ """Service gallery inside a thick hull wall, running along x."""
+ fl = -0.55
+ m, pipes, lamps = Mesh(), Mesh(), Mesh()
+ m.box(x0, x1, z0, z1, fl - 0.06, fl, "M_Floor_Grating")
+ m.box(x0, x1, z0, z0 + 0.012, fl, CUT_H - 0.02, PAINT_MID) # inner skin lining
+ for k in range(math.ceil(x0 / 2.4), math.floor(x1 / 2.4) + 1):
+ x = 2.4 * k
+ # Open ring frame across the gallery: bottom and top chords and two
+ # posts, so the lamps light the run beyond each frame too.
+ m.box(x - 0.02, x + 0.02, z0, z1, fl, fl + 0.32, STEEL)
+ m.box(x - 0.02, x + 0.02, z0, z1, 0.86, CUT_H - 0.04, STEEL)
+ m.box(x - 0.1, x + 0.1, z0, z1, CUT_H - 0.08, CUT_H - 0.04, STEEL)
+ for za, zb in ((z0, z0 + 0.12), (z1 - 0.12, z1)):
+ m.box(x - 0.02, x + 0.02, za, zb, fl, CUT_H - 0.04, STEEL)
+ runs = (
+ (z0 + 0.32, fl + 0.36, 0.13, "M_Hull_PipeInsulated"),
+ (z0 + 0.72, fl + 0.24, 0.08, "M_Hull_Pipe"),
+ (z1 - 0.28, fl + 0.4, 0.09, "M_Hull_Pipe"),
+ (z0 + 0.6, 0.62, 0.035, "M_Trim_BrushedSteel"),
+ )
+ for z, hh, r, mat in runs:
+ pipes.tube((x0, z, hh), (x1, z, hh), r, mat, 14)
+ # Cable tray on the inner skin.
+ m.box(x0, x1, z0 + 0.012, z0 + 0.3, 0.42, 0.44, "M_Floor_Grating")
+ for i in range(3):
+ z = z0 + 0.06 + i * 0.08
+ pipes.tube((x0, z, 0.465), (x1, z, 0.465), 0.02, "M_Rubber_Black", 8)
+ x, k = x0 + 1.2, 0
+ while x < x1 - 1.0:
+ red = k % 3 == 2
+ mat = "M_Light_Maint_Red" if red else "M_Ops_Light_Maint"
+ m.box(x - 0.15, x + 0.15, z0 + 0.012, z0 + 0.1, 0.66, 0.84, STEEL)
+ lamps.box(x - 0.12, x + 0.12, z0 + 0.1, z0 + 0.13, 0.69, 0.81, mat)
+ if red:
+ point_light(f"LT_{name}Gallery_{k}", x, z0 + 0.45, 0.72, 3.0, color=(1.0, 0.1, 0.05))
+ else:
+ point_light(f"LT_{name}Gallery_{k}", x, z0 + 0.45, 0.72, 14.0, kelvin=5000.0)
+ x += 4.8
+ k += 1
+ tag(m.build(f"SM_Ops_Gallery_{name}", bevel=0.004), nav="none")
+ tag(pipes.build(f"SM_Ops_GalleryPipes_{name}", bevel=0.0), nav="none")
+ tag(lamps.build(f"SM_Ops_GalleryLamps_{name}", bevel=0.0), nav="none")
def med_wall() -> None:
@@ -698,6 +791,42 @@ def side_hulls() -> None:
for xa, xb in ((2.4, 2.7), (93.3, 93.6)):
edge.box(xa, xb, L.HERO_Z, L.NEAR_Z + 2.0, -0.6, 0.02, STEEL)
tag(edge.build("SM_Ops_HullEdges", bevel=0.01), nav="none")
+ _hull_edge_lamps()
+
+
+# (facing, rib x, z offset): the open ribs at x = 0 / 96, the deck-edge copings
+# at x = 2.4 / 93.6, staggered so the lamps zig-zag every 2.4 m.
+_EDGE_RIBS = ((1.0, 0.0, 0.0), (-1.0, 96.0, 0.0), (-1.0, 2.4, 2.4), (1.0, 93.6, 2.4))
+
+
+def _hull_edge_lamps() -> None:
+ """Caged maintenance lamps hung on the first open rib inside each side
+ hull strip (x = 0 and x = 96), every 4.8 m along the ship, every third
+ one red: they pick the frames, pipe runs and tank top out of the dark."""
+ lamps, cages = Mesh(), Mesh()
+ k = 0
+ z = L.HERO_Z + 1.4
+ while z < L.NEAR_Z + 1.6:
+ red = k % 3 == 1
+ mat = "M_Light_Maint_Red" if red else "M_Ops_Light_Maint"
+ for side, rib, dz in _EDGE_RIBS:
+ if z + dz > L.NEAR_Z + 1.6:
+ continue
+ z_ = z + dz
+ xa = rib + side * 0.015
+ xb = xa + side * 0.07
+ cages.box(min(xa, xb), max(xa, xb), z_ - 0.16, z_ + 0.16, -0.62, -0.42, STEEL)
+ xc = xb + side * 0.03
+ lamps.box(min(xb, xc), max(xb, xc), z_ - 0.12, z_ + 0.12, -0.58, -0.46, mat)
+ lx, name = rib + side * 0.35, f"LT_HullEdge_{rib:.0f}_{k}"
+ if red:
+ point_light(name, lx, z_, -0.5, 6.0, color=(1.0, 0.1, 0.05))
+ else:
+ point_light(name, lx, z_, -0.5, 34.0, kelvin=5000.0)
+ z += 4.8
+ k += 1
+ tag(cages.build("SM_Ops_HullEdgeCages", bevel=0.004), nav="none")
+ tag(lamps.build("SM_Ops_HullEdgeLamps", bevel=0.0), nav="none")
def lift_core() -> None:
@@ -818,7 +947,9 @@ def ceiling() -> None:
"""One camera-invisible ceiling slab over the rooms (the corridor has its
own, lower one); the fixtures are dressed per room."""
m = Mesh()
- m.box(-2.0, 98.0, -3.0, 62.0, L.ROOM_H, L.ROOM_H + 0.3, "M_Ceiling_Panel")
+ # Starts at the hero wall's face so the lamps of the cornice gallery above
+ # the hull wall can light it (the cornice seals the rooms below).
+ m.box(-2.0, 98.0, L.HERO_Z, 62.0, L.ROOM_H, L.ROOM_H + 0.3, "M_Ceiling_Panel")
m.build("SM_Ops_Ceiling", "Ceiling", bevel=0.0)
@@ -874,18 +1005,21 @@ def ring_luminaire(
r: float = 2.2,
h: float = L.ROOM_H,
mat: str = "M_Light_CeilingPanel",
+ fins: bool = True,
) -> None:
"""Staff-room luminaire: a diffuser disc framed by a ring of vertical fins
- (camera-invisible; read in the floor reflection and the light it casts)."""
+ (camera-invisible; read in the floor reflection and the light it casts).
+ ``fins=False`` leaves a plain ring, so its mirror never reads as a spoked
+ emblem."""
import math as _m
- fins, em = Mesh(), Mesh()
- fins.cyl(cx, cz, r + 0.12, h - 0.08, h, STEEL, 64)
+ fins_m, em = Mesh(), Mesh()
+ fins_m.cyl(cx, cz, r + 0.12, h - 0.08, h, STEEL, 64)
n = int(2 * _m.pi * r / 0.12)
- for i in range(n):
+ for i in range(n if fins else 0):
t = 2 * _m.pi * i / n
x, z = cx + (r + 0.05) * _m.cos(t), cz + (r + 0.05) * _m.sin(t)
- fins.box(x - 0.025, x + 0.025, z - 0.025, z + 0.025, h - 0.6, h - 0.08, PAINT)
+ fins_m.box(x - 0.025, x + 0.025, z - 0.025, z + 0.025, h - 0.6, h - 0.08, PAINT)
# A lit annulus (the diffuser band inside the fins): mirrored in the deck
# it reads as a thin ring, never as a white plate on the floor.
seg = 72
@@ -901,7 +1035,7 @@ def ring_luminaire(
],
mat,
)
- fins.build(f"SM_Ops_RingFins_{name}", "Ceiling", bevel=0.0)
+ fins_m.build(f"SM_Ops_RingFins_{name}", "Ceiling", bevel=0.0)
o = em.build(f"SM_Ops_RingLight_{name}", "Ceiling", bevel=0.0, shadow=False, keep_normals=True)
o.visible_shadow = False
diff --git a/art/verse/decks/ops/dressing.py b/art/verse/decks/ops/dressing.py
index 47aeb9b244..a7e7da10c3 100644
--- a/art/verse/decks/ops/dressing.py
+++ b/art/verse/decks/ops/dressing.py
@@ -203,15 +203,32 @@ def mess(bay_spans) -> None:
for k in range(5):
tx = run_x0 + 1.05 + 2.1 * k
place("SM_Table_Mess", tx, cz, 0.0, f"mess_table_{r}{side}{k}", "mess", seat_name)
- strips.append((run_x0 + 0.3, run_x0 + 10.2, cz - 0.12, cz + 0.12))
+ props.mess_place_settings(rm.hard, tx, cz, seed=101 + r * 17 + side * 7 + k * 3)
+ # A ceiling panel over every table: the rows mirror in the black
+ # deck as dashes down each aisle.
+ for k in range(5):
+ tx = run_x0 + 1.05 + 2.1 * k
+ strips.append((tx - 0.45, tx + 0.45, cz - 0.15, cz + 0.15))
+ if r == 0:
+ strips.append((tx - 0.45, tx + 0.45, 4.85, 5.15))
+ # Two downlight pools per run: the tables glow, the aisles fall off.
+ for k in (1, 3):
+ pool(f"mess_run_{r}{side}{k}", run_x0 + 1.05 + 2.1 * k, cz, 200.0, 60.0, 6200.0)
+ props.floor_code(rm.flat, "2-01", 17.0, 24.8)
+ # Duty terminal in the far wall's last panel bay (sockets dropped).
+ place("SM_Terminal_Wall", 29.84, L.HERO_Z + 0.02, 0.0, "mess_terminal", "mess", _drop)
rm.build()
arch.linear_lights("mess_tables", strips, mat="M_Ops_Light_MessCool")
# The one warm note: a 3 200 K pool over the serving line.
pool("mess_galley", hc, L.HERO_Z + 2.3, 280.0, 72.0, kelvin=3200.0)
- for i, z in enumerate((6.2, 12.6, 18.9, 24.6)):
- pool(f"mess_{i}", 17.0, z, 380.0, 66.0)
+ pool("mess_aisle_n", 17.0, 6.0, 160.0, 60.0)
wall_wash("mess_counter", hc, 9.6, 520.0)
- wall_wash("mess_slit", (sx0 + sx1) / 2, sx1 - sx0, 260.0)
+ wall_wash("mess_slit", (sx0 + sx1) / 2, sx1 - sx0, 200.0)
+
+
+def _drop(kind: str, loc: str) -> None:
+ """Socket rename that drops every socket of a dressing-only kit piece."""
+ return None
# ---------------------------------------------------------------- records
@@ -352,7 +369,7 @@ def quartermaster() -> None:
"LT_QM_Dais", cx, 11.4, 4.4, 90.0, kelvin=6000.0, angle_deg=40.0, blend=0.5, radius=0.3
)
wall_wash("qm_lockers", cx, 12.4, 600.0)
- pool("qm_counter", cx, 20.4, 180.0, 60.0)
+ pool("qm_counter", cx, 19.2, 280.0, 60.0)
# ---------------------------------------------------------------- quarters
@@ -400,7 +417,12 @@ def quarters() -> None:
)
# Reading lamp in front of the head unit, over the pillow.
head = cz - 0.75 if heads_north else cz + 0.75
- point_light(f"LT_Bunk_{n:02d}", bx, head, 1.35, 5.0, kelvin=5000.0, radius=0.1)
+ point_light(f"LT_Bunk_{n:02d}", bx, head, 1.35, 5.0, kelvin=5200.0, radius=0.1)
+ # Locker banks closing the gap between the two berth groups at the aisle
+ # end of each double row, doors to the aisle (sockets dropped).
+ for pair_z in BERTH_PAIRS:
+ pid = f"q_gap_{pair_z:.0f}"
+ place("SM_Lockers_Uniform", 23.9, pair_z + 2.02, 0.0, pid, "quarters", _drop)
# Off-duty corner: two tables by the near wall.
for i, x in enumerate((20.0, 30.0)):
place(
@@ -412,20 +434,26 @@ def quarters() -> None:
"quarters",
lambda k, loc, i=i: f"quarters_{i * 6 + int(loc)}" if k == "seat" else None,
)
+ props.mess_place_settings(rm.hard, x, 55.0, seed=71 + i * 13)
+ props.floor_code(rm.flat, "2-11", 15.6, 35.9)
+ # Washroom: grey satin tile laid flush over the deck plate.
+ rm.flat.box(x0, 11.0, z0, 48.0, 0.0005, 0.003, "M_Ops_Floor_WashTile")
rm.build()
- arch.linear_lights(
- "quarters",
- [
- (12.6, 36.4, 35.6, 35.75),
- (12.6, 36.4, 44.3, 44.45),
- (12.6, 36.4, 53.0, 53.15),
- (4.0, 10.4, 39.0, 39.15),
- (4.0, 10.4, 47.0, 47.15),
- ],
- mat="M_Ops_Light_Night",
- )
- for i, (x, z) in enumerate(((24.7, 36.4), (24.7, 44.4), (24.7, 52.6), (7.2, 42.0))):
- pool(f"quarters_{i}", x, z, 200.0, 62.0, kelvin=5000.0)
+ # Night strips over the berth rows, placed so each mirrors into the aisle
+ # in front of it; a pool per aisle and group; a clinical pool in the washroom.
+ rows = (33.95, 41.7, 51.9)
+ strips = [
+ (gx + 1.4 * (i + 0.5) - 0.4, gx + 1.4 * (i + 0.5) + 0.4, z, z + 0.15)
+ for z in rows
+ for gx in BERTH_GROUPS
+ for i in range(6)
+ ]
+ strips += [(4.0, 10.4, 39.0, 39.15), (4.0, 10.4, 47.0, 47.15)]
+ arch.linear_lights("quarters", strips, mat="M_Ops_Light_Night")
+ for i, z in enumerate((35.9, 44.4, 54.2)):
+ for j, x in enumerate((18.0, 29.8)):
+ pool(f"quarters_{i}{j}", x, z, 240.0, 64.0, kelvin=5600.0)
+ pool("quarters_wash", 7.2, 42.0, 110.0, 64.0, kelvin=6500.0)
# ---------------------------------------------------------------- ready rooms
@@ -461,11 +489,20 @@ def team_room(rid: str, cx: float) -> None:
spec = props.console(rm.hard, rm.scr, rm.lights, cx - 1.8, cx + 1.8, 53.4, tilt=55.0)
sx, sz, sh, w, h, tilt = spec
screen(f"team_{letter}_plan", sx, sz, sh, w, h, tilt_deg=tilt, room=rid)
+ # Standing status consoles flanking the display wall (sockets dropped).
+ for i, dx in enumerate((-4.4, 4.4)):
+ place("SM_Console_Standing", cx + dx, z0 + 1.6, 0.0, f"{rid}_status_{i + 1}", rid, _drop)
+ # The room's code stencilled by the door.
+ props.floor_code(rm.flat, "2-1" + ("2" if letter == "a" else "3"), cx - 3.0, 35.5)
rm.build()
- # A light pool over the table, one at the display wall, one at the planning desk.
- pool(f"{rid}_table", cx, tz, 450.0, 60.0)
+ arch.ring_luminaire(rid, cx, tz, r=2.0, mat="M_Ops_Light_Ring", fins=False)
+ # A light pool over the table, one at the display wall, one at the planning
+ # desk, one over each kit rack.
+ pool(f"{rid}_table", cx, tz, 380.0, 60.0)
pool(f"{rid}_wall", cx, z0 + 2.4, 260.0, 65.0)
- pool(f"{rid}_plan", cx, 52.4, 260.0, 65.0)
+ pool(f"{rid}_plan", cx, 52.4, 240.0, 65.0)
+ for side, x in (("w", x0 + 2.1), ("e", x1 - 2.1)):
+ pool(f"{rid}_gear_{side}", x, 50.6, 170.0, 62.0)
# ---------------------------------------------------------------- lobby
diff --git a/art/verse/decks/ops/facade.py b/art/verse/decks/ops/facade.py
index 0da578e15e..326d8f6806 100644
--- a/art/verse/decks/ops/facade.py
+++ b/art/verse/decks/ops/facade.py
@@ -17,7 +17,7 @@ from __future__ import annotations
import math
from decks.ops import layout as L
-from decks.ops.arch import PAINT, PAINT_DARK, RECESS, STEEL
+from decks.ops.arch import PAINT, PAINT_DARK, PAINT_MID, RECESS, STEEL
from decks.ops.geo import Mesh, tag
HZ = L.HERO_Z
@@ -199,7 +199,7 @@ def _bay_slit(m, lights, glass, stars, a, b):
m.box(a - 0.06, a + 0.06, HZ - 0.4, HZ + 0.1, lo - 0.12, hi + 0.12, STEEL)
m.box(b - 0.06, b + 0.06, HZ - 0.4, HZ + 0.1, lo - 0.12, hi + 0.12, STEEL)
m.box(a, b, HZ - 0.36, HZ - 0.3, lo, lo + 0.04, "M_Rubber_Black")
- glass.quad_v(a + 0.06, b - 0.06, HZ - 0.3, lo, hi, "M_Glass_Viewport")
+ glass.quad_v(a + 0.06, b - 0.06, HZ - 0.3, lo, hi, "M_Ops_Glass_Slit")
# Star field: a plane square to the camera just behind the glass. The
# ortho camera has no parallax, so depth does not matter; the hull body
# behind it is hollowed by `arch.hero_wall_body` (see `cavities`).
@@ -218,30 +218,49 @@ def _bay_slit(m, lights, glass, stars, a, b):
def cavities() -> list[tuple[float, float, float, float]]:
- """Hull-body cut-outs behind the viewport slits: (x0, x1, h0, h1)."""
+ """Hull-body cut-outs behind the viewport slits and the galley hatch:
+ (x0, x1, h0, h1)."""
out = []
for x0, x1, kinds in PLANS.values():
bay = (x1 - x0) / len(kinds)
for i, k in enumerate(kinds):
if k == "slit":
out.append((x0 + i * bay, x0 + (i + 1) * bay, SLIT[0], SLIT[1]))
+ elif k == "hatch":
+ out.append((x0 + i * bay, x0 + (i + 1) * bay, HATCH[0], HATCH[1]))
return out
+HATCH = (1.05, 2.25)
+HATCH_D = 0.55 # shallow enough that the camera sees the lit back wall
+
+
def _bay_hatch(m, lights, glass, stars, a, b):
- """Galley pass-through: a lit opening behind the serving counter."""
- lo, hi = 1.05, 2.25
+ """Galley pass-through: a shallow opening behind the serving counter with
+ a warm back-lit wall and steel shelving in silhouette in front of it (the
+ hull body behind it is cut away by ``cavities``)."""
+ lo, hi = HATCH
+ back = HZ - HATCH_D
_panel_pair(m, a, b, hi + 0.1, FIELD_TOP)
m.box(a, b, HZ - 0.06, HZ + 0.02, SKIRT_TOP + 0.06, lo, PAINT_DARK)
- m.box(a, b, HZ - 0.9, HZ - 0.85, lo, hi, "M_Ops_Light_Hatch")
- m.box(a, b, HZ - 0.85, HZ + 0.02, lo - 0.04, lo, "M_Trim_BrushedSteel")
- m.box(a, b, HZ - 0.85, HZ + 0.06, hi, hi + 0.1, STEEL)
- m.box(a - 0.04, a + 0.04, HZ - 0.85, HZ + 0.06, lo, hi, STEEL)
- m.box(b - 0.04, b + 0.04, HZ - 0.85, HZ + 0.06, lo, hi, STEEL)
- # Galley shelving glimpsed through the hatch.
- for k in range(3):
- hh = lo + 0.3 + k * 0.3
- m.box(a + 0.05, b - 0.05, HZ - 0.82, HZ - 0.6, hh, hh + 0.02, "M_Trim_BrushedSteel")
+ m.box(a, b, back - 0.05, back, lo - 0.04, hi + 0.02, PAINT_DARK)
+ m.box(a + 0.04, b - 0.04, back, back + 0.01, lo, hi, "M_Ops_Light_Hatch")
+ m.box(a, b, back, HZ + 0.02, lo - 0.04, lo, PAINT_MID)
+ m.box(a, b, back, HZ + 0.06, hi, hi + 0.1, STEEL)
+ m.box(a - 0.04, a + 0.04, back, HZ + 0.06, lo, hi, STEEL)
+ m.box(b - 0.04, b + 0.04, back, HZ + 0.06, lo, hi, STEEL)
+ # Galley shelving with stacked trays and canisters, dark against the glow.
+ for k, hh in enumerate((1.3, 1.56)):
+ m.box(a + 0.05, b - 0.05, back + 0.01, back + 0.2, hh, hh + 0.02, "M_Trim_BrushedSteel")
+ n = 4 + k
+ for i in range(n):
+ x = a + 0.25 + i * (b - a - 0.5) / (n - 1)
+ if (i + k) % 3 == 2:
+ m.box(x - 0.14, x + 0.14, back + 0.03, back + 0.18, hh + 0.02, hh + 0.09, STEEL)
+ else:
+ m.cyl(x, back + 0.11, 0.07, hh + 0.02, hh + 0.2, "M_Trim_BrushedSteel", 16)
+ for x in (a + 0.3, b - 0.3):
+ m.box(x - 0.015, x + 0.015, back + 0.01, back + 0.2, lo, hi, STEEL)
def _valance(m: Mesh, lights: Mesh, x0: float, x1: float) -> None:
diff --git a/art/verse/decks/ops/mats.py b/art/verse/decks/ops/mats.py
index b1ee32e583..4158be55ca 100644
--- a/art/verse/decks/ops/mats.py
+++ b/art/verse/decks/ops/mats.py
@@ -14,6 +14,7 @@ from lib.materials import (
_lamp,
_painted_metal,
_plate_fields,
+ _scratches,
_set_emission_sampling,
material,
)
@@ -39,8 +40,23 @@ def _light_reading(g: _Graph) -> None:
@material("M_Ops_Light_Hatch", viewport=(1.0, 0.85, 0.65))
def _light_hatch(g: _Graph) -> None:
- """Back-lit galley hatch behind the serving line, 3 400 K."""
- _emitter(g, 5.0, kelvin=3400.0, falloff=0.25)
+ """Back-lit galley wall behind the serving line, 3 400 K: dim enough to
+ stay a warm gradient behind the shelving, never a clipped slab."""
+ _emitter(g, 2.4, kelvin=3400.0, falloff=0.08)
+
+
+@material("M_Ops_Light_Ring", viewport=(0.95, 0.97, 1.0))
+def _light_ring(g: _Graph) -> None:
+ """Ready-room ring diffuser, 6 000 K, dimmer than duty panels so its
+ mirror in the deck stays a soft grey ring, not a white one."""
+ _emitter(g, 6.5, kelvin=6000.0)
+
+
+@material("M_Fabric_Linen", viewport=(0.4, 0.41, 0.43))
+def _linen_cool(g: _Graph) -> None:
+ """Deck override of the kit's pillow/sheet role: cool pale grey cotton
+ (the kit's stand-in reads beige under the reading lamps)."""
+ _wool(g, (0.34, 0.36, 0.39), sheen=0.3)
@material("M_Ops_Light_Med", viewport=(0.95, 0.97, 1.0))
@@ -219,8 +235,8 @@ def _wall_white(g: _Graph) -> None:
@material("M_Ops_Light_Maint", viewport=(0.9, 0.85, 0.75))
def _light_maint(g: _Graph) -> None:
- """Caged maintenance lamp in hull structure, 4 000 K."""
- _emitter(g, 8.0, kelvin=4000.0, sampling="AUTO")
+ """Caged maintenance lamp in hull structure, 5 000 K (reads white, not amber)."""
+ _emitter(g, 9.0, kelvin=5000.0, sampling="AUTO")
@material("M_Ops_Light_Pip", viewport=(1.0, 1.0, 1.0))
@@ -270,26 +286,142 @@ def _light_night(g: _Graph) -> None:
@material("M_Ops_Light_MessCool", viewport=(0.95, 0.95, 1.0))
def _light_mess_cool(g: _Graph) -> None:
- """Mess-hall duty strip over the table runs, 5 200 K (the warmth comes from
- the sconces and the galley hatch)."""
- _emitter(g, 7.0, kelvin=5200.0)
+ """Mess-hall ceiling panel over each table, 6 000 K: small and bright, so
+ its mirror in the black deck is a crisp dash below clipping while the
+ room's light comes from the pools (the warmth comes from the sconces and
+ the galley hatch)."""
+ _emitter(g, 13.0, kelvin=6000.0)
@material("M_Ops_Starfield", viewport=(0.0, 0.0, 0.01))
def _starfield_slit(g: _Graph) -> None:
- """Star field behind the mess viewport slit: denser and a little brighter
- than the bridge's, because the slit is only 1.9 m tall in the plate."""
+ """Star field behind the mess viewport slit. The slit is only ~1 m tall in
+ the plate, so three layers: fine dust, a field of small stars, and a sparse
+ set of bright ones (3-4 px at 96 px/m) that still read as points when the
+ plate is seen whole, over a very faint cool drift so the band reads as
+ deep space rather than a black slab."""
co = g.coord(per_instance=False)
- vor = g.new("ShaderNodeTexVoronoi", inputs={"Scale": 5.0, "Randomness": 1.0})
+ vor = g.new("ShaderNodeTexVoronoi", inputs={"Scale": 6.0, "Randomness": 1.0})
g.set(vor.inputs["Vector"], co)
- star = g.remap(vor.outputs["Distance"], 0.075, 0.0, smooth=True)
- mag = g.math("POWER", g.white(vor.outputs["Position"]), 4.0)
- vor2 = g.new("ShaderNodeTexVoronoi", inputs={"Scale": 17.0, "Randomness": 1.0})
+ star = g.remap(vor.outputs["Distance"], 0.085, 0.0, smooth=True)
+ mag = g.math("POWER", g.white(vor.outputs["Position"]), 3.0)
+ vor2 = g.new("ShaderNodeTexVoronoi", inputs={"Scale": 19.0, "Randomness": 1.0})
g.set(vor2.inputs["Vector"], co)
- dust = g.mul(g.remap(vor2.outputs["Distance"], 0.06, 0.0, smooth=True), 0.35)
- strength = g.add(g.mul(star, g.add(0.6, g.mul(mag, 6.0))), dust, 0.004)
+ dust = g.mul(g.remap(vor2.outputs["Distance"], 0.07, 0.0, smooth=True), 0.5)
+ vor3 = g.new("ShaderNodeTexVoronoi", inputs={"Scale": 1.7, "Randomness": 1.0})
+ g.set(vor3.inputs["Vector"], co)
+ pick = g.remap(g.white(vor3.outputs["Position"]), 0.45, 0.5)
+ core = g.remap(vor3.outputs["Distance"], 0.06, 0.0, smooth=True)
+ halo = g.math("POWER", g.remap(vor3.outputs["Distance"], 0.16, 0.0), 3.0)
+ bright = g.mul(pick, g.add(g.mul(core, 22.0), g.mul(halo, 0.9)))
+ drift = g.mul(g.remap(g.noise(co, 0.55, detail=4, rough=0.55), 0.5, 0.82, smooth=True), 0.012)
+ strength = g.add(g.mul(star, g.add(1.0, g.mul(mag, 9.0))), dust, bright, drift, 0.003)
em = g.new("ShaderNodeEmission")
g.set(em.inputs["Color"], (0.84, 0.9, 1.0))
g.set(em.inputs["Strength"], strength)
g.output(em.outputs[0])
_set_emission_sampling(g.mat, "NONE")
+
+
+@material("M_Ops_Floor_Satin", viewport=(0.04, 0.04, 0.045))
+def _floor_satin(g: _Graph) -> None:
+ """Working-deck graphite plate under a thin clear coat (mess, quarters).
+ The ceiling rows mirror as soft-edged bars cut by the plate seams, about a
+ third of their brightness; wear is fine boot scuffing and wipe streaks,
+ never broad cloudy patches (those read as haze from above)."""
+ pos, seam, bevel_band, bolt, rnd = _plate_fields(g)
+ smudge = g.remap(g.noise(pos, 1.4, detail=5, rough=0.6), 0.45, 0.8, smooth=True)
+ wipe_co = g.vmath("MULTIPLY", pos, (1.0, 6.0, 1.0))
+ wipe = g.remap(g.noise(wipe_co, 2.0, detail=4, rough=0.5), 0.52, 0.76)
+ scuff = _scratches(g, pos, contrast=(0.5, 0.8))
+ base = g.mix_color(g.add(0.84, g.mul(rnd, 0.32)), (0, 0, 0), (0.052, 0.054, 0.058))
+ base = g.mix_color(g.mul(scuff, 0.45), base, (0.09, 0.09, 0.092))
+ base = g.mix_color(seam, base, (0.004, 0.004, 0.004))
+ rough = g.add(0.28, g.mul(smudge, 0.1), g.mul(scuff, 0.12), g.mul(seam, 0.4))
+ normal = g.bump(g.add(g.mul(bevel_band, -1.0), g.mul(bolt, 0.35)), 0.35, 0.003)
+ coat = g.mul(g.lerp(seam, 1.0, 0.0), g.lerp(smudge, 0.55, 0.36))
+ coat_rough = g.add(
+ 0.05, g.mul(rnd, 0.02), g.mul(smudge, 0.05), g.mul(wipe, 0.05), g.mul(scuff, 0.06)
+ )
+ bsdf = g.principled(
+ Base_Color=base,
+ Roughness=rough,
+ Metallic=g.mul(bolt, 1.0),
+ Normal=normal,
+ Coat_Weight=coat,
+ Coat_Roughness=coat_rough,
+ )
+ g.output(bsdf.outputs[0])
+
+
+def _wool(g: _Graph, colour, sheen: float = 0.35) -> None:
+ """Matte issued wool: soft weave bump, broad fold shading."""
+ co = g.coord()
+ weave = g.noise(co, 420.0, detail=1)
+ folds = g.noise(co, 3.0, detail=3, rough=0.5)
+ base = g.mix_color(g.add(0.82, g.mul(folds, 0.3)), (0, 0, 0), colour)
+ bsdf = g.principled(
+ Base_Color=base,
+ Roughness=0.9,
+ Sheen_Weight=sheen,
+ Sheen_Roughness=0.4,
+ Normal=g.bump(g.add(g.mul(weave, 0.2), g.mul(folds, 0.6)), 0.25, 0.004),
+ )
+ g.output(bsdf.outputs[0])
+
+
+# Deck-level overrides of two kit fabric roles. The command kit resolves its
+# materials through lib.materials first, so registering the role names here
+# recolours them on this deck only (the only deck that uses either piece).
+
+
+@material("M_Fabric_BlanketSlate", viewport=(0.07, 0.078, 0.09))
+def _blanket_slate(g: _Graph) -> None:
+ """Bunk blankets: cool slate wool, light enough to read as cloth over the
+ dark bunk frames (the kit's stand-in is near black)."""
+ _wool(g, (0.1, 0.112, 0.132))
+
+
+@material("M_Fabric_UniformOlive", viewport=(0.1, 0.11, 0.12))
+def _issue_tunic_slate(g: _Graph) -> None:
+ """Folded issue tunics on the quartermaster's counter: cool slate grey,
+ never olive."""
+ _wool(g, (0.16, 0.172, 0.192), sheen=0.3)
+
+
+@material("M_Ops_Glass_Slit", viewport=(0.6, 0.65, 0.7))
+def _glass_slit(g: _Graph) -> None:
+ """Mess viewport slit: anti-reflection coated glazing. At the camera's
+ 60 degree incidence plain glass mirrors the lit mess floor as a grey veil
+ over the stars; the coating keeps the reflection to a faint sheen."""
+ fres = g.new("ShaderNodeFresnel", inputs={"IOR": 1.1}).outputs[0]
+ co = g.coord()
+ smear = g.remap(g.noise(co, 1.2, detail=4), 0.5, 0.8, smooth=True)
+ glossy = g.new("ShaderNodeBsdfGlossy", inputs={"Color": (1, 1, 1)})
+ g.set(glossy.inputs["Roughness"], g.add(0.01, g.mul(smear, 0.03)))
+ clear = g.new("ShaderNodeBsdfTransparent", inputs={"Color": (0.9, 0.93, 0.96)})
+ mix = g.new("ShaderNodeMixShader")
+ g.set(mix.inputs[0], g.add(fres, g.mul(smear, 0.006)))
+ g.set(mix.inputs[1], clear.outputs[0])
+ g.set(mix.inputs[2], glossy.outputs[0])
+ g.output(mix.outputs[0])
+
+
+@material("M_Ops_Floor_WashTile", viewport=(0.2, 0.205, 0.21))
+def _floor_wash_tile(g: _Graph) -> None:
+ """Washroom tile, 0.3 m, mid grey satin with dark grout: a zone change
+ from the deck plate, never a bright slab."""
+ pos, seam, bevel_band, _bolt, rnd = _plate_fields(g, 0.3, 0.3)
+ smudge = g.remap(g.noise(pos, 1.5, detail=5, rough=0.6), 0.45, 0.8, smooth=True)
+ base = g.mix_color(g.add(0.9, g.mul(rnd, 0.12)), (0, 0, 0), (0.15, 0.155, 0.162))
+ base = g.mix_color(g.mul(smudge, 0.25), base, (0.1, 0.1, 0.104))
+ grout = g.remap(bevel_band, 0.0, 0.6)
+ base = g.mix_color(grout, base, (0.03, 0.03, 0.032))
+ bsdf = g.principled(
+ Base_Color=base,
+ Roughness=g.add(0.22, g.mul(smudge, 0.12), g.mul(grout, 0.5)),
+ Normal=g.bump(g.mul(bevel_band, -1.0), 0.3, 0.002),
+ Coat_Weight=g.lerp(grout, 0.35, 0.0),
+ Coat_Roughness=0.08,
+ )
+ g.output(bsdf.outputs[0])
diff --git a/art/verse/decks/ops/props.py b/art/verse/decks/ops/props.py
index 01b9696928..2e445a4781 100644
--- a/art/verse/decks/ops/props.py
+++ b/art/verse/decks/ops/props.py
@@ -80,6 +80,27 @@ def table_clutter(m: Mesh, cx: float, cz: float, seed: int, length: float = 3.6)
)
+def mess_place_settings(m: Mesh, cx: float, cz: float, seed: int, top: float = 0.75) -> None:
+ """Trays, plates and cups left at some places of a kit mess table (six
+ places at x -0.68 / 0 / 0.68 on both long sides; the caddy sits in the
+ middle). Deterministic per table."""
+ rnd = _rng(seed)
+ for side in (-1, 1):
+ for dx in (-0.68, 0.0, 0.68):
+ r = rnd()
+ if r > 0.45:
+ continue
+ x, z = cx + dx + 0.05 * (rnd() - 0.5), cz + side * 0.2
+ m.box(x - 0.2, x + 0.2, z - 0.14, z + 0.14, top, top + 0.012, BRUSHED)
+ m.box(x - 0.19, x + 0.19, z - 0.13, z + 0.13, top + 0.012, top + 0.016, MID)
+ m.cyl(x - 0.06, z, 0.095, top + 0.016, top + 0.03, LIGHT, 20)
+ if r < 0.3:
+ m.cyl(x + 0.12, z - side * 0.06, 0.034, top + 0.016, top + 0.11, BRUSHED, 12)
+ if r < 0.12:
+ za, zb = sorted((z + side * 0.02, z + side * 0.09))
+ m.box(x + 0.07, x + 0.17, za, zb, top + 0.016, top + 0.05, DARK)
+
+
def serving_counter(m: Mesh, lights: Mesh, x0: float, x1: float, z0: float) -> None:
"""Serving line along the far wall: steel counter, heated wells under a
sneeze guard, tray slide on the room side."""
@@ -825,6 +846,72 @@ def arena(walk: Mesh, m: Mesh, lights: Mesh, cx: float, cz: float, w: float, d:
SEGMENTS = {"0": "abcdef", "2": "abged"}
+DIGITS = {
+ "0": "abcdef",
+ "1": "bc",
+ "2": "abged",
+ "3": "abgcd",
+ "4": "fgbc",
+ "5": "afgcd",
+ "6": "afgedc",
+ "7": "abc",
+ "8": "abcdefg",
+ "9": "abfgcd",
+ "-": "g",
+}
+
+
+def _seg_boxes(text: str, char_h: float):
+ """Stencil segments of ``text`` as (u0, u1, v0, v1) in a box whose origin
+ is the top-left corner; u to the right, v down. Stencil gaps break every
+ segment at its ends, as on a painted stencil."""
+ w, t, gap = char_h * 0.5, char_h * 0.13, char_h * 0.06
+ out, u = [], 0.0
+ for ch in text:
+ if ch == " ":
+ u += w * 0.8
+ continue
+ hv = char_h / 2
+ segs = {
+ "a": (u + gap, u + w - gap, 0.0, t),
+ "b": (u + w - t, u + w, gap, hv - gap / 2),
+ "c": (u + w - t, u + w, hv + gap / 2, char_h - gap),
+ "d": (u + gap, u + w - gap, char_h - t, char_h),
+ "e": (u, u + t, hv + gap / 2, char_h - gap),
+ "f": (u, u + t, gap, hv - gap / 2),
+ "g": (u + gap, u + w - gap, hv - t / 2, hv + t / 2),
+ }
+ for s in DIGITS[ch]:
+ out.append(segs[s])
+ u += w + char_h * 0.28
+ return out, u - char_h * 0.28
+
+
+def floor_code(m: Mesh, text: str, cx: float, cz: float, char_h: float = 0.36) -> None:
+ """A worn room code stencilled flush on the deck, reading from the camera."""
+ boxes, width = _seg_boxes(text, char_h)
+ x0, z0 = cx - width / 2, cz - char_h / 2
+ for u0, u1, v0, v1 in boxes:
+ m.box(x0 + u0, x0 + u1, z0 + v0, z0 + v1, 0.0005, 0.0025, "M_Deck_Marking_White")
+
+
+def wall_plate(m: Mesh, text: str, x0: float, z: float, h_top: float, char_h: float = 0.09):
+ """Small dark ident plate on a camera-facing wall with white stencil digits."""
+ boxes, width = _seg_boxes(text, char_h)
+ pad = char_h * 0.45
+ x1 = x0 + width + 2 * pad
+ m.box(x0, x1, z, z + 0.012, h_top - char_h - 2 * pad, h_top, DARK)
+ m.box(x0 - 0.01, x1 + 0.01, z - 0.002, z + 0.008, h_top, h_top + 0.012, BRUSHED)
+ for u0, u1, v0, v1 in boxes:
+ m.box(
+ x0 + pad + u0,
+ x0 + pad + u1,
+ z + 0.012,
+ z + 0.015,
+ h_top - pad - v1,
+ h_top - pad - v0,
+ "M_Deck_Marking_White",
+ )
def deck_mark(m: Mesh, cx: float, cz: float) -> None:
diff --git a/dodaios/ui/web/dist/verse/characters/SK_Officer_F.glb b/dodaios/ui/web/dist/verse/characters/SK_Officer_F.glb
index 52ac890219..a3c85ea6c5 100644
Binary files a/dodaios/ui/web/dist/verse/characters/SK_Officer_F.glb and b/dodaios/ui/web/dist/verse/characters/SK_Officer_F.glb differ
diff --git a/dodaios/ui/web/dist/verse/characters/SK_Officer_M.glb b/dodaios/ui/web/dist/verse/characters/SK_Officer_M.glb
index 000b67125d..4892bfcb75 100644
Binary files a/dodaios/ui/web/dist/verse/characters/SK_Officer_M.glb and b/dodaios/ui/web/dist/verse/characters/SK_Officer_M.glb differ
diff --git a/dodaios/ui/web/dist/verse/characters/SK_Trooper.glb b/dodaios/ui/web/dist/verse/characters/SK_Trooper.glb
index f374cf0ff4..5c72e5b7b8 100644
Binary files a/dodaios/ui/web/dist/verse/characters/SK_Trooper.glb and b/dodaios/ui/web/dist/verse/characters/SK_Trooper.glb differ
diff --git a/dodaios/ui/web/dist/verse/characters/characters.json b/dodaios/ui/web/dist/verse/characters/characters.json
index fbefbd6677..b068ede1bb 100644
--- a/dodaios/ui/web/dist/verse/characters/characters.json
+++ b/dodaios/ui/web/dist/verse/characters/characters.json
@@ -137,7 +137,7 @@
"deck": {
"M_Uniform": "#3b3f47",
"M_Trousers": "#3b3f47",
- "M_Trim": "#2f3238",
+ "M_Trim": "#5a5f68",
"M_Cap": "#3b3f47",
"tile": "#a9adb2",
"cap": false
@@ -271,20 +271,20 @@
"M_RankTile_6"
],
"height": 1.68,
- "triangles": 12222,
- "bytes": 565800,
+ "triangles": 12300,
+ "bytes": 569036,
"defaults": {},
"rankPlate": {
"bone": "Chest",
"position": [
- 0.0873,
- 1.281,
- 0.0946
+ 0.088,
+ 1.2811,
+ 0.0949
],
"normal": [
- 0.1163,
- 0.1992,
- 0.973
+ 0.2937,
+ 0.2269,
+ 0.9286
]
}
},
@@ -318,20 +318,20 @@
"M_RankTile_6"
],
"height": 1.78,
- "triangles": 12054,
- "bytes": 561840,
+ "triangles": 12132,
+ "bytes": 565380,
"defaults": {},
"rankPlate": {
"bone": "Chest",
"position": [
- 0.0923,
+ 0.0922,
1.3569,
- 0.1167
+ 0.1173
],
"normal": [
- 0.077,
- 0.1367,
- 0.9876
+ 0.0593,
+ 0.1274,
+ 0.9901
]
}
},
@@ -383,8 +383,8 @@
"M_Visor"
],
"height": 1.78,
- "triangles": 13471,
- "bytes": 572972,
+ "triangles": 13894,
+ "bytes": 659452,
"defaults": {}
}
]
diff --git a/dodaios/ui/web/dist/verse/decks/ops/env.hdr b/dodaios/ui/web/dist/verse/decks/ops/env.hdr
index fdc8320935..fa7e38ebb5 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/env.hdr and b/dodaios/ui/web/dist/verse/decks/ops/env.hdr differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/manifest.json b/dodaios/ui/web/dist/verse/decks/ops/manifest.json
index b353d96105..e351d44c20 100644
--- a/dodaios/ui/web/dist/verse/decks/ops/manifest.json
+++ b/dodaios/ui/web/dist/verse/decks/ops/manifest.json
@@ -49,7 +49,7 @@
},
"occluders": {
"url": "occluders.glb",
- "triangles": 5144
+ "triangles": 5276
},
"nav": {
"url": "nav.png",
@@ -62,7 +62,7 @@
"height_step": 0.025,
"max_step": 0.3,
"clearance": 0.25,
- "walkable_cells": 84413
+ "walkable_cells": 84061
},
"env": {
"url": "env.hdr",
@@ -84,49 +84,49 @@
],
"sh": [
[
- 2.64425,
- 2.38764,
- 2.33874
+ 2.64759,
+ 2.39065,
+ 2.34173
],
[
- 1.68863,
- 1.51792,
- 1.47885
+ 1.68963,
+ 1.51878,
+ 1.4797
],
[
- -0.17668,
- -0.1602,
- -0.15713
+ -0.1829,
+ -0.16587,
+ -0.16269
],
[
- 0.37795,
- 0.34143,
- 0.33488
+ 0.3774,
+ 0.34103,
+ 0.33454
],
[
- 0.13775,
- 0.12365,
- 0.1202
+ 0.13971,
+ 0.12546,
+ 0.12199
],
[
- -0.09761,
- -0.08717,
- -0.08444
+ -0.10278,
+ -0.09186,
+ -0.08901
],
[
- 0.28024,
- 0.25733,
- 0.25642
+ 0.27619,
+ 0.25356,
+ 0.25272
],
[
- 0.20911,
- 0.18993,
- 0.18649
+ 0.20366,
+ 0.1849,
+ 0.18149
],
[
- 0.04475,
- 0.0443,
- 0.04705
+ 0.0499,
+ 0.04912,
+ 0.05185
]
]
},
@@ -139,49 +139,49 @@
],
"sh": [
[
- 1.24462,
- 1.13244,
- 1.12139
+ 1.24537,
+ 1.13313,
+ 1.12211
],
[
- 0.56135,
- 0.51038,
- 0.50979
+ 0.56264,
+ 0.51156,
+ 0.51099
],
[
- -0.76811,
- -0.68779,
- -0.66234
+ -0.76598,
+ -0.68578,
+ -0.6603
],
[
- 0.00515,
- 0.0046,
- 0.00453
+ 0.00246,
+ 0.00221,
+ 0.00214
],
[
- 0.00997,
- 0.00904,
- 0.00901
+ 0.00839,
+ 0.0076,
+ 0.00756
],
[
- 0.29335,
- 0.27423,
- 0.28213
+ 0.29763,
+ 0.27819,
+ 0.28605
],
[
- 0.90863,
- 0.81816,
- 0.79737
+ 0.91103,
+ 0.82038,
+ 0.79968
],
[
- 0.00031,
- 0.00038,
- 0.00037
+ 0.00237,
+ 0.0022,
+ 0.00222
],
[
- -0.10678,
- -0.10191,
- -0.10717
+ -0.11033,
+ -0.10525,
+ -0.11059
]
]
},
@@ -194,49 +194,49 @@
],
"sh": [
[
- 0.33788,
- 0.30356,
- 0.29317
+ 0.33557,
+ 0.30141,
+ 0.29095
],
[
- 0.20484,
- 0.17884,
- 0.16635
+ 0.20754,
+ 0.18122,
+ 0.16865
],
[
- -0.31192,
- -0.28615,
- -0.28413
+ -0.31067,
+ -0.28496,
+ -0.2829
],
[
- 0.00797,
- 0.00784,
- 0.00763
+ 0.00793,
+ 0.0078,
+ 0.00755
],
[
- 0.00663,
- 0.0061,
- 0.00613
+ 0.0057,
+ 0.00514,
+ 0.00504
],
[
- -0.24613,
- -0.22493,
- -0.22328
+ -0.24851,
+ -0.22703,
+ -0.22533
],
[
- 0.15631,
- 0.15048,
- 0.1584
+ 0.1573,
+ 0.15137,
+ 0.15927
],
[
- -0.01364,
- -0.01353,
- -0.0132
+ -0.01324,
+ -0.01316,
+ -0.01282
],
[
- -0.01841,
- -0.01142,
- -0.0049
+ -0.02063,
+ -0.01343,
+ -0.00691
]
]
},
@@ -249,49 +249,49 @@
],
"sh": [
[
- 0.45987,
- 0.38473,
- 0.33588
+ 0.51484,
+ 0.44355,
+ 0.41558
],
[
- 0.22331,
- 0.18249,
- 0.15188
+ 0.25236,
+ 0.2261,
+ 0.21957
],
[
- -0.16678,
- -0.14781,
- -0.14228
+ -0.27561,
+ -0.21728,
+ -0.18479
],
[
- -0.00474,
- -0.00479,
- -0.00534
+ -0.02581,
+ -0.01448,
+ -0.00646
],
[
- 0.00163,
- 0.00108,
- 0.00055
+ 0.00641,
+ 0.00601,
+ 0.00605
],
[
- -0.02806,
- -0.02485,
- -0.02362
+ -0.04287,
+ -0.03794,
+ -0.03643
],
[
- 0.05173,
- 0.05355,
- 0.063
+ 0.17442,
+ 0.12303,
+ 0.09011
],
[
- 0.01264,
- 0.01166,
- 0.01175
+ 0.065,
+ 0.04141,
+ 0.02541
],
[
- 0.16684,
- 0.13795,
- 0.11738
+ 0.17995,
+ 0.15822,
+ 0.15111
]
]
},
@@ -304,49 +304,49 @@
],
"sh": [
[
- 0.25822,
- 0.23848,
- 0.23855
+ 0.25864,
+ 0.23887,
+ 0.23903
],
[
- 0.12332,
- 0.11271,
- 0.11349
+ 0.12244,
+ 0.11192,
+ 0.1127
],
[
- -0.0606,
- -0.05633,
- -0.05448
+ -0.06082,
+ -0.05656,
+ -0.05467
],
[
- 0.00168,
- 0.00148,
- 0.0014
+ 0.0022,
+ 0.00191,
+ 0.0019
],
[
- 0.00372,
- 0.0034,
- 0.00334
+ 0.00433,
+ 0.00394,
+ 0.00392
],
[
- 0.06548,
- 0.06052,
- 0.06075
+ 0.06655,
+ 0.06146,
+ 0.06167
],
[
- 0.17318,
- 0.16154,
- 0.15959
+ 0.17276,
+ 0.16118,
+ 0.15931
],
[
- 0.00156,
- 0.00163,
- 0.00162
+ 0.00055,
+ 0.0007,
+ 0.00067
],
[
- 0.04729,
- 0.04328,
- 0.04372
+ 0.04765,
+ 0.04362,
+ 0.04408
]
]
},
@@ -359,49 +359,49 @@
],
"sh": [
[
- 0.29811,
- 0.26049,
- 0.24161
+ 0.13478,
+ 0.11995,
+ 0.11421
],
[
- 0.24111,
- 0.20787,
- 0.18898
+ 0.05193,
+ 0.04522,
+ 0.04175
],
[
- -0.16122,
- -0.14386,
- -0.13806
+ -0.09879,
+ -0.08968,
+ -0.08848
],
[
- 0.02932,
- 0.02576,
- 0.02415
+ 0.00063,
+ 0.00045,
+ 0.00053
],
[
- 0.01254,
- 0.01096,
- 0.01016
+ 0.00067,
+ 0.00073,
+ 0.00099
],
[
- -0.18966,
- -0.16594,
- -0.15427
+ -0.06283,
+ -0.05666,
+ -0.05486
],
[
- 0.02319,
- 0.0261,
- 0.03141
+ 0.13312,
+ 0.12057,
+ 0.11706
],
[
- -0.01539,
- -0.01403,
- -0.01389
+ 0.00199,
+ 0.00161,
+ 0.00111
],
[
- -0.06884,
- -0.05819,
- -0.05158
+ 0.00781,
+ 0.00712,
+ 0.00713
]
]
},
@@ -414,49 +414,49 @@
],
"sh": [
[
- 0.46285,
- 0.42505,
- 0.42479
+ 0.46267,
+ 0.42468,
+ 0.42448
],
[
- 0.11427,
- 0.10328,
- 0.10319
+ 0.11356,
+ 0.10259,
+ 0.10248
],
[
- -0.21612,
- -0.19554,
- -0.19101
+ -0.21409,
+ -0.1932,
+ -0.18869
],
[
- -0.00244,
- -0.00251,
- -0.0026
+ -0.00074,
+ -0.00099,
+ -0.00102
],
[
+ -0.00019,
3e-05,
- 0.00019,
- 0.00022
+ 6e-05
],
[
- -0.02894,
- -0.02609,
- -0.02538
+ -0.03036,
+ -0.02739,
+ -0.02669
],
[
- 0.2354,
- 0.21224,
- 0.20569
+ 0.23646,
+ 0.21267,
+ 0.20616
],
[
- -0.00388,
- -0.00379,
- -0.00395
+ -0.00263,
+ -0.00252,
+ -0.00266
],
[
- 0.23143,
- 0.21323,
- 0.21484
+ 0.23158,
+ 0.21337,
+ 0.21498
]
]
},
@@ -469,48 +469,48 @@
],
"sh": [
[
- 0.16881,
- 0.15883,
- 0.15718
+ 0.17149,
+ 0.16115,
+ 0.1596
],
[
- 0.01887,
- 0.0132,
- 0.01367
+ 0.0178,
+ 0.01233,
+ 0.01276
],
[
- -0.13112,
- -0.13022,
- -0.13073
+ -0.13048,
+ -0.12977,
+ -0.13052
],
[
- -0.00614,
- -0.00518,
- -0.00599
+ -0.00621,
+ -0.00529,
+ -0.006
],
[
- 0.0107,
- 0.00825,
- 0.00861
+ 0.01031,
+ 0.00788,
+ 0.00816
],
[
- -0.04246,
- -0.03442,
- -0.03462
+ -0.04346,
+ -0.03539,
+ -0.03539
],
[
- 0.13574,
- 0.12435,
- 0.12097
+ 0.13713,
+ 0.12566,
+ 0.12246
],
[
- 0.01866,
- 0.01883,
- 0.02001
+ 0.01881,
+ 0.01894,
+ 0.02009
],
[
- -0.00206,
- -0.00249,
+ -0.00201,
+ -0.00247,
0.0002
]
]
@@ -524,49 +524,49 @@
],
"sh": [
[
- 0.10553,
- 0.09413,
- 0.0898
+ 0.10859,
+ 0.09686,
+ 0.09239
],
[
- 0.03079,
- 0.02687,
- 0.02522
+ 0.03042,
+ 0.0266,
+ 0.02506
],
[
- -0.0857,
- -0.0787,
- -0.07852
+ -0.08889,
+ -0.08156,
+ -0.08128
],
[
- 0.06677,
- 0.05809,
- 0.0536
+ 0.06759,
+ 0.05871,
+ 0.05403
],
[
- 0.04277,
- 0.03685,
- 0.0338
+ 0.0422,
+ 0.03641,
+ 0.03349
],
[
- -0.04802,
- -0.04356,
- -0.04284
+ -0.04742,
+ -0.04303,
+ -0.04237
],
[
- 0.05207,
- 0.04924,
- 0.05095
+ 0.05465,
+ 0.05169,
+ 0.05349
],
[
- -0.06138,
- -0.056,
- -0.05553
+ -0.0619,
+ -0.05637,
+ -0.05576
],
[
- 0.01636,
- 0.01409,
- 0.01287
+ 0.0157,
+ 0.01354,
+ 0.01239
]
]
},
@@ -579,49 +579,49 @@
],
"sh": [
[
- 0.04244,
- 0.04255,
- 0.04541
+ 0.20777,
+ 0.1916,
+ 0.19123
],
[
- 0.01099,
- 0.01021,
- 0.01025
+ 0.18066,
+ 0.16258,
+ 0.1585
],
[
- -0.06152,
- -0.06189,
- -0.06592
+ -0.23542,
+ -0.21838,
+ -0.21853
],
[
- 7e-05,
- 0.00016,
- 0.00029
+ 0.00028,
+ 0.00043,
+ 0.00057
],
[
- -0.00023,
- -0.00021,
- -0.00022
+ -0.00062,
+ -0.00053,
+ -0.00051
],
[
- -0.02243,
- -0.02057,
- -0.02019
+ -0.26586,
+ -0.23939,
+ -0.2335
],
[
- 0.06419,
- 0.06519,
- 0.06959
+ 0.10589,
+ 0.10253,
+ 0.10565
],
[
- 0.00017,
- -3e-05,
- -0.00018
+ -0.00031,
+ -0.00062,
+ -0.00084
],
[
- 0.00858,
- 0.00808,
- 0.00808
+ -0.12276,
+ -0.1099,
+ -0.10693
]
]
},
@@ -634,49 +634,49 @@
],
"sh": [
[
- 0.04429,
- 0.04425,
- 0.04718
+ 0.20619,
+ 0.18997,
+ 0.18947
],
[
- 0.01061,
- 0.00985,
- 0.00982
+ 0.17948,
+ 0.16151,
+ 0.15738
],
[
- -0.06433,
- -0.06451,
- -0.06867
+ -0.23419,
+ -0.21702,
+ -0.21704
],
[
- -0.0025,
- -0.00234,
- -0.00239
+ -0.00237,
+ -0.00213,
+ -0.00207
],
[
- -0.00133,
-0.00119,
- -0.00115
+ -0.00103,
+ -0.00094
],
[
- -0.02205,
- -0.02024,
- -0.01978
+ -0.26463,
+ -0.23834,
+ -0.23243
],
[
- 0.06796,
- 0.0687,
- 0.07327
+ 0.10723,
+ 0.10349,
+ 0.10648
],
[
- 0.00555,
- 0.00522,
- 0.0054
+ 0.00523,
+ 0.00481,
+ 0.00484
],
[
- 0.00809,
- 0.00759,
- 0.00756
+ -0.12298,
+ -0.11011,
+ -0.10713
]
]
}
@@ -8593,13 +8593,13 @@
"stats": {
"samples": 384,
"blender": "5.0.1",
- "plate_s": 578.2,
- "nav_s": 6.42,
- "occluders_s": 0.61,
- "lighting_s": 10.61,
- "blender_s": 599.6,
- "package_s": 26.66,
- "plate_bytes": 861503,
- "bytes": 1471102
+ "plate_s": 705.41,
+ "nav_s": 6.23,
+ "occluders_s": 0.14,
+ "lighting_s": 10.5,
+ "blender_s": 723.8,
+ "package_s": 27.08,
+ "plate_bytes": 1054124,
+ "bytes": 1665397
}
}
diff --git a/dodaios/ui/web/dist/verse/decks/ops/nav.png b/dodaios/ui/web/dist/verse/decks/ops/nav.png
index 7ea3c042fb..b009d723ff 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/nav.png and b/dodaios/ui/web/dist/verse/decks/ops/nav.png differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/occluders.glb b/dodaios/ui/web/dist/verse/decks/ops/occluders.glb
index 7acb7aa19f..4ee39ffd32 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/occluders.glb and b/dodaios/ui/web/dist/verse/decks/ops/occluders.glb differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_0.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_0.avif
index 026cbe8f61..ed2d0756cd 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_0.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_0.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_1.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_1.avif
index a2c253c4ae..38aa81675b 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_1.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_1.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_2.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_2.avif
index 26a91b0e95..a5a913aef3 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_2.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_0_2.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_0.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_0.avif
index 5ee160d09d..615a9e8b70 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_0.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_0.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_1.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_1.avif
index af3b2f115e..4e0186e2e4 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_1.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_1.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_2.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_2.avif
index 7aa61256f4..3b3793d61f 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_2.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_1_2.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_0.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_0.avif
index 76a6056aad..91f23fd19a 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_0.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_0.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_1.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_1.avif
index e8beebbc27..0557e61b98 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_1.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_1.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_2.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_2.avif
index 8011a45b04..f88fda6269 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_2.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_2_2.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_0.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_0.avif
index b0da302fa6..6667e906b0 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_0.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_0.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_1.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_1.avif
index 53ed347fa3..73c2b6bab5 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_1.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_1.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_2.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_2.avif
index 7183c1f40b..8f0f5aa3ea 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_2.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_3_2.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_0.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_0.avif
index c0c286bcc2..fa8e6963b9 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_0.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_0.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_1.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_1.avif
index 67750df438..d5d07736f0 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_1.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_1.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_2.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_2.avif
index 5ed399365b..834fa8d35c 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_2.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L0_4_2.avif differ
diff --git a/dodaios/ui/web/dist/verse/decks/ops/plate/L1.avif b/dodaios/ui/web/dist/verse/decks/ops/plate/L1.avif
index 814d071f11..8133bb710c 100644
Binary files a/dodaios/ui/web/dist/verse/decks/ops/plate/L1.avif and b/dodaios/ui/web/dist/verse/decks/ops/plate/L1.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_F.glb b/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_F.glb
index 52ac890219..a3c85ea6c5 100644
Binary files a/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_F.glb and b/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_F.glb differ
diff --git a/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_M.glb b/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_M.glb
index 000b67125d..4892bfcb75 100644
Binary files a/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_M.glb and b/dodaios/ui/web/frontend/public/verse/characters/SK_Officer_M.glb differ
diff --git a/dodaios/ui/web/frontend/public/verse/characters/SK_Trooper.glb b/dodaios/ui/web/frontend/public/verse/characters/SK_Trooper.glb
index f374cf0ff4..5c72e5b7b8 100644
Binary files a/dodaios/ui/web/frontend/public/verse/characters/SK_Trooper.glb and b/dodaios/ui/web/frontend/public/verse/characters/SK_Trooper.glb differ
diff --git a/dodaios/ui/web/frontend/public/verse/characters/characters.json b/dodaios/ui/web/frontend/public/verse/characters/characters.json
index fbefbd6677..b068ede1bb 100644
--- a/dodaios/ui/web/frontend/public/verse/characters/characters.json
+++ b/dodaios/ui/web/frontend/public/verse/characters/characters.json
@@ -137,7 +137,7 @@
"deck": {
"M_Uniform": "#3b3f47",
"M_Trousers": "#3b3f47",
- "M_Trim": "#2f3238",
+ "M_Trim": "#5a5f68",
"M_Cap": "#3b3f47",
"tile": "#a9adb2",
"cap": false
@@ -271,20 +271,20 @@
"M_RankTile_6"
],
"height": 1.68,
- "triangles": 12222,
- "bytes": 565800,
+ "triangles": 12300,
+ "bytes": 569036,
"defaults": {},
"rankPlate": {
"bone": "Chest",
"position": [
- 0.0873,
- 1.281,
- 0.0946
+ 0.088,
+ 1.2811,
+ 0.0949
],
"normal": [
- 0.1163,
- 0.1992,
- 0.973
+ 0.2937,
+ 0.2269,
+ 0.9286
]
}
},
@@ -318,20 +318,20 @@
"M_RankTile_6"
],
"height": 1.78,
- "triangles": 12054,
- "bytes": 561840,
+ "triangles": 12132,
+ "bytes": 565380,
"defaults": {},
"rankPlate": {
"bone": "Chest",
"position": [
- 0.0923,
+ 0.0922,
1.3569,
- 0.1167
+ 0.1173
],
"normal": [
- 0.077,
- 0.1367,
- 0.9876
+ 0.0593,
+ 0.1274,
+ 0.9901
]
}
},
@@ -383,8 +383,8 @@
"M_Visor"
],
"height": 1.78,
- "triangles": 13471,
- "bytes": 572972,
+ "triangles": 13894,
+ "bytes": 659452,
"defaults": {}
}
]
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/env.hdr b/dodaios/ui/web/frontend/public/verse/decks/ops/env.hdr
index fdc8320935..fa7e38ebb5 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/env.hdr and b/dodaios/ui/web/frontend/public/verse/decks/ops/env.hdr differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/manifest.json b/dodaios/ui/web/frontend/public/verse/decks/ops/manifest.json
index b353d96105..e351d44c20 100644
--- a/dodaios/ui/web/frontend/public/verse/decks/ops/manifest.json
+++ b/dodaios/ui/web/frontend/public/verse/decks/ops/manifest.json
@@ -49,7 +49,7 @@
},
"occluders": {
"url": "occluders.glb",
- "triangles": 5144
+ "triangles": 5276
},
"nav": {
"url": "nav.png",
@@ -62,7 +62,7 @@
"height_step": 0.025,
"max_step": 0.3,
"clearance": 0.25,
- "walkable_cells": 84413
+ "walkable_cells": 84061
},
"env": {
"url": "env.hdr",
@@ -84,49 +84,49 @@
],
"sh": [
[
- 2.64425,
- 2.38764,
- 2.33874
+ 2.64759,
+ 2.39065,
+ 2.34173
],
[
- 1.68863,
- 1.51792,
- 1.47885
+ 1.68963,
+ 1.51878,
+ 1.4797
],
[
- -0.17668,
- -0.1602,
- -0.15713
+ -0.1829,
+ -0.16587,
+ -0.16269
],
[
- 0.37795,
- 0.34143,
- 0.33488
+ 0.3774,
+ 0.34103,
+ 0.33454
],
[
- 0.13775,
- 0.12365,
- 0.1202
+ 0.13971,
+ 0.12546,
+ 0.12199
],
[
- -0.09761,
- -0.08717,
- -0.08444
+ -0.10278,
+ -0.09186,
+ -0.08901
],
[
- 0.28024,
- 0.25733,
- 0.25642
+ 0.27619,
+ 0.25356,
+ 0.25272
],
[
- 0.20911,
- 0.18993,
- 0.18649
+ 0.20366,
+ 0.1849,
+ 0.18149
],
[
- 0.04475,
- 0.0443,
- 0.04705
+ 0.0499,
+ 0.04912,
+ 0.05185
]
]
},
@@ -139,49 +139,49 @@
],
"sh": [
[
- 1.24462,
- 1.13244,
- 1.12139
+ 1.24537,
+ 1.13313,
+ 1.12211
],
[
- 0.56135,
- 0.51038,
- 0.50979
+ 0.56264,
+ 0.51156,
+ 0.51099
],
[
- -0.76811,
- -0.68779,
- -0.66234
+ -0.76598,
+ -0.68578,
+ -0.6603
],
[
- 0.00515,
- 0.0046,
- 0.00453
+ 0.00246,
+ 0.00221,
+ 0.00214
],
[
- 0.00997,
- 0.00904,
- 0.00901
+ 0.00839,
+ 0.0076,
+ 0.00756
],
[
- 0.29335,
- 0.27423,
- 0.28213
+ 0.29763,
+ 0.27819,
+ 0.28605
],
[
- 0.90863,
- 0.81816,
- 0.79737
+ 0.91103,
+ 0.82038,
+ 0.79968
],
[
- 0.00031,
- 0.00038,
- 0.00037
+ 0.00237,
+ 0.0022,
+ 0.00222
],
[
- -0.10678,
- -0.10191,
- -0.10717
+ -0.11033,
+ -0.10525,
+ -0.11059
]
]
},
@@ -194,49 +194,49 @@
],
"sh": [
[
- 0.33788,
- 0.30356,
- 0.29317
+ 0.33557,
+ 0.30141,
+ 0.29095
],
[
- 0.20484,
- 0.17884,
- 0.16635
+ 0.20754,
+ 0.18122,
+ 0.16865
],
[
- -0.31192,
- -0.28615,
- -0.28413
+ -0.31067,
+ -0.28496,
+ -0.2829
],
[
- 0.00797,
- 0.00784,
- 0.00763
+ 0.00793,
+ 0.0078,
+ 0.00755
],
[
- 0.00663,
- 0.0061,
- 0.00613
+ 0.0057,
+ 0.00514,
+ 0.00504
],
[
- -0.24613,
- -0.22493,
- -0.22328
+ -0.24851,
+ -0.22703,
+ -0.22533
],
[
- 0.15631,
- 0.15048,
- 0.1584
+ 0.1573,
+ 0.15137,
+ 0.15927
],
[
- -0.01364,
- -0.01353,
- -0.0132
+ -0.01324,
+ -0.01316,
+ -0.01282
],
[
- -0.01841,
- -0.01142,
- -0.0049
+ -0.02063,
+ -0.01343,
+ -0.00691
]
]
},
@@ -249,49 +249,49 @@
],
"sh": [
[
- 0.45987,
- 0.38473,
- 0.33588
+ 0.51484,
+ 0.44355,
+ 0.41558
],
[
- 0.22331,
- 0.18249,
- 0.15188
+ 0.25236,
+ 0.2261,
+ 0.21957
],
[
- -0.16678,
- -0.14781,
- -0.14228
+ -0.27561,
+ -0.21728,
+ -0.18479
],
[
- -0.00474,
- -0.00479,
- -0.00534
+ -0.02581,
+ -0.01448,
+ -0.00646
],
[
- 0.00163,
- 0.00108,
- 0.00055
+ 0.00641,
+ 0.00601,
+ 0.00605
],
[
- -0.02806,
- -0.02485,
- -0.02362
+ -0.04287,
+ -0.03794,
+ -0.03643
],
[
- 0.05173,
- 0.05355,
- 0.063
+ 0.17442,
+ 0.12303,
+ 0.09011
],
[
- 0.01264,
- 0.01166,
- 0.01175
+ 0.065,
+ 0.04141,
+ 0.02541
],
[
- 0.16684,
- 0.13795,
- 0.11738
+ 0.17995,
+ 0.15822,
+ 0.15111
]
]
},
@@ -304,49 +304,49 @@
],
"sh": [
[
- 0.25822,
- 0.23848,
- 0.23855
+ 0.25864,
+ 0.23887,
+ 0.23903
],
[
- 0.12332,
- 0.11271,
- 0.11349
+ 0.12244,
+ 0.11192,
+ 0.1127
],
[
- -0.0606,
- -0.05633,
- -0.05448
+ -0.06082,
+ -0.05656,
+ -0.05467
],
[
- 0.00168,
- 0.00148,
- 0.0014
+ 0.0022,
+ 0.00191,
+ 0.0019
],
[
- 0.00372,
- 0.0034,
- 0.00334
+ 0.00433,
+ 0.00394,
+ 0.00392
],
[
- 0.06548,
- 0.06052,
- 0.06075
+ 0.06655,
+ 0.06146,
+ 0.06167
],
[
- 0.17318,
- 0.16154,
- 0.15959
+ 0.17276,
+ 0.16118,
+ 0.15931
],
[
- 0.00156,
- 0.00163,
- 0.00162
+ 0.00055,
+ 0.0007,
+ 0.00067
],
[
- 0.04729,
- 0.04328,
- 0.04372
+ 0.04765,
+ 0.04362,
+ 0.04408
]
]
},
@@ -359,49 +359,49 @@
],
"sh": [
[
- 0.29811,
- 0.26049,
- 0.24161
+ 0.13478,
+ 0.11995,
+ 0.11421
],
[
- 0.24111,
- 0.20787,
- 0.18898
+ 0.05193,
+ 0.04522,
+ 0.04175
],
[
- -0.16122,
- -0.14386,
- -0.13806
+ -0.09879,
+ -0.08968,
+ -0.08848
],
[
- 0.02932,
- 0.02576,
- 0.02415
+ 0.00063,
+ 0.00045,
+ 0.00053
],
[
- 0.01254,
- 0.01096,
- 0.01016
+ 0.00067,
+ 0.00073,
+ 0.00099
],
[
- -0.18966,
- -0.16594,
- -0.15427
+ -0.06283,
+ -0.05666,
+ -0.05486
],
[
- 0.02319,
- 0.0261,
- 0.03141
+ 0.13312,
+ 0.12057,
+ 0.11706
],
[
- -0.01539,
- -0.01403,
- -0.01389
+ 0.00199,
+ 0.00161,
+ 0.00111
],
[
- -0.06884,
- -0.05819,
- -0.05158
+ 0.00781,
+ 0.00712,
+ 0.00713
]
]
},
@@ -414,49 +414,49 @@
],
"sh": [
[
- 0.46285,
- 0.42505,
- 0.42479
+ 0.46267,
+ 0.42468,
+ 0.42448
],
[
- 0.11427,
- 0.10328,
- 0.10319
+ 0.11356,
+ 0.10259,
+ 0.10248
],
[
- -0.21612,
- -0.19554,
- -0.19101
+ -0.21409,
+ -0.1932,
+ -0.18869
],
[
- -0.00244,
- -0.00251,
- -0.0026
+ -0.00074,
+ -0.00099,
+ -0.00102
],
[
+ -0.00019,
3e-05,
- 0.00019,
- 0.00022
+ 6e-05
],
[
- -0.02894,
- -0.02609,
- -0.02538
+ -0.03036,
+ -0.02739,
+ -0.02669
],
[
- 0.2354,
- 0.21224,
- 0.20569
+ 0.23646,
+ 0.21267,
+ 0.20616
],
[
- -0.00388,
- -0.00379,
- -0.00395
+ -0.00263,
+ -0.00252,
+ -0.00266
],
[
- 0.23143,
- 0.21323,
- 0.21484
+ 0.23158,
+ 0.21337,
+ 0.21498
]
]
},
@@ -469,48 +469,48 @@
],
"sh": [
[
- 0.16881,
- 0.15883,
- 0.15718
+ 0.17149,
+ 0.16115,
+ 0.1596
],
[
- 0.01887,
- 0.0132,
- 0.01367
+ 0.0178,
+ 0.01233,
+ 0.01276
],
[
- -0.13112,
- -0.13022,
- -0.13073
+ -0.13048,
+ -0.12977,
+ -0.13052
],
[
- -0.00614,
- -0.00518,
- -0.00599
+ -0.00621,
+ -0.00529,
+ -0.006
],
[
- 0.0107,
- 0.00825,
- 0.00861
+ 0.01031,
+ 0.00788,
+ 0.00816
],
[
- -0.04246,
- -0.03442,
- -0.03462
+ -0.04346,
+ -0.03539,
+ -0.03539
],
[
- 0.13574,
- 0.12435,
- 0.12097
+ 0.13713,
+ 0.12566,
+ 0.12246
],
[
- 0.01866,
- 0.01883,
- 0.02001
+ 0.01881,
+ 0.01894,
+ 0.02009
],
[
- -0.00206,
- -0.00249,
+ -0.00201,
+ -0.00247,
0.0002
]
]
@@ -524,49 +524,49 @@
],
"sh": [
[
- 0.10553,
- 0.09413,
- 0.0898
+ 0.10859,
+ 0.09686,
+ 0.09239
],
[
- 0.03079,
- 0.02687,
- 0.02522
+ 0.03042,
+ 0.0266,
+ 0.02506
],
[
- -0.0857,
- -0.0787,
- -0.07852
+ -0.08889,
+ -0.08156,
+ -0.08128
],
[
- 0.06677,
- 0.05809,
- 0.0536
+ 0.06759,
+ 0.05871,
+ 0.05403
],
[
- 0.04277,
- 0.03685,
- 0.0338
+ 0.0422,
+ 0.03641,
+ 0.03349
],
[
- -0.04802,
- -0.04356,
- -0.04284
+ -0.04742,
+ -0.04303,
+ -0.04237
],
[
- 0.05207,
- 0.04924,
- 0.05095
+ 0.05465,
+ 0.05169,
+ 0.05349
],
[
- -0.06138,
- -0.056,
- -0.05553
+ -0.0619,
+ -0.05637,
+ -0.05576
],
[
- 0.01636,
- 0.01409,
- 0.01287
+ 0.0157,
+ 0.01354,
+ 0.01239
]
]
},
@@ -579,49 +579,49 @@
],
"sh": [
[
- 0.04244,
- 0.04255,
- 0.04541
+ 0.20777,
+ 0.1916,
+ 0.19123
],
[
- 0.01099,
- 0.01021,
- 0.01025
+ 0.18066,
+ 0.16258,
+ 0.1585
],
[
- -0.06152,
- -0.06189,
- -0.06592
+ -0.23542,
+ -0.21838,
+ -0.21853
],
[
- 7e-05,
- 0.00016,
- 0.00029
+ 0.00028,
+ 0.00043,
+ 0.00057
],
[
- -0.00023,
- -0.00021,
- -0.00022
+ -0.00062,
+ -0.00053,
+ -0.00051
],
[
- -0.02243,
- -0.02057,
- -0.02019
+ -0.26586,
+ -0.23939,
+ -0.2335
],
[
- 0.06419,
- 0.06519,
- 0.06959
+ 0.10589,
+ 0.10253,
+ 0.10565
],
[
- 0.00017,
- -3e-05,
- -0.00018
+ -0.00031,
+ -0.00062,
+ -0.00084
],
[
- 0.00858,
- 0.00808,
- 0.00808
+ -0.12276,
+ -0.1099,
+ -0.10693
]
]
},
@@ -634,49 +634,49 @@
],
"sh": [
[
- 0.04429,
- 0.04425,
- 0.04718
+ 0.20619,
+ 0.18997,
+ 0.18947
],
[
- 0.01061,
- 0.00985,
- 0.00982
+ 0.17948,
+ 0.16151,
+ 0.15738
],
[
- -0.06433,
- -0.06451,
- -0.06867
+ -0.23419,
+ -0.21702,
+ -0.21704
],
[
- -0.0025,
- -0.00234,
- -0.00239
+ -0.00237,
+ -0.00213,
+ -0.00207
],
[
- -0.00133,
-0.00119,
- -0.00115
+ -0.00103,
+ -0.00094
],
[
- -0.02205,
- -0.02024,
- -0.01978
+ -0.26463,
+ -0.23834,
+ -0.23243
],
[
- 0.06796,
- 0.0687,
- 0.07327
+ 0.10723,
+ 0.10349,
+ 0.10648
],
[
- 0.00555,
- 0.00522,
- 0.0054
+ 0.00523,
+ 0.00481,
+ 0.00484
],
[
- 0.00809,
- 0.00759,
- 0.00756
+ -0.12298,
+ -0.11011,
+ -0.10713
]
]
}
@@ -8593,13 +8593,13 @@
"stats": {
"samples": 384,
"blender": "5.0.1",
- "plate_s": 578.2,
- "nav_s": 6.42,
- "occluders_s": 0.61,
- "lighting_s": 10.61,
- "blender_s": 599.6,
- "package_s": 26.66,
- "plate_bytes": 861503,
- "bytes": 1471102
+ "plate_s": 705.41,
+ "nav_s": 6.23,
+ "occluders_s": 0.14,
+ "lighting_s": 10.5,
+ "blender_s": 723.8,
+ "package_s": 27.08,
+ "plate_bytes": 1054124,
+ "bytes": 1665397
}
}
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/nav.png b/dodaios/ui/web/frontend/public/verse/decks/ops/nav.png
index 7ea3c042fb..b009d723ff 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/nav.png and b/dodaios/ui/web/frontend/public/verse/decks/ops/nav.png differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/occluders.glb b/dodaios/ui/web/frontend/public/verse/decks/ops/occluders.glb
index 7acb7aa19f..4ee39ffd32 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/occluders.glb and b/dodaios/ui/web/frontend/public/verse/decks/ops/occluders.glb differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_0.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_0.avif
index 026cbe8f61..ed2d0756cd 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_0.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_0.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_1.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_1.avif
index a2c253c4ae..38aa81675b 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_1.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_1.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_2.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_2.avif
index 26a91b0e95..a5a913aef3 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_2.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_0_2.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_0.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_0.avif
index 5ee160d09d..615a9e8b70 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_0.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_0.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_1.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_1.avif
index af3b2f115e..4e0186e2e4 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_1.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_1.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_2.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_2.avif
index 7aa61256f4..3b3793d61f 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_2.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_1_2.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_0.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_0.avif
index 76a6056aad..91f23fd19a 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_0.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_0.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_1.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_1.avif
index e8beebbc27..0557e61b98 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_1.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_1.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_2.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_2.avif
index 8011a45b04..f88fda6269 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_2.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_2_2.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_0.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_0.avif
index b0da302fa6..6667e906b0 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_0.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_0.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_1.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_1.avif
index 53ed347fa3..73c2b6bab5 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_1.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_1.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_2.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_2.avif
index 7183c1f40b..8f0f5aa3ea 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_2.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_3_2.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_0.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_0.avif
index c0c286bcc2..fa8e6963b9 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_0.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_0.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_1.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_1.avif
index 67750df438..d5d07736f0 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_1.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_1.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_2.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_2.avif
index 5ed399365b..834fa8d35c 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_2.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L0_4_2.avif differ
diff --git a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L1.avif b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L1.avif
index 814d071f11..8133bb710c 100644
Binary files a/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L1.avif and b/dodaios/ui/web/frontend/public/verse/decks/ops/plate/L1.avif differ
diff --git a/dodaios/ui/web/frontend/src/components/society/verse/actors/characters.ts b/dodaios/ui/web/frontend/src/components/society/verse/actors/characters.ts
index 39e3c66879..b19596018d 100644
--- a/dodaios/ui/web/frontend/src/components/society/verse/actors/characters.ts
+++ b/dodaios/ui/web/frontend/src/components/society/verse/actors/characters.ts
@@ -37,6 +37,8 @@ export interface SkeletonEntry {
export interface TierColours {
M_Uniform: string;
+ /** Breeches; older manifests leave it out and the tunic colour is used. */
+ M_Trousers?: string;
M_Trim: string;
M_Cap: string;
tile: string;
diff --git a/dodaios/ui/web/frontend/src/components/society/verse/actors/look.test.ts b/dodaios/ui/web/frontend/src/components/society/verse/actors/look.test.ts
new file mode 100644
index 0000000000..7bf9b67bdf
--- /dev/null
+++ b/dodaios/ui/web/frontend/src/components/society/verse/actors/look.test.ts
@@ -0,0 +1,39 @@
+import { describe, expect, it } from "vitest";
+import { Group, MeshStandardMaterial } from "three";
+import { applyLook } from "./look";
+import type { CharacterContract, CharacterInstance, TierColours } from "./characters";
+
+function tier(uniform: string, trousers?: string): TierColours {
+ return { M_Uniform: uniform, M_Trousers: trousers, M_Trim: "#101010", M_Cap: uniform, tile: "#c8a24a", cap: true };
+}
+
+function body(): { instance: CharacterInstance; tunic: MeshStandardMaterial; breeches: MeshStandardMaterial } {
+ const tunic = new MeshStandardMaterial();
+ const breeches = new MeshStandardMaterial();
+ const instance = {
+ root: new Group(),
+ clips: new Map(),
+ materials: new Map([["M_Uniform", [tunic]], ["M_Trousers", [breeches]]]),
+ meshes: [],
+ } as unknown as CharacterInstance;
+ return { instance, tunic, breeches };
+}
+
+const contract = {
+ tiers: { deck: tier("#3b3f47"), line: tier("#5e6253", "#5e6253"), command: tier("#17181a", "#17181a"), flag: tier("#e4e1d8", "#17181a") },
+} as unknown as CharacterContract;
+
+describe("uniform tint", () => {
+ it("dresses the breeches in the tier's own colour", () => {
+ const { instance, tunic, breeches } = body();
+ applyLook(instance, contract, { tier: "flag", accent: null, plate: "111|111" });
+ expect(tunic.color.getHexString()).toBe("e4e1d8");
+ expect(breeches.color.getHexString()).toBe("17181a");
+ });
+
+ it("falls back to the tunic colour when a manifest has no breeches colour", () => {
+ const { instance, breeches } = body();
+ applyLook(instance, contract, { tier: "deck", accent: null, plate: "100|000" });
+ expect(breeches.color.getHexString()).toBe("3b3f47");
+ });
+});
diff --git a/dodaios/ui/web/frontend/src/components/society/verse/actors/look.ts b/dodaios/ui/web/frontend/src/components/society/verse/actors/look.ts
index f20335ef62..e2b1bda431 100644
--- a/dodaios/ui/web/frontend/src/components/society/verse/actors/look.ts
+++ b/dodaios/ui/web/frontend/src/components/society/verse/actors/look.ts
@@ -40,6 +40,7 @@ export function applyLook(instance: CharacterInstance, contract: CharacterContra
for (const m of standard(instance.materials.get(name))) m.color.set(colour);
};
paint("M_Uniform", tier.M_Uniform);
+ paint("M_Trousers", tier.M_Trousers ?? tier.M_Uniform);
paint("M_Trim", tier.M_Trim);
paint("M_Cap", tier.M_Cap);
if (look.accent) paint("M_Accent", look.accent);