Commit Graph
47 Commits
Author SHA1 Message Date
FredApps 87d617b728 Merge main into refactor/shared-usd-integer-write 2026-11-16 08:39:13 +01:00
FredApps 18b3343716 Merge main into refactor/shared-usd-lz4-write 2026-11-16 07:59:30 +01:00
FredApps af78121279 Merge main into refactor/shared-usd-integers 2026-11-16 07:26:28 +01:00
FredApps 55a3dee2ed Merge main into refactor/shared-usd-lz4 2026-11-16 06:47:58 +01:00
Dylan M. Taylorandbflatastic 8a1baa35ac Use bounded shared USD integer delta encoding
Preserve packed wire values and propagate bounded scratch/output allocation failures through USD export.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 15:35:21 -05:00
Dylan M. Taylorandbflatastic 939b12bfd0 Use fallible shared USD Crate LZ4 writing
Propagate compression errors through USD writer values, sections and finish. Bound worst-case output reservation by the existing 2GiB app ceiling; preserve normal wire bytes and scene policy.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 15:18:23 -05:00
Dylan M. Taylorandbflatastic 8003210b64 Use shared bounded USD integer delta decoding
Keep the existing aggregate decoded byte budget, integer writer and scene mapping. Depends on craft-libs #1742 and TextureCraft #531.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 15:10:14 -05:00
Dylan M. Taylorandbflatastic 646fa2e454 Use shared USD Crate LZ4 decompression
Preserve TextureCraft scene/material policy, integer packing and writing; replace only bounded LZ4 framing reads. Depends on craft-libs #1738.

Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-15 14:50:57 -05:00
Dylan M. Taylor e1d4f99da1 Pin shared project codecs to merged craft-libs 2026-11-15 16:48:44 +00:00
Dylan M. Taylor b1cdd04487 Adopt shared ZIP64 entry-count guard fix 2026-11-15 15:47:19 +00:00
Dylan M. Taylor 97ace7050b Merge remote-tracking branch 'origin/main' into codex/tcraft-payload-cutover
# Conflicts:
#	Cargo.lock
#	crates/formats/Cargo.toml
2026-11-15 14:03:06 +00:00
Dylan M. Taylor 0e218bd23e Use shared seekable ZIP archive checks 2026-11-15 13:51:20 +00:00
Dylan M. Taylor 6028051a40 Update shared project schema pin 2026-11-15 13:44:48 +00:00
Dylan M. Taylor 267eff5c1e Pin merged shared material format 2026-11-15 13:08:27 +00:00
Dylan M. Taylor 1d0f9665f9 Use shared project version parser 2026-11-15 12:46:12 +00:00
Dylan M. Taylor f40dc84f72 Use shared streaming project tile payloads 2026-11-15 12:28:11 +00:00
Dylan M. Taylor dfd755e87d Merge remote-tracking branch 'origin/main' into codex/shared-mcmat-consumer
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/formats/Cargo.toml
2026-11-15 11:45:36 +00:00
Dylan M. Taylor 0d90953467 Share portable materials and preserve SBS links 2026-11-15 11:44:04 +00:00
Dylan M. Taylor 32380b0dc5 Preserve MaterialX displacement tiling 2026-11-15 11:05:14 +00:00
Dylan M. Taylor bf25c1c536 Move TextureCraft STL parsing to craft-mesh 2026-11-13 06:33:26 +00:00
Dylan M. Taylor 4fd1b33c3c Use shared MaterialX parser and writer 2026-11-13 05:53:14 +00:00
Chris Hassebrook a03f14ea88 Updating CI with local profile for faster runs (#453)
* Run CI on stable Rust and check layering earlier

* Add a faster profile for optimized verification
2026-11-12 22:21:42 +01:00
Chris Hassebrook 42c8ea5b3c Merge pull request #427 from MorionTutoriales/feat/shared-i18n-419
Migrate TextureCraft UI translations to shared craft-i18n
2026-11-11 22:22:41 -05:00
Dylan M. Taylor 55015a7631 Fix Flatpak updates and bump to 0.6.1 (#426)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules

* chore: bump version to 0.6.1 for the Flatpak update fix

* fix(flatpak): honor the launcher version choices
2026-11-11 18:38:56 -05:00
Morion c2720de92a Update i18n integration for TextureCraft 0.6.0 and merged catalogs 2026-11-11 13:27:51 -05:00
Dylan M. Taylor 5b997827bf Updates: take craft-update from craft-libs main at 6e03f65bf 2026-11-11 12:45:10 -05:00
FredApps 9e96367d0c Release: TextureCraft v0.6.0 (#420) 2026-11-11 16:52:41 +01:00
Morion 42c1e51b98 Migrate TextureCraft UI translations to shared craft-i18n 2026-11-11 09:39:33 -05:00
vangel76 0ecfa244af amend 2026-11-10 00:20:01 +01:00
vangel76andClaude Sonnet 5.5 1a795584f1 perf(formats): cores kept for the UI and a RAM share for project saves are settings
The worker cap of 8 and the fixed 3 GiB in-flight budget are gone. Prefs gets
'cores kept for the UI' (default 1, 0 or more) and 'max RAM while saving'
(default 50% of the free RAM).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:06:01 +01:00
dotCooCoo 7f52b87b85 UI: use the shared craft-libs crates for dialogs, shortcuts and quit
Bumps craft-ui and craft-window to craft-libs 1b34eba4 and replaces the
app's own dialog, shortcut and quit code with the shared crates.

File dialogs go through craft-dialogs and no longer stop the frame. An
action that needs a path asks for it and continues when the dialog
answers. An answer that acts on the project does nothing, with a toast,
when another project was opened meanwhile. The browser build keeps its
pickers and the startup and crash message boxes stay blocking.

Shortcuts run through craft-keymap's dispatcher, in the main window and
in floating panels. Saved shortcuts keep their stored form, and the
Keyboard shortcuts window and the shortcut labels do not change. A
shortcut on a symbol that needs Shift is recorded without Shift, and
saved shortcuts in the old form still run. A shortcut now runs only on
its exact chord: an extra Shift or Alt no longer runs a plain-key
shortcut.

A window close quits through craft-quit, and the close check runs in
logic, so closing a minimized window with unsaved changes restores it and
asks. A close during a stroke finishes the stroke and asks. The macOS app
menu comes from craft-menu. The unsaved-changes prompt goes on once its
Save dialog has saved the project, and stays open after Cancel or a failed
save.

The window frame guard on Windows and the title bar's buttons stay in the
app, since craft-libs has no code for them.
2026-11-08 22:07:12 -08:00
dotCooCoo c8ed91f6b3 Updates: Help > Check for Updates and a check at start
TextureCraft is updated only through the launcher, so a copy downloaded
directly is never told about a new version. The desktop app now checks
GitHub releases at start and from Help > Check for Updates, through
craft-update at craft-libs 1b34eba4. A run with --control skips the check
at start. A ready update installs when the app closes, and it waits for
unsaved changes, a stroke, a bake or a resize. The update prompt and the
modal result window hold the keyboard, so shortcuts do not act on the
project behind them. The web build is unchanged.
2026-11-08 20:32:44 -08:00
Dylan M. Taylor 347bda840d Release TextureCraft 0.3.1 2026-11-04 12:34:09 -05:00
Brandon ThomasandClaude Opus 5.5 85475143fa Release 0.3.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 19:25:19 -05: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
bflatastic 7e2b12442b Merge remote-tracking branch 'origin/main' into deps/zip-9 2026-11-02 03:29:23 +07:00
bflatastic ecec51d616 Merge remote-tracking branch 'origin/main' into deps/zip-9 2026-11-02 03:01:47 +07: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
bflatastic b00372e0e5 Version 0.2.0 2026-11-02 00:17:41 +07:00
bflatastic bdac5a22d2 Custom title bar: app icon, menus and window buttons in one strip
The top menu strip is now the window's title bar wherever the app draws the
frame (crates/ui-egui/src/titlebar.rs), using craft-window for the decision
and for the draggable empty area:

- Windows: no OS frame. App icon at the very left, the menus, empty space
  that moves the window (double-click maximizes), the mode label, then
  minimize, maximize/restore and close (46 pt wide, crisp pixel-snapped
  glyphs, close turns red on hover, dimmed while inactive). Invisible edge
  and corner zones resize the window. A per-frame guard ported from
  VectorCraft keeps the undecorated window borderless and a maximized one
  clear of the taskbar (winsafe, no unsafe), and the taskbar gets the big
  app icon.
- macOS: the traffic lights over the strip (full-size content view, hidden
  title), centred on it with eframe's traffic-light API, the app icon after
  their inset, and AppKit's movable flag synced by craft-window.
- Linux and the BSDs: craft-window's probe decides; where the compositor
  leaves the frame to the app (GNOME) the strip draws the buttons in the
  desktop's button layout.
- Wherever the system draws the frame (and on the web) the strip stays the
  menu bar, with the app icon at its left. No line under the strip.

TEXTURECRAFT_TITLEBAR=app|system overrides the decision. Settings ›
Interface › System title bar (applies on restart) brings the OS frame back;
it is read from the saved settings before the window opens and is settable
over the control channel as prefs.system_title_bar. ui.inspect reports
titleBar. New strings are translated in every language, and the offscreen
snapshots render the app-drawn and macOS variants.
2026-11-01 19:46:06 +07:00
bflatastic 7956ed2366 UI design pass: IBM Plex, one type and spacing scale, cleaner titles and forms
- fonts: IBM Plex Sans (one variable file at 400, 500 and 600) and IBM Plex Mono for the
  interface when built with craft-fonts (its Latin catalog, opted into from build.rs); the
  ui-medium and ui-semibold families always exist and fall back to the regular font; CJK
  fallbacks cover them too and align to the interface font's baseline
- type scale 11 / 12.5 / 14 (headings semibold), values in the monospace face; spacing on a
  2-4-6-8-12 scale (rows 4 apart, button padding 8x3, window margins 12); windows share the
  card radius
- panel tabs, section captions and window titles in the medium weight, as written instead of
  small capitals
- layer rows: the opacity field fits its slot (compact padding, small print)
- Settings: every section an aligned two-column form, like Export and New project
- tests/ui_snapshots.rs: renders the whole window offscreen (egui_kittest + wgpu) to PNGs for
  checking layout without a visible screen; AGENTS.md says how
- ATTRIBUTION, NOTICE and packaging list the Plex faces and ship their licences
2026-11-01 17:37:57 +07:00
dependabot[bot] 8fe14a9eec Bump zip from 2.4.2 to 9.0.5
Bumps [zip](https://github.com/zip-rs/zip2) from 2.4.2 to 9.0.5.
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zip-rs/zip2/compare/v2.4.2...v9.0.5)

---
updated-dependencies:
- dependency-name: zip
  dependency-version: 9.0.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-01 08:39:27 +00:00
aiongg 5803904622 Move to egui 0.37 and craft-ui's shared panel docking
egui, eframe and the craft-ui pin go to the suite's egui 0.37 forks and craft-libs f8f8829c.
The panels dock through craft_ui::docking (native floating windows on desktop) in place of
egui_dock, which has no egui 0.37 release. The viewport is the protected central canvas.
Layouts saved before load into the new workspace; an unreadable one becomes the default.
egui-phosphor has no egui 0.37 release, so a copy with the egui requirement raised is vendored.
2026-11-01 05:37:02 +00:00
bflatasticandClaude Opus 5.5 5c33d2005f Modern theme matching VectorCraft: brightness levels, accent colours, rounded cards
Four brightness levels (Medium dark by default) and seven accent colours (Copper, from the app
icon, by default) in Settings › Interface, saved in the UI preferences and settable over the
control channel. Panels, dock groups and bars are rounded cards; tabs are pills, buttons flat and
rounded, popups shadowed; spacing follows VectorCraft. The 3D and 2D views keep a neutral studio
grey with overlay colours that stay readable on it. Widget colours come from craft-ui.

Also: `ui.resize` sets the window size for recordings and screenshots, and TEXTURECRAFT_NO_PREFS
keeps scripted runs off the user's saved layout and settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 16:58:47 +07:00
bflatasticandClaude Opus 5.5 bdbb52c9b6 UDIM tiles, USD import/export, coat/sheen/anisotropy/subsurface shading
- UV tiles: auto-detected UDIM texture sets as one atlas per set, padding kept inside tiles,
  one file per tile with the $udim export token, builtin:udim_plane
- USD: usda/usdc/usdz import (Crate reader with LZ4) and export with UsdPreviewSurface
- Shader lobes: clear coat, sheen, anisotropy and subsurface scattering channels in the
  viewport and the path tracer; car paint, velvet, brushed steel, skin and wax materials;
  glTF clearcoat/sheen export
- Color swatch popups no longer stay open

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:45:14 +07:00
bflatasticandClaude Opus 5.5 ec859420d5 TextureCraft: clean-room 3D texture painting in pure Rust
An open-source, clean-room implementation of a Substance 3D Painter-style texturing
workflow, written in pure Rust with egui and wgpu.

- Layer stack with 32 blend modes, masks, generators, content effects and anchor points
- Painting, projection, smudge, clone, path, lasso fill, particle brush and quick mask
- 43 procedural materials, 17 smart materials and 10 smart masks
- Mesh map baking with high-poly, cage and match-by-name support
- PBR viewport with HDR environments, TAA and a path-traced Rendering mode
- glTF, FBX, COLLADA, OBJ, PLY and STL import; texture export presets; OBJ and GLB export
- Dockable Painter-style UI, shortcut editor, web build, MCP server and CLI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 01:33:13 +07:00