Generated unit sprites
Workflow for new or regenerated raster unit art. Read the raster handoff for production ownership and rendering contracts. The live experimental Rifleman set has sixteen user-approved headings (idle, run and firing), selected behind the existing experimental graphics setting. Track heading/state completeness separately for every new or reworked unit; a reference set does not establish completeness for another unit.
User-only visual approval
Only the user may approve a generated sprite’s appearance. An agent may reject a candidate for defects, but must never visually approve it. Automated checks, agent reviews and passing or merged PRs establish technical evidence only; none grants visual approval.
Label fresh generations candidates and keep them authoring-only until the user explicitly approves their appearance. Obtain that approval before treating a new sprite as approved, multiplying it into a directional batch, or selecting it for live rendering. Record which exact candidate and scope the user approved alongside the art’s provenance. Approval of a reference does not approve subsequent generations; silence or a request to generate more art is not approval.
This gate concerns generated sprite appearance. Routine code and documentation PRs retain the normal authorized delivery workflow and do not need an additional visual-approval permission step.
Geometry-guided generation
Use the 3D pose-guide workflow for new directional unit art. Create or reuse a 3D unit model, skeleton/mannequin or posed mesh, render it at the specified camera and heading, and supply that image as the generator’s primary pose/camera reference. Existing user-approved sprite art is a secondary reference for character design and style. It must not override the guide’s view.
node scripts/art/render-unit-pose-guide.mjs --heading ne --out target/unit-pose-guides/mg-prone
reproduces the reusable mannequin route. The tool also accepts editable posed-model
JSON and existing in-game coarse shadow models, and can render all sixteen headings
without changing camera or scale. Preserve its model, PNGs and metadata with the
actual generation inputs. Its prompt scaffold is a starting point; record the exact
prompt actually sent to the built-in image generator.
Render one heading/state in-game and obtain user visual approval before multiplying that sprite into a directional batch. Technical projection checks and rendered geometry guides do not approve the resulting sprite’s appearance.
After the approved prototype, generate related directional variants together in one coherent multi-view sheet, normally eight views per image-generation request, rather than generating every new direction independently. Supply a matching guide sheet with an explicit cell order, one fixed camera and one physical model scale. Keep the same approved character/component references and approved assembled context used by the successful prototype; do not silently replace or drop them when adding headings. For a larger set, use consistent groups and retain those same references across groups. Shared generation context reduces design drift in proportions, equipment and details; it does not guarantee consistency. Inspect every generated view against the approved design and the heading contract, and keep each new sheet labeled as a candidate until the user approves it. A targeted single-view retry is for a documented defect or an explicitly requested experiment, followed by comparison with the rest of its sheet.
Establish the reference and pose plan
- Preserve one approved character reference: proportions, moderate detail, equipment, lighting, elevated oblique camera, and orthographic projection. New directional generations use 55 degrees elevation above the horizontal ground plane, equivalently 35 degrees from vertical/top-down, with zero camera roll and a fixed azimuth. Keep camera and character scale consistent across poses and headings. Review at actual RTS size as well as enlarged.
- Put both angle conventions in every new generation prompt and manifest: camera elevation
above ground
55, tilt from vertical35. Compass headings such as NE at 45 degrees are rotations around the ground plane, not camera elevation. Specify the camera explicitly; “isometric”, “elevated”, or “same camera as reference” alone is insufficient. - Existing approved sources may come from an older baked view. Use them for character/style reference while making the new 55-degree camera requirement authoritative. Do not rewrite historical prompts or relabel old source art as generated at 55 degrees. Review reuse in-game.
- Specify the loadout and anatomical handedness. A rifle stock meets the intended shoulder; support and operating hands keep their roles. Mirroring a sprite can incorrectly reverse these.
- Declare which states are in scope, including transitions. Track omitted death, portrait, minimap, deployment, or ability art explicitly rather than implying that idle/run/fire is a complete presentation set.
- Prototype one heading through the entire in-game sequence before multiplying it into the full heading set. Respect requested contact-sheet review stages and prototype-only scope.
Author distinct states and transitions
The authoring-only anti-tank-pair Lab profile is an opposing NE/SW support-weapon
prototype. Its accepted 3D geometry remains in the historical first-pass sources;
the current eight setup poses and code-composited recoil poses, generation
provenance and fixed guide-anchor registration live in
anti-tank-pair-candidate-v2.
The user approved the NE/SW prototype with candidate 3 sloped-trail/spade grounding
on 2026-11-30; the scoped approval
records the exact reviewed sources. The anti-tank-pair profile selects that strip;
the other comparison variants remain separate. Both this prototype and the
direct-model camera-comparison profiles explicitly hold
35 degrees from vertical independently of the Experimental Graphics preference.
Firing reuses identical carriage/wheel/leg pixels and translates only the upper
assembly. A separate renderer-owned whole-unit kick moves body, muzzle, HP clearance
and model-derived shadows together, without moving the authoritative world anchor.
Directional support strips may declare setupStart, setupFrames and
deployedStart in their directional metadata; they sample authoritative setup
progress before shot feedback, use setupFacing through deployment/teardown, and
keep a folded hold while packed. frameDirections supplies explicit baked-heading
indices for model-derived shadows across these non-locomotion frame layouts.
Model acceptance does not approve generated sprites or enable normal-match routing.
Support-weapon review families can span atlas pages with explicit
supportWeaponHeadingIndices (north=0, clockwise in 22.5-degree steps). Body and
model shadows use the same snapshot-aware page selector, honoring setupFacing
during setup/teardown and weaponFacing during firing. Each page retains its own
uniform directional layout and unique image-version cache key. The historical
anti-tank-sixteen-review diagnostic profile displays six accepted painted bearings and ten
clearly labeled flat model references because the remaining painted generation was
blocked; it does not represent a completed painted sixteen-direction set.
| State | Rifleman pose and motion |
|---|---|
| Relaxed idle | Natural planted stance, head upright, rifle lowered. |
| Running | Both hands hold a low diagonal carry across the torso; alternating strides and modest body bob. |
| Stop and shoulder | Settle the feet, establish the staggered stance, lift the stock to the shoulder, lower the cheek to the stock. |
| Aimed combat hold | Eye aligned with sights, stock touching shoulder, front foot forward and rear foot behind, knees flexed, slight forward lean. |
| Shot and recoil | Small rifle/shoulder compression; boots stay planted and the stock stays seated. |
| Bolt cycle and re-aim | Operating hand moves to the receiver and returns; support hand stabilizes the rifle; return to the aimed hold. |
| Leave combat or resume movement | Deliberate transition to lowered idle or running carry. |
Remain raised between repeated shots. Do not replay low-ready → raise → lower on every cooldown. Keep the planted foot locations consistent through aim, recoil and bolt motion. Running feet move as part of the gait; do not register every run frame on whichever boot happens to be lowest.
Frame count should buy visible articulation. Start planning around six to eight distinct running poses and six to eight weapon-handling key poses, with reusable idle/aim holds and any necessary transition poses. The approved west sheet is a reference, not a requirement to duplicate its exact index layout. Add intermediate recoil/bolt poses where playback needs them; near-identical images do not solve a frozen animation. Record frame roles, durations, holds, loop seams and precedence in metadata, and verify that the renderer actually selects every authored phase.
Separate animation timing from simulation timing. The west demo delays shot presentation by 350 ms to show a shoulder windup; that is a prototype convention, not a production attack rule. Before shipping, define how acquisition/readying, actual shot release, muzzle effects, recoil and damage line up. Additional headings must not silently bake in a gameplay timing change.
Declare the heading contract
- Record the heading count, angle convention, first heading, clockwise/counterclockwise order, and exact source-cell mapping before prompting or packing.
- Sixteen headings means 22.5-degree steps. The experimental Rifleman convention starts at screen
south (
firstFacing = pi/2, positive Y down); west is index 4, north index 8 and east index 12. Other rigs may have different conventions; read their metadata. - Keep the 55-degree camera fixed while rotating the character. Preserve handedness and the depth ordering of the near/far arm, boot, weapon and equipment as the view changes.
- South is a ground-plane heading, not an eye-level portrait. Require the same elevated view: visible helmet crown/shoulder tops, shortened face under the brim, and foreshortened torso and equipment. Reject a camera change even if the compass direction is correct.
- Prone and trench art uses the same 55-degree camera as standing art. A north-facing prone body must foreshorten along the projected ground plane; a near-profile body cannot validate elevation by itself. Check N/S and diagonal views against in-game ground-direction guides, while keeping anatomy/weapon handedness. Terrain tilt does not correct a baked shallow view.
- Verify all headings, opposite views, adjacent-heading transitions and the final-to-first wrap. Check both body-facing locomotion and weapon-facing combat. A sixteen-heading sheet routed to eight reachable headings is a failed integration even if the contact sheet looks correct.
Generate team materials deliberately
Use shaded magenta for designated team paint, cloth uniforms and helmets on a genuinely transparent background. Preserve natural skin, hair, leather, wood, dark steel, rubber and boots. Specify exactly which materials are team-colored; do not infer them later from white brightness or generate separate blue/orange versions. Fixed materials must not receive magenta reflections.
In this workflow magenta marks materials, not the background. Older background-keyed assets belong to their original pipelines; do not combine a magenta background key with magenta team materials. Keep shadows, native muzzle flashes, tracers and other independently rendered effects out of the body sheets when the runtime owns them.
Use the built-in image generator for art, label reference versus edit-target roles, preserve raw outputs and exact prompts/settings/reference paths, and version outputs without overwriting the approved source. Do not invent a model identifier when the tool does not expose it. Keep assets consumed by the project in the project, rather than referencing only a generator cache.
Register and pack without breaking the matte
The authoritative world position is the projected ground point at the feet. Place the standing stance’s foot-contact center at the sprite anchor, with the body extending upward from it. Movement, orders, collision and selection refer to this ground point, not the torso center. For running, carry that ground reference through the gait using body registration; raised boots must not redefine the unit position. A renderer-owned contact shadow and selection ring should make this correspondence visible during review.
Health bars belong above the visible sprite. Derive their clearance from the transformed visible bounds (or a conservative envelope across the active pose family), including scale, anchor and sprite offsets. Do not reuse an overhead radius or a hardcoded torso-height offset. Verify the bar’s bottom clears the sprite in idle, running and weapon-handling poses for every heading, including when the bar becomes visible through selection or damage.
- Keep each generated image’s RGB and alpha together. Remove disconnected artifacts while preserving its connected soft-alpha boundary; a threshold used to locate the body must not become a hard final cutout.
- Follow the shared-model size and shadow rules: calibrate using a broad physical body region or long span against the pose model, never boot size, wheel-hub diameter or another small isolated detail; distinguish scale calibration from foot/sole ground anchoring, and derive simplified shadow groups from that same model and its pivots. Align using uniform scale and translation, stable body landmarks and ground contact. Keep a shared scale across a pose family. Preserve authored head/shoulder motion rather than centering the helmet independently in every frame. Document anchors, world scale and registration.
- A bounding-box fit is not contour registration. Do not force an old alpha outline onto new RGB, stretch width and height independently, or fill uncovered pixels with old white artwork. That combination reintroduced pale fixed-color pixels in the Rifleman prototype. Exact silhouette preservation requires a separately validated contour/material transfer.
- Extract the Cultivator magenta chroma/purity mask at source resolution. Split fixed and paint contributions before downsampling; classifying a filtered mix of magenta and neighboring skin or steel can create an incorrect fixed-material seam.
- Filter coverage and color together in premultiplied form with area sampling. Convert the filtered contributions to the runtime’s fixed/paint source-over format. Check the recomposed alpha against independently filtered source coverage, allowing only PNG quantization error.
- Decontaminate matte colors conservatively from nearby reliable material samples. Preserve legitimate skin and metal highlights. Do not remove halos by globally eroding the silhouette or blurring the sprite. Check the texture-filtering/premultiplication path too.
Keep cell margins and sampling gutters sufficient for the configured renderer. Every browser texture must fit the existing 2048-pixel limit in both dimensions. Use explicit atlas geometry, frame metadata and versioned image URLs; do not infer frame layout from a contact-sheet appearance.
Automated checks and visual review
Every new packer should have deterministic rebuild verification and focused checks for:
- Correct source grid, pose count, heading count and reachable runtime frame mappings.
- Nonempty body and paint coverage in every required cell; no clipped opaque/soft-alpha edges, stray components, unexpected border pixels, duplicate gait poses or unexplained scale/anchor jumps.
- Bright low-saturation fixed-color pixels near the silhouette, including helmet and uniform edges. Flag candidates for review: skin and metal highlights are not automatically defects. Calibrate thresholds per asset and retain before/after evidence. The west cleanup reduced one such detector from 113 candidates to 1; those numbers are not universal acceptance limits.
- Stable alpha across team palettes, unchanged fixed materials, correct neutral reconstruction, and agreement between composed alpha and independently filtered source coverage.
- Playback holds, transitions, loop seams, planted combat feet, muzzle origin and flash timing.
Inspect light/dark/grass backgrounds at native size and magnified, using multiple team colors. Use the processed game-size sprites as the style/detail review target. Clearly distinguish large raw generation sheets from these final-scale previews; raw source detail is not a different approved rendering style. Review contact sheets across every heading and animation phase. Use Interact for an actual game capture: lowered idle → running → stop/shoulder → several shots → return to movement/idle when that transition is in scope. A rotating sprite over a game screenshot does not validate gameplay integration. Prefer fixed-step capture when real-time capture reports deficient frame coverage. Test animation selection with rendering faster than the 30Hz server snapshots (60/144/240Hz), including repeated positions, stops and heading changes. A 30fps fixed capture alone can hide idle/run flicker. Reuse the renderer’s snapshot-aware movement signal rather than classifying each zero-delta rendered frame as idle.
Verify renderer-owned contact shadows, selection/hit bounds, HP bars, muzzle/tracer origins and asset readiness at the new scale and camera angle. The unit must remain grounded and selectable. Retain raw art, manifests, prompts, processing scripts, checks and representative in-game evidence. Do not scale generation to the remaining headings until the user has explicitly visually approved the candidate and the reference pose/state plan, mask pipeline and one-heading in-game sequence have passed their review stage. Technical review cannot substitute for that user approval.
Approved opposing-pair MG baseline
The experimental ground machine gunner uses machine-gunner-joint-sixteen-v1
for all sixteen headings (160 cells). The user approved the full set in the
playable Lab on 2026-11-30; approval.json retains that decision and the reviewed
layer hashes. The earlier machine-gunner-joint-eight-v1 remains its immutable
eight-heading source.
Each pair seed includes the full idle/run/prone/lowering range in both opposing
headings, followed by paired run and lowering sheets. Every subsequent request
retains the original NE/SW seed and original successful activity contacts; a new
pair never replaces that canonical source. Exact provenance lives beside the art.
The 2026-11-29 user approval includes the exported E/W prone proportional
adjustments. Rebuilds apply that export once about the original pivots, preserving
all original eight-heading pixels, origins, muzzles and shadows exactly when
packing the sixteen-heading atlas. The legacy standing trench strip remains active
in trenches. Only transparent padding changes to keep the atlas under 2048 pixels.
Additional headings remain candidates until explicitly approved by the user.
Approved combined Panzerfaust family
On 2026-11-30 the user approved panzerfaust-rifleman-motion in the playable Lab.
Experimental graphics now uses exactly that combined eight-view family: the four
cardinal activity views and four diagonal loaded run/rifle views derived from the
existing skinned Rifleman animation. Exact reviewed runtime/source hashes and scope
are recorded in client/assets/rigs/panzerfaust-rifleman-motion-v1/approval.json.
The source guides, prompts and deterministic packers remain alongside the assets.
Diagonal idle/run holds, nearest-cardinal launcher/spent placeholders, and snapping
between supported headings remain as displayed. This approval does not cover the
rejected twelve-direction sheets or later candidate generations.
On the same date, the user approved panzerfaust-cumulative, adding all 64 diagonal
idle, launcher-handling/fire, spent-run and spent-rifle source cells. Their exact
reviewed source/layer hashes are in
client/assets/rigs/panzerfaust-diagonal-actions-v1/approval.json. The normal
experimental family now uses this 100-slot diagonal page with the unchanged
cardinal page. Loaded diagonal run/rifle pixels and anchors are retained exactly.
Four extra idle-breathing frames complete the page; spent idle holds rifle low-ready.
All eight headings now have the core loaded/spent actions. The other eight bearings
still snap to the closest authored view; no sixteen-heading completeness is implied.
The older panzerfaust-rifleman-motion Lab profile retains the prior family.
Approved painted anti-tank family
Experimental graphics selects the four-page anti-tank-all-painted-candidate-v1 family
for all sixteen anti-tank gun headings. The calibrated Lab was approved on 2026-12-01;
approval.json records the exact native sources and runtime layer hashes. On 2026-12-03,
the user approved the regenerated SSW view; its native component/setup sources live in
anti-tank-ssw-candidate-v2. Packing applies the reviewed one-time upper-piece registration
before recoil and preserves every packed pixel of the other fifteen directions. The earlier
approval remains in approval-2026-12-01.json. The normal-art opt-out remains unchanged.
The experimental route uses the same raw pages and one scaleAntiTankStrip application
as the anti-tank-all-painted Lab profile. Setup selects setupFacing; idle/firing
selects weaponFacing; movement uses the snapshot-aware movement signal and body facing.
All four page textures must be ready before the family is used. Body, muzzle, HP bounds,
fixed-leg recoil, ground contacts, and model-derived sloped-trail shadows share that selection.
Approved static Rocket Truck Lab preview
On 2026-12-03 the user approved the eight-view raised-rack truck with separate magenta rocket
sources, then approved the resized three-row composition and its corrected far-to-near ordering.
The exact reviewed loaded-layer hashes are in
rocket-truck-raised-eight-candidate-v2/approval.json.
The rocket-truck-loaded-thick-preview Lab profile selects that static composition: three rows of
six short thick props on the 30-degree rails. Source truck and rocket images remain independent;
source-resolution fixed/paint separation precedes compositing and filtering. Camera-space depth
sorts the attachment centres, with source rail order mapped to anatomical right for each heading.
The v4 editable model preserves physical dimensions and the rail/prop attachment convention.
Approval covers the eight headings and static Lab presentation only. Normal-match graphics,
gameplay rocket counts, firing/depletion and projectile feedback remain unchanged. The remaining
eight intermediate bearings require their own generation and user review. Historical candidate
asset-directory names and generation prompts are retained as provenance, not current approval state.
Sixteen-view Rocket Truck equal-area Lab review
On 2026-12-03 the user authorized merging the existing rocket-truck-model-scale-review
Lab profile while requesting an audit of its still-visible size differences. This adds the eight
intermediate source views and fits every empty truck to the matching v4 model projection with
one uniform scale and translation. The three rows of six resized props retain camera-depth
ordering. The approved eight-view profile remains available; normal-match graphics, gameplay
rocket counts and firing/depletion remain unchanged.
The current scale criterion uses a convex envelope of all sufficiently opaque, pure-magenta
material pixels. This is not semantic body segmentation: magenta wheel hubs also contribute,
and the envelope bridges empty regions between selected pixels. It equalizes projected
area and centroid, not width, height, silhouette, camera accuracy or visual correctness.
The west envelope remains about 7.0 percent wider and 14.6 percent taller than the model;
WSW, WNW and SE have different extent residuals.
extent-audit.json
records every direction; integration.json records the authorized Lab-only scope and hashes.
The integration request must not be relabeled as approval of exact model-size parity.