Commit Graph
127 Commits
Author SHA1 Message Date
bflatastic f47638d782 CLI: say that new --sample bakes its mesh maps at up to 1024 px
The baked maps are most of a sample project's size, so a 2048 sample is
as large as a 1024 one; the usage and the control protocol now say so.

Fixes #66.
2026-11-02 05:42:55 +07:00
BFlat 3fac2b1482 Merge pull request #78 from storytold/docs/roadmap-2026-11-02
Docs: roadmap estimate after text, brush presets and the start window
2026-11-02 05:23:11 +07:00
bflatastic eea71c6790 Docs: roadmap estimate after text, brush presets and the start window
Painting tools 88 to 90% (text in any font as an alpha or a decal), materials and
assets 86 to 88% (18 brush presets and user presets), the total about 94%; the
viewport and UI rows mention polygon wireframes and the start window.
2026-11-02 05:08:15 +07:00
BFlat 0fd344245e Merge pull request #70 from storytold/assets/brush-presets
Brushes: 18 brush presets in the shelf, and your own
2026-11-02 05:07:33 +07:00
bflatastic 355b7e7fd5 Close the brush preset test after the merge 2026-11-02 04:52:35 +07:00
bflatastic e03a9d6c71 Merge remote-tracking branch 'origin/main' into assets/brush-presets
# Conflicts:
#	ROADMAP.md
#	crates/engine/tests/session.rs
#	crates/paint/src/lib.rs
#	crates/ui-egui/src/i18n/ar.rs
#	crates/ui-egui/src/i18n/de.rs
#	crates/ui-egui/src/i18n/es.rs
#	crates/ui-egui/src/i18n/fr.rs
#	crates/ui-egui/src/i18n/it.rs
#	crates/ui-egui/src/i18n/ja.rs
#	crates/ui-egui/src/i18n/ko.rs
#	crates/ui-egui/src/i18n/pt_br.rs
#	crates/ui-egui/src/i18n/zh_hans.rs
2026-11-02 04:48:21 +07:00
BFlat 5dff635b5a Merge pull request #68 from storytold/ui/start-window
Start window: new, open or a recent project at launch
2026-11-02 04:47:34 +07:00
bflatastic f4baf8140a Merge remote-tracking branch 'origin/main' into ui/start-window
# Conflicts:
#	crates/ui-egui/src/i18n/ar.rs
#	crates/ui-egui/src/i18n/de.rs
#	crates/ui-egui/src/i18n/es.rs
#	crates/ui-egui/src/i18n/fr.rs
#	crates/ui-egui/src/i18n/it.rs
#	crates/ui-egui/src/i18n/ja.rs
#	crates/ui-egui/src/i18n/ko.rs
#	crates/ui-egui/src/i18n/pt_br.rs
#	crates/ui-egui/src/i18n/zh_hans.rs
2026-11-02 04:29:43 +07:00
BFlat bd416a012d Merge pull request #67 from storytold/tools/text-alpha
Text: any installed font as a brush alpha or a decal
2026-11-02 04:28:49 +07:00
bflatastic 1d885c8df1 Brushes: 18 brush presets in the shelf, and your own
The Assets shelf has a Brushes tab: presets grouped as Basic (hard, soft,
airbrush, square, dots), Wear and grunge (dry brush, chalk, spray, grunge,
splatter, scratches, chips, cracks, drips) and Details (stars, stitches,
rivets, fur), each with a preview of its stroke. A click sets the stroke (alpha,
spacing, flow, hardness, angle, path following, jitters, particles) and keeps
the brush's size, alignment, culling, symmetry and lazy mouse. My brushes saves
the current brush as a .tcbrush file in the brushes folder and lists them.

Commands: brush.preset.list, brush.preset.apply {preset}, brush.preset.save
{path} and brush.preset.load {path} (an image alpha from another project is
dropped). Labels translated into the other nine UI languages.
2026-11-02 04:28:17 +07:00
bflatastic 96b179ccfc Start window: new, open or a recent project at launch
The app opens on the sample project, which left no obvious place to pick a
project. A start window now offers New project, Open, the recent projects and
Continue with the sample project, with Show at startup (also Settings >
Interface > Start window). It opens at launch in the desktop and web apps, but
not when a file is given on the command line or the app runs with --control.

Labels translated into the other nine UI languages; a UI test covers New
project, Continue and the startup setting.
2026-11-02 04:15:55 +07:00
bflatastic 50ce39fd51 Text: Arabic labels for the text controls 2026-11-02 04:09:36 +07:00
bflatastic 0c9627573e Merge remote-tracking branch 'origin/main' into tools/text-alpha 2026-11-02 04:07:38 +07:00
bflatastic 7fdd9be0a3 Text: draw text in any installed font as a brush alpha or a decal
resource.text draws one or more lines of text, shaped with harfrust (kerning,
ligatures, joined scripts) from the font's outlines (skrifa) and filled by a
non-zero scanline rasterizer, cropped to the ink, as an image resource: white
for the brush alpha, or a color for a decal. text.fonts lists the installed
families and styles, read from each font file's name table only (246 families in
80 ms here); Ubuntu Light and Hack from the UI's built-in fonts are always there
and are the fallback in the browser.

- Properties > Alpha > Text: the text, a font and style, Use as brush alpha and
  Place as decal (in the tool's base color).
- Image alphas keep their proportions (their longer side spans the stamp), so a
  line of text stays a line; image thumbnails are letterboxed and show alpha.
- harfrust 0.12 and skrifa 0.44 are the versions egui already builds, so the
  lockfile gains no packages.

Fixes #40
2026-11-02 04:07:37 +07:00
BFlat 0788317deb Merge pull request #47 from test-bit-sys/feat/arabic-localization
Add complete Arabic (ar) UI localization
2026-11-02 04:03:28 +07:00
BFlat 1098c6a32a Merge pull request #59 from storytold/ui/empty-mask-slot
Layer rows: the empty mask slot adds a mask
2026-11-02 04:02:58 +07:00
BFlat ee54678120 Merge pull request #53 from storytold/fix/wireframe-polygon-edges
Wireframes show the mesh's polygons, not their triangles
2026-11-02 04:02:54 +07:00
BFlat ec75c2c637 Merge pull request #12 from storytold/dependabot/cargo/zip-9.0.5
Bump zip from 2.4.2 to 9.0.5
2026-11-02 04:02:50 +07:00
bflatastic 1c110929de Layer rows: the empty mask slot adds a mask
The outlined box beside a layer without a mask did nothing when clicked. It now
highlights with a plus on hover and opens the add-mask menu (white, black, color
selection) for that layer; the layer toolbar's mask menu shares the same items.
2026-11-02 03:34:54 +07:00
bflatastic 7e2b12442b Merge remote-tracking branch 'origin/main' into deps/zip-9 2026-11-02 03:29:23 +07:00
bflatastic eb812f90d4 Arabic: UI font fallback, and the docs
Arabic text needs a font with Arabic glyphs; egui already shapes it and orders
right-to-left runs. The script joins the CJK ones in the lazy fallback fonts:
Noto Sans Arabic from craft-fonts (desktop and web, 0.8 MB), else Segoe UI,
Tahoma or Arial on Windows, SF Arabic or Geeza Pro on macOS, and Noto Sans
Arabic or DejaVu Sans on Linux and FreeBSD. Without any, the picker lists Arabic
by its English name, as for CJK.

ATTRIBUTION, the localization table (panels keep the left-to-right layout),
features, README and roadmap count ten languages.
2026-11-02 03:28:59 +07:00
bflatastic fc510fc892 Merge remote-tracking branch 'origin/main' into feat/arabic-localization 2026-11-02 03:21:53 +07:00
BFlat 841eff5df9 Merge pull request #43 from Agapenordev/fix/control-token-hardening
Control channel: harden the token file and the app's control server
2026-11-02 03:21:28 +07:00
bflatastic bd128ab181 Wireframes show the mesh's polygons, not their triangles
Importers fan-triangulate quads and n-gons, and the 3D and UV wireframes drew
every triangle edge, so a quad mesh showed its triangulation. Meshes now carry a
per-triangle mask of the diagonals the importer added (Mesh::diagonals), and the
wireframe leaves them out (Mesh::wire_edges), unless a UV seam split one from its
twin.

- OBJ reads polygons whole (tobj without triangulation) and fans them itself.
- OBJ, PLY and the polygon sink (FBX, COLLADA, USD, Alembic) share one fan,
  RawMesh::polygon, which records the diagonals.
- The built-in meshes mark their grid quads.
- glTF and STL store triangles only, so they keep every edge.

Fixes #41
2026-11-02 03:20:57 +07:00
bflatastic 8ffc94e286 zip 9: entry names are fallible; pin 9.0.5
zip 9 decodes entry names on demand, so ZipArchive::file_names and ZipFile::name
return a Result. Package lookups (FBX, usdz) skip names that do not decode, and a
project entry with a bad name is a malformed project. The usdz test reads
data_start as an Option. The lockfile pins 9.0.5 rather than the two-day-old 9.2.0.
2026-11-02 03:12:29 +07:00
BFlat 4d15c8d3e1 Merge pull request #42 from test-bit-sys/fix/layer-rename-focus-undo
Fix layer rename focus trap and restore Undo (#39)
2026-11-02 03:11:07 +07:00
bflatastic ecec51d616 Merge remote-tracking branch 'origin/main' into deps/zip-9 2026-11-02 03:01:47 +07:00
bflatastic 94e288a944 Layer rename: focus the field until it has it, and test the editor in the UI
Request focus only while the field has none, so it can lose focus to Enter or a
click elsewhere; this replaces the per-layer temp flag and the second focus
request on double-click. UI tests drive the layer stack offscreen: Enter and a
click elsewhere rename, Escape cancels, and Ctrl+Z undoes the rename afterwards
(all three fail on main).
2026-11-02 02:59:38 +07:00
BFlat dcb2a008be Merge pull request #48 from storytold/docs/readme-tv-screenshots
Show a portable TV in the README screenshots
2026-11-02 02:58:50 +07:00
bflatastic 16ef2270c2 Show a portable TV in the README screenshots
The workspace, bake, export, rendering and light shots now show an original 1970s
portable TV with seven texture sets and a named layer stack instead of the material
ball, and the status bar reads 0.2.0.
2026-11-02 02:57:19 +07:00
test-bit-sys 33d0faa840 Add complete Arabic (ar) UI localization
Adds the full Arabic translation table covering all 827 keys, with exact placeholder parity, ellipsis handling, and locale detection ('ar'). Updates localization parity documentation accordingly.
2026-11-01 20:54:55 +01:00
AgapenordevandClaude Opus 5.5 836e3f251b Control server: close on malformed JSON before auth
A malformed first line got a "bad JSON" reply but kept the connection open until
the auth deadline, unlike `texturecraft-cli serve` and the documented
one-attempt rule. It now closes the connection while unauthenticated; after
auth a malformed line still only gets the error reply. Adds a regression test
and doc comments on the touched functions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 20:42:06 +01:00
test-bit-sys 4a49019d8d Address CodeRabbit review: capture Escape in EventFilter and ensure initial focus is marked 2026-11-01 20:32:23 +01:00
AgapenordevandClaude Opus 5.5 5a065c1e15 Control channel: harden the token file and the app's control server
The desktop app wrote its control token to <temp>/texturecraft-control-<port>.token with
default permissions (world-readable in a shared /tmp), from a hash-based generator, and
compared it non-constant-time with no connection limit. Any local user could read the token
and drive the app, whose command.run takes host paths.

- Token files are created new (remove, then O_EXCL) with mode 0600, so a planted file or
  symlink can neither keep its permissions nor redirect the write; one that cannot be
  replaced disables the server with a hint to set TEXTURECRAFT_CONTROL_TOKEN.
- Clients only read a token file that is a regular file owned by them with no group or
  other permissions, opened without following symlinks or blocking on a FIFO.
- The app's control server uses the shared security module: OS-random 256-bit token,
  constant-time compare, validated and trimmed env token, bounded lines and at most 16
  connections.
- Connections must authenticate within 10 s (AuthDeadline) and get one attempt.
- The app and `serve --port` bind before writing the token file, so a server whose port is
  busy no longer replaces the running server's token.

Regression tests cover owner-only files over an existing open file, symlink and FIFO
handling, the auth deadline, the connection limit and the app's token checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 20:16:37 +01:00
test-bit-sys fb73a5e925 Fix layer rename focus trap and restore Undo
Previously, r.request_focus() was called unconditionally on every
frame inside the layer rename editor, which continually wiped out
r.lost_focus() in egui's memory and trapped keyboard focus inside
the text edit. As a result, clicking outside never exited rename mode,
Enter was unhandled, and keyboard shortcuts including Undo (Ctrl+Z)
were permanently suppressed by egui_wants_keyboard_input.

- Request focus via widget ID once when renaming starts instead of every frame
- Submit and close rename mode on Enter or when focus is lost
- Cancel without saving on Escape
- Prevent row double-clicks, row clicks, and drag-and-drop from interfering with active text editing
- Add regression test in session.rs verifying layer.rename and edit.undo

Fixes #39
2026-11-01 20:02:06 +01:00
BFlat 22b0a75aaa Merge pull request #38 from storytold/docs/camera-brassing
Camera render: brassing only on edges and corners
2026-11-02 01:26:19 +07:00
bflatastic 70a7a44c29 Camera render: brassing only on the top plate's edges and corners
The worn-to-brass paint came from curvature masks that also caught the flat
front of the top plate, so it read as yellow blotches. The wear is now painted
by hand with brush strokes in UV space along the top plate's outer edge,
rounded ends and lip, the bottom plate's corners, the dial rims, the release
button and the strap lugs; the flat faces stay clean black satin paint.
2026-11-02 01:17:04 +07:00
BFlat d20c4bd669 Merge pull request #37 from storytold/docs/showcase-renders
New README showcase renders: storm lantern and rangefinder camera
2026-11-02 01:10:14 +07:00
bflatastic 4a259e7270 New README showcase renders: a storm lantern and a rangefinder camera
Replace the crate and material-ball renders in Made in TextureCraft with two
original props, modelled procedurally and textured with TextureCraft's own
materials, masks and mesh-map generators, path traced at 2048 samples.

texturecraft-cli render gains --camera <name> to look through a camera saved
in the project (camera.add), so a render can use an art-directed framing
(distance, target, field of view) rather than only yaw and pitch.
2026-11-02 01:08:59 +07:00
Dylan M. Taylor bf03e6ad2f Retry macOS stapling and validation (#36) 2026-11-01 12:48:06 -05:00
BFlat e01dac2c35 Merge pull request #35 from storytold/fix/script-exec-bits
Mark the packaging scripts executable
v0.2.0
2026-11-02 00:36:09 +07:00
bflatastic b55a63a390 Mark the packaging scripts executable
The shared release workflow runs them directly, so without the executable bit the
Linux, macOS and Web release jobs stop with "Permission denied".
2026-11-02 00:34:47 +07:00
Dylan M. Taylor 95cb8f086d docs: sync Craft App Suite list with ArtCraft Launcher 2026-11-01 12:30:09 -05:00
BFlat b8f3dfaef9 Merge pull request #34 from storytold/version/0.2.0
Version 0.2.0
2026-11-02 00:18:52 +07:00
bflatastic b00372e0e5 Version 0.2.0 2026-11-02 00:17:41 +07:00
BFlat c7e979dcdb Merge pull request #33 from storytold/docs/readme-screenshots
Retake the README screenshots for the new UI
2026-11-02 00:14:43 +07:00
bflatastic ef30dfe5e3 Retake the README screenshots for the new UI
Inter, the even 6 pt gutters, the slate viewport backdrop and the custom
title bar. The Export shot now shows a neutral project folder.
2026-11-02 00:13:34 +07:00
BFlat c44f8b8508 Merge pull request #30 from storytold/ui/inter-and-even-gaps
Inter, even gaps and readable selections
2026-11-01 20:40:48 +07:00
BFlat 79bdebcdb9 Merge pull request #32 from storytold/ui/custom-titlebar
Custom title bar: app icon, menus and window buttons in one strip
2026-11-01 20:14:16 +07:00
BFlat 17cedbcfc0 Merge pull request #31 from storytold/ui/viewport-backdrop
Viewport backdrop in the interface's slate
2026-11-01 20:12:36 +07:00