Add rounded fantasy character and admin visual creators

This commit is contained in:
dingo
2026-09-11 11:50:52 -04:00
parent aaf0a0c89b
commit bd220ba1df
32 changed files with 1221 additions and 124 deletions
+7
View File
@@ -33,6 +33,13 @@ The highest-risk requirements are:
## Implemented boundaries
The [creator detour](CREATOR-WORKSHOP.md) adds bounded, versioned procedural
appearance recipes. Go validates and persists character looks and admin-authored
visual presets; resource/mob definitions copy their selected recipes. Three.js
builds matching preview, world, housing, and export geometry, merging by material
and instancing repeated appearances. Appearance does not affect gameplay geometry
or stats. Full rigs, visible equipment, animation/audio, and CDN uploads remain.
Revised milestone 3 places a world portal and one shared housing entrance in each
hub. Source-owner travel and housing transactions validate physical proximity and
obstruction; key-targeted entry also validates the exact active carried key. Existing
+112
View File
@@ -0,0 +1,112 @@
# Creator detour: rounded fantasy models
September 11 playable handoff. The user chose softer, rounded fantasy shapes.
This is a focused creator detour before revised milestone 4's reliability and
persistence work. It completes part of the presentation/customization foundation,
not the full original 4.5 or the account cosmetics milestone.
## Where to find it
- **New character:** choose **Create your look** before **Enter world**. Save the
draft, then enter the world to create that character with the selected appearance.
- **Existing living character:** open **Display settings → Character appearance**.
Saving changes only that character's appearance, including in housing. Cancel or
Escape discards the draft. Character-creation retries do not overwrite a look
already saved on the existing life.
- **Control → Content → Visual workshop:** create a named visual, rotate/zoom its
preview, adjust its form/proportions/colors, and publish it with a reason. The
server assigns its permanent ID. **Preview / create variation** starts another
editable design; it does not replace the published original.
- **Control → Content → Mobs:** create a mob or expand one and choose **Create
variation** to copy its gameplay settings. Select a saved visual or make a new
look inside the form. Existing behavior, attack, loot, level, and stat controls
still determine gameplay. Use **Worlds → Actions → Spawn mobs**, or publish a
mob spawn rule, to place the new definition.
- **Control → Content → Resources:** select Tree, Ore, or Herb as the resource
type, then edit the matching tree, rock, or plant visual. Saved compatible designs
are available in the library selector. Publish gathering settings and biomes as
usual. New definitions appear in unexplored generator-2 chunks; existing explored
layouts and legacy generator-1 resources keep their current models.
- **Download GLB** exports the current static model for external editing or a future
asset upload pipeline. The editable procedural recipe remains the source for
this creator. Downloading does not publish or spawn anything.
## Included forms
| Family | Forms |
| --- | --- |
| Character | Tousled hair, side swept, rounded bob, twin braids |
| Creature | Woodland fox, moss bear, moon rabbit, jelly sprite |
| Tree | Cloud canopy, layered evergreen, willow crown, blossom tree |
| Rock | River stones, boulder cluster, crystal bloom, mossy outcrop |
| Plant | Broadleaf herb, wildflowers, mushroom cluster, fern |
Each family supports bounded height/build, feature size or density, three colors,
and a deterministic variation seed. New variation changes form/features while
keeping the selected palette. The preview supports mouse/touch orbit and zoom;
phone layouts stack the preview above the controls.
## Ownership, durability, and rendering
Appearance is a character-owned, version-1 presentation recipe. It survives travel,
revival, and restart with that life. Replacement starts without the previous life's
appearance. This is free base customization; account-bound cosmetic unlocks and
their transfer/drop/furniture rules remain a separate system.
Go validates families, colors, seeds, and bounded numeric values. Players can save
only human appearances and only to their current living character's owning world;
anonymous, cross-origin, invalid, and in-transit/foreign-world edits are rejected.
Appearance changes use the existing fenced save path and do not change stats,
hitboxes, movement, daily usage, items, or progression.
Visual library publication uses the existing admin catalog authorization, audit,
version conflict checks, and idempotent request handling. Resource/mob definitions
copy the selected recipe, so later library variations cannot silently change their
appearance. Library records are bounded to 1,024 and need no uploaded executable
content or external model fetches. A future generator version must retain support
for existing recipes rather than silently changing version 1.
The same procedural mesh builder drives previews, export, characters, resources,
and mobs. Geometry is merged by material; repeated appearances use instance batches
whose buffers grow to their visible population. Inactive custom batches and closed
editor previews release geometry, materials, controls, and WebGL resources. Player
looks render in the world and housing; corpse loot keeps the existing corpse
presentation. No higher tested player capacity is claimed.
## Manual playtest
1. Customize a new traveler, enter, reload, and reopen appearance. Confirm the saved
form/colors match; Cancel and Escape should preserve the previous saved look.
2. Change an existing character's appearance. Check another player's view and a
house interior, then travel/reconnect. Stats, inventory, and daily time must stay
unchanged. Revival retains the look; replacement does not inherit it.
3. Publish a named visual. Reload Control, create a variation, and confirm the
original still exists. Download a GLB and inspect it in your preferred viewer.
4. Create a passive creature from a saved visual and spawn it nearby. Check its
appearance, targeting, combat, loot, and ordinary spawn/respawn behavior.
5. Create a tree/ore/herb resource with the appropriate visual and biome selection.
Visit unexplored chunks of a generator-2 world; gather, revisit, and restart.
Explored old layouts should not change when publishing another design.
6. Try each family on a phone and desktop. Orbit/zoom, change forms, close/reopen
editors, and confirm all controls remain reachable.
Typecheck, production build, generated-contract check, and Go suite are required.
Server coverage includes validation, catalog replay/reopen, resource compatibility,
appearance authorization and persistence, travel, revival, and replacement. Browser
spot checks verified character preview/in-game rendering, visual publication,
library reuse in mob publication, scenery previews, GLB export, and phone-width
layout. Routine Playwright authoring/runs remain deferred.
## Still pending
- Skeletal rigs, locomotion/action animations, equipment attachment sockets and
visible equipped gear, sound hooks, LODs, and production asset optimization.
- Freeform mesh/part editing, arbitrary model imports, additional faces/body parts,
rig compatibility checks, and general decorative-object placement. Current
scenery is authored through the existing gathering resource system.
- Object storage/CDN upload and delivery, asset manifests/version retention, and
the larger Control/website redesign. GLB export is available now; CDN integration
is not required to use these procedural creators.
- Account cosmetic ownership/application and its established loss/transfer rules.
- The [reliability and persistence plan](../planning/RELIABILITY-AND-PERSISTENCE.md),
followed by the expanding-world milestones. This detour does not fix those issues.