Commit Graph
38 Commits
Author SHA1 Message Date
dotCooCoo 49d8d2e16b fix(ui): shortcuts and floating OS windows stop while a dialog or prompt is open
Delete edited the package behind the Save, Discard, Cancel prompt, and
floating OS windows stayed live behind every dialog, because no single
function said whether input was blocked.

Modality::capture answers it from the app's dialogs, the unsaved prompt,
native file dialogs, the update prompt and result window, and egui's
modal layer. Shortcuts, Graph, Function and FX-Map keys, the node search
and add menus, file drops, floating OS windows, Home's actions and menu
items all read it. Home and the Shortcuts list do not block.

Behind a file dialog, the commands that show one still run, so File >
Open brings a hidden macOS Open panel forward.

ui.menu.invoke now returns an error behind a dialog instead of ok,
ui.menu.list reports those items as disabled, and package_save without a
path in bridge mode returns the same error. command.run is unchanged.

Floating panels drawn inside the main window, as on the web build, still
take clicks behind a dialog until the dialogs use egui's modal layer.
2026-11-09 05:31:22 -08:00
chasse20 a67d2dd205 Fix Windows workspace test cleanup 2026-11-09 00:58:45 -05:00
chasse20 54ab0fc877 Remove package and import limits 2026-11-09 00:01:56 -05:00
chasse20 49e99948d9 Fix package round trips 2026-11-08 23:31:17 -05:00
chasse20 cc052aeaa8 Support SBS resources and independent MCRAFT packages 2026-11-08 22:10:35 -05:00
eliets2 776eb419e4 Honor displacement depth in headless renders without HQ
Callers setting a displacement depth expect the height relief to change, but today it is silently ignored unless the HQ flag is also set.

Use the requested displacement depth whenever it is provided, falling back to the view height_scale only when it is absent, and add a regression test rendering with and without displacement and without hq.

Test: render_displacement_applies_without_hq failed before the change and passes after.
2026-11-06 17:47:35 +02:00
a0180da9b6 Reply to non-UTF8 lines on the control channel (#118)
Clients cannot tell a refused non-UTF8 request from a dropped connection, unlike malformed JSON which gets an explicit error reply.

Make the TCP control servers reply with an error for non-UTF8 lines, closing before auth and continuing after auth like bad JSON.

Test: non_utf8_line_before_auth_gets_refusal_reply failed before the change and passes after.

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-06 10:10:38 +01:00
chasse20 2adbdf4aab Merge main while preserving native graph architecture 2026-11-06 00:58:56 -05:00
chasse20 d318484b41 Checkpoint native SBS primitive workflow
Replace the legacy Rust procedural library with clean-room native primitives, typed function execution and FX-Map graphs. Save supported content as native SBS and organize the model, evaluators, codecs and editors into focused modules.

Add shared graph editing behavior, flat filtered node menus, frame and comment editing, named Explorer outputs and an original atomic sample. Document the tested scope and remaining interoperability work.
2026-11-05 18:23:06 -05:00
FredApps 56407b9470 Revert the batch rollback and restore prior main 2026-11-05 22:04:58 +01:00
Rafael Mendes a7b9194820 Revert reviewed PR batch and cancel 0.1.3 preparation
Restore tracked files to 91bb53f07a, immediately before the batch, at the maintainer request. Preserve the existing history and earlier work, including PR #38. Revert the 50 reviewed PR merges and the version bump in 441092c. The published 0.1.2 release is unchanged.
2026-11-05 17:48:14 -03:00
Rafael Mendes 6174f4391d Merge pull request #95 from Belligerently/fix/view-settings-validation
Preserve view settings when a request is rejected
2026-11-05 16:01:49 -03:00
Rafael Mendes 9b8eb0e783 Keep undo boundaries and restore failed edit state across guarded commands 2026-11-05 15:37:25 -03:00
Rafael Mendes cd4c2dfa43 Merge reviewed preview changes and retain normal convention controls 2026-11-05 14:35:58 -03:00
SteamSmithandClaude Sonnet 5.5 e0227222d9 chore(merge): bring fix/undo-merge-ends up to date with main
Kept the per-request end_merge calls and upstream's preview-size preference sync in
command.run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 12:23:31 -05:00
Belligerently 2a88e98d24 Validate view settings before applying partial changes 2026-11-05 12:13:52 -05:00
Rafael Mendes e9c1938cdc Wait for relief builds and keep platform-specific tests warning-free 2026-11-05 13:30:48 -03:00
Rafael Mendes 6b6f8728c2 Bound relief workers and integrate real height previews 2026-11-05 12:25:44 -03:00
Rafael Mendes 96574eaba7 Integrate MCP material export with the current control protocol 2026-11-05 11:35:48 -03:00
Rafael Mendes 56aaea24ae Use the bound control port and handle thread creation failures 2026-11-05 10:50:37 -03:00
Rafael Mendes f5b3fe73de Merge remote-tracking branch 'origin/main' into review/pr-42 2026-11-05 10:37:52 -03:00
Rafael Mendes 854764bddb Merge remote-tracking branch 'origin/main' into review/pr-25 2026-11-05 10:16:37 -03:00
SteamSmithandClaude Sonnet 5.5 0546dd58c6 fix(engine): end undo merge runs at gesture and request boundaries
merge_key was cleared only by edit/undo/redo/reset_history, so two drags
of one slider, two "New random seed" clicks and two MCP/control
node_param calls collapsed into one undo entry. Add Session::end_merge,
call it on pointer release and around each control/MCP command, and
restore the session when a merged edit fails.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 06:57:14 -05:00
Rafael Mendes 821c7172b5 Add DirectX normal-map interpretation to the 3D view 2026-11-05 00:04:50 -03:00
PiJellyPin 8bdae1157d Fixed Heightmap 2026-11-05 02:38:04 +01:00
Rafael Mendes 6a249c66ff Merge remote-tracking branch 'origin/main' into feat/alpha-3d-and-wire-editing
# Conflicts:
#	README.md
2026-11-04 20:11:35 -03:00
AndreIsraelAO 3947e3c6f5 Merge main into feat/22-graph-context-export 2026-11-04 17:53:40 -03:00
PiJellyPin 66fdba878f Testing a bunch of stuff 2026-11-04 08:47:10 +01:00
PiJellyPin 6310230ecd Load sbs files
save, load etc.. for sbs files
2026-11-04 07:03:54 +01:00
A-Gift-Of-FlameandClaude Sonnet 5.5 ef8ab335c2 feat(automation): material_export MCP tool for portable .mcmat
Sandboxed agents could not hand a material to TextureCraft: the workspace
sandbox refuses `file.*` commands and there was no MCP tool for `.mcmat`.

Add `material_export {path, graph?, size?, values?}` (RPC method
`material.export`). It cooks the graph through the same engine code as
`file.exportMaterial` and writes the `.mcmat` only through
AuthorizedWorkspace (cap-std, `--write-root`): no write root, a malformed
path or an escape is an error, the parent folder must exist, and the file is
capped at what `package_open` may read back. Bridge mode refuses it like the
other path tools. The engine gets a shared `material_request` helper so the
command and the tool parse graph/size/values identically.

Tests: file written and readable, bad requests, denied without a write root
(Denied and read-only workspace), path escapes (`..`, absolute, backslash,
drive, symlink) and the MCP tool end to end. docs/control-protocol.md lists
the method and tool.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:55:13 +01:00
Simon Hull 2bd4fd35b8 Control channel: harden the token file and the app's control server
The app wrote its control token to the temp folder with default permissions from a
hash-based generator, compared it with ==, spawned unlimited threads and let an
unauthenticated client hold a connection for 10 minutes. The shared token file was opened
with create+truncate, which follows a planted symlink.

- Token files are created new (remove, then O_EXCL) with mode 0600; clients only read a
  regular, owner-only, non-symlink file.
- The app's control server uses the shared security module: OS-random token, constant-time
  compare, bounded lines, at most 16 connections, one auth attempt within 10 s, close on
  malformed JSON before auth.
- serve --port and the app bind before writing the token file.

Ported from TextureCraft 5a065c1 and 836e3f2.
2026-11-03 13:17:16 -06:00
Rafael MendesandClaude Opus 5.5 8f4dd5b6c1 feat: alpha in the 3D view; select, delete and reroute wires
3D view: the material's alpha (the Opacity output, else the Base color's
alpha channel) now makes the mesh see-through. Rays composite front to back
through up to eight transparent layers and back faces shade toward the
viewer, so the inside of a cut-out mesh and the environment show through.
view.3d takes `transparency` (default on) and `alphaView`; the Display menu
and a bottom-bar button toggle an unlit view of the alpha channel.

Graph editor: click a wire to select it (Delete or Backspace removes it),
drag a wire to pull a reroute Dot out of it, double-click a wire to drop a
Dot there, right-click a wire for Insert reroute dot and Delete link. The
new graph.wire.insertDot command splits a wire with a Dot in one undo step.

Docs: docs/wires-and-alpha.md (gestures, commands, rendering, tests) with
two snapshot screenshots, plus architecture, parity, control protocol,
README and ATTRIBUTION updates.

Clean-room implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:32:48 -03:00
AndreIsraelAO e816ad75bb Keep export proportions and expose size in the CLI and MCP
size is now the larger side in pixels and the other side keeps its
proportion; 0 means the graph's size. Adds --size to the CLI export,
size to the MCP outputs_export, and the docs line. The resolution combo
shows the graph's real size.

Refs #22
2026-11-03 07:29:07 -03:00
AndreIsraelAO 3a104b4e72 Add a resolution option to Export outputs
Adds size to file.export and a Resolution selector to the export window.
Only open the export window when the graph opened.

Refs #22
2026-11-03 00:26:12 -03:00
ljkx f786a2d4c3 3D view: pan the camera with Alt+drag or middle-drag
The 3D view could only orbit around the mesh center and zoom, so there was
no way to look at an off-center part of a mesh up close.

- View3d gains `target`, the orbit point's offset from the mesh center in
  mesh radii (world axes, so orbiting after a pan turns around the new
  point). `view.3d {target: [x, y, z]}` sets it, validated before anything
  changes and clamped to 5 radii; view.3d.reset clears it.
- The renderer orbits around the offset target, and `pan` turns a drag
  (in view heights) into a new target so the mesh follows the pointer.
- Alt+drag or middle-drag pans in the 3D view, like the graph. Double-click
  and the Camera presets recenter. The headless render honours the target.
2026-11-02 20:30:01 +01:00
bflatasticandClaude Opus 5.5 288e6f22ce Beauty renders and eight new sample materials for the README
- render: an offline hq path (displaced subdivided mesh, ray-traced AO,
  shadowed key light, 3x3 supersampling) on a vignette backdrop; the
  sphere's UVs wrap twice so texels stay square
- CLI/RPC/MCP render: --tiling, --hq and --displacement
- templates: new painted metal plates, lava rock, polished marble and
  wicker weave; reworked brick wall, stone tiles, wood planks and mossy
  ground
- README: new material gallery and refreshed screenshots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:24:11 +07:00
bflatasticandClaude Opus 5.5 39f9d65621 Load OBJ, glTF and GLB meshes into the 3D view
Meshes are normalized to the unit sphere, keep their normals and UVs (box
projection when they have none) and get MikkTSpace tangents. Scene > Load
mesh in the 3D view, view.3d.loadMesh for agents, file drops and the browser
picker; headless renders use the mesh too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 04:35:43 +07:00
bflatasticandClaude Opus 5.5 2648fd0334 UI shell, 3D preview renderer, automation, CLI and desktop app
The egui front end in its own crate: docked explorer, library with live node
previews, the node graph editor (thumbnails, typed ports, wiring, box select,
frames, comments, pins, node search, library drag and drop), properties with
curve and gradient editors, 2D view and a CPU PBR 3D preview with parallax
and image-based lighting. Every edit is an engine command; the control channel
adds synthetic mouse/keyboard input for agents. Adds the MCP server, the
JSON-lines RPC, the headless CLI (render, cook, export, run, batch, mcp, serve),
the desktop app, an original placeholder icon and an offscreen snapshot test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 03:54:08 +07:00