0.12.4
Tabbed settings panels and undo across the character builder, rig tool and tailor; pictures in materials (Poly Haven's fabric scans as cloth presets, a picture or a flat colour or grey for any input); the tailor always on the bar; grips per class of held item; Tonio's textured weapons and melee in the biped.
Size: barrel (min, packages external) 1643.8 KB raw / 569.0 KB gz, up 47.8 KB / 14.0 KB gz (+3.0%) on 0.12.3: the material pictures and fabric presets, the drape's sliced runner, undo history, playback and hold grips are in the barrel.
Added
- Tabbed settings panels with icons:
panelSections: 'tabs'with aniconon each collapsiblelabel3d. The character builder and the rig tool use it. panelActions(el)on<tosi-b3d>: a page's own buttons on the settings panel's icon bar, at its right end. Icon bars take{ spacer: true }(an elastic gap);tabs3dtakestools, and in a tabbed paneliconBar3d({ inTabs: true })goes on the tab strip.- Undo and redo in the character builder and the rig tool (⌘Z / ⇧⌘Z).
undoHistoryis the pure history behind them. - Panels rebuild once a resize settles. The scene dispatches
resizeend;panelRoom(panelEl)gives a system panel its room. - Pictures in materials: a material picker's colour, opacity, glow and bumps (and a cloth's colour, roughness and normal) can take a picture, kept by
material-picturesand saved in a character file (pictures). Cloth and PBR taketile(metres per repeat). - Photographed fabrics: eleven of Poly Haven's CC0 fabric scans as cloth presets (
textiles,textiles-full;fabricTexturePresets). - Material previews are drawn on Tonio's material test ball, on grey (a cube until it loads).
- Export a rigged body as a GLB from the rig tool and the character builder (joint names, rest pose, height; the model's materials and springs).
- Character builder: Hold uses Tonio's textured weapons with a manipulator on the grip; clips come from a smaller builder pack (
UAL_builder.glb);playback3d(play, scrub, speed) in Motion; all four AI characters open on hand-placed rigs. - Rig tool: spread fingers, and hand modes (full, mitten, none); opened from the builder it shows the body it already wears.
- Biped melee:
holdingWeaponstands on guard in Sword_Idle and the right trigger swings (Sword_Attack). The biped playground carries Tonio's weapons. - Material inputs that take a picture are a heading and a row: choose a picture, clear it, a flat colour or grey instead (
colorPickericon), and a swatch of what it is now.colorPicker3dandcolor3dtakegrey: true(a black-to-white ramp and a ladder of greys). slider3dnotches: a press beside the handle steps to the next notch that way; dragging stays continuous. A material'stileis now scale textures, 1/32 to 4 on a log scale, notched at 1/n and whole numbers (textureScaleNotches), where pictures repeat whole.- The tailor has undo and redo on a bar pinned to the top of its panel (⌘Z / ⇧⌘Z in the builder while it is open), with cancel and done unless it is
persistent. - Grips per class of item (
hold-grip:holdGrip,holdClassOf,HOLD_CLASSES): pistols, rifles, heavy weapons, one- and two-handed blades, bows, shields. The character builder keeps an adjusted grip per class (placing one sword places every one-handed blade; per-item grips saved before are read as their class's), and the biped playground holds by class. - The character builder's tailor is always on the bar (scissors): pick a slot and a garment, and one you cut opens on its outline to edit, or start a new one; no done or cancel, it keeps the garment when you switch or close, and undo covers the edits. Export, import and forget moved into it; the Tailor tab is gone.
mountTailorTooltakespanel,persistentandrows; characters takehideSlot(one slot's garment off for a moment). - Character builder clothes: each slot is one row, the garment and its material swatch beside it; the "edit" picker is gone.
materialPicker3dtakesname(a title with no caption). - Tailor drape: edits no longer lock the page (debounced, sliced, interruptible:
drapeGarmentAsync,runSliced,drapeSteps,remeshSteps); cloth goes over arms, shoulders and hips; anchored points are drawn in the new--w3d-anchoredcolour.
Changed
- Stroked-and-filled icons fill with
--w3d-icon-fill(a mid blue) instead of the button colour behind them. PassknockouttoiconGlyph, or set--tosi-icon-knockout, for the old look. - The rig tool's hosted "start over" is an icon beside undo and redo.
- Material inputs are labelled diffuse (albedo), normal map (was bumps) and colorize (a cloth's recolour); the recipe keys are unchanged.
- A material's
tileinput's range is now 1/32 to 4 (was 0.02 to 4), so a smaller saved value is clamped. - Cloth material previews show a colour the recipe names wholly (the preview has no texture for a recolour to keep).
- The tailor's "export glTF" button reads "export GLB".
Fixed
- Arrow keys and Space no longer scroll the page while you play a demo.
- Tailor, cut from the skin: tidy, smoothed cut edges (no spikes or notches along a neckline).
- Drape: edges well clear of the body are no longer pinned to it (rigid hems).
- A held item's grip is measured on fresh world matrices (the pistol no longer circles the hand metres away); the launcher reads its
_gripthe same way. - Auto-rig: glove bumps are not read as fingers, and a knotted thumb is placed by proportion.
- The rig tool casts shadows when hosted, and done on a body from a file no longer leaves it invisible.
- Undoing a placed grip in the character builder moves the held item back (the numbers were restored, the item was not).
- A stroked-and-filled icon's part drawn with
stroke:nonestays unstroked (tosijs-ui#251 worked round bybin/icon-no-stroke.ts).