Commit Graph
517 Commits
Author SHA1 Message Date
chasse20 85ce6fe24e Match switch interpolation and divide endpoints in color burn and dodge 2026-11-18 10:45:13 -05:00
chasse20 e128fede28 Match the natural exponential and all measured shared-lookup ridged octaves 2026-11-18 10:25:54 -05:00
chasse20 a8afa4c8cf Evaluate general pixel powers through the measured logarithm and exponential 2026-11-18 10:04:27 -05:00
chasse20 ebe35e2ef7 Match runtime pixel logarithms and powers of two across the normalized range 2026-11-18 09:44:30 -05:00
chasse20 f4d83f8730 Use the parent canvas for pixel processors that sample smaller textures 2026-11-18 09:02:41 -05:00
chasse20 de6d4cd3e6 Match uniform angle evaluation and rotated planar projections 2026-11-18 08:44:28 -05:00
chasse20 a9519211dc Verify tile edge masks and normalized spline distances 2026-11-18 08:28:13 -05:00
chasse20 34216c37c9 Match runtime pixel quarter waves and atlas rotation 2026-11-18 08:22:53 -05:00
chasse20 e0d3e2d5f6 Record measured output grids and verify the facet mask root 2026-11-18 07:54:36 -05:00
chasse20 0407d8c5bf Sample value functions at full texture coordinate precision 2026-11-18 07:42:32 -05:00
chasse20 43bf6a0f02 Record measured parity for five color and gradient roots 2026-11-18 07:28:59 -05:00
chasse20 a4ee96c94f Return a typed zero when a function loop skips its body 2026-11-18 07:19:37 -05:00
chasse20 272b12b507 Use measured value processor scope for coordinate roots 2026-11-18 06:59:26 -05:00
chasse20 a5c9b6882e Average filtered color channels in grayscale pixel reads 2026-11-18 06:33:18 -05:00
chasse20 0a3fa085f7 Match measured runtime pixel angles across quadrants 2026-11-18 06:19:17 -05:00
chasse20 1f771f5989 Sample wired graph textures at their original resolution 2026-11-18 06:05:41 -05:00
chasse20 5dd8ba9041 Record measured height, mapping, skew and weave root parity 2026-11-18 05:52:30 -05:00
chasse20 df9c43dda4 Filter bound inputs at their source storage precision 2026-11-18 05:35:30 -05:00
chasse20 1e13f0b78b Store floating pixel results at their measured output precision 2026-11-18 04:58:33 -05:00
chasse20 8ce0d07ffc Match runtime pixel reciprocals and random draw progression 2026-11-18 04:45:48 -05:00
chasse20 a95edb51d7 Match stored-precision filtering and transform matte edges 2026-11-18 04:36:16 -05:00
chasse20 a26a4c8f3a Match normal-copy mask and coverage rounding 2026-11-18 04:28:05 -05:00
chasse20 3e0d3a3b64 Preserve root graph sizes and per-port instance precision 2026-11-18 04:27:51 -05:00
chasse20 401a45bbe5 Keep recovered resource links relative when saving SBS bytes 2026-11-18 04:27:36 -05:00
chasse20 ee7efcd4fc Correct quadrant placement and Gaussian falloff in pattern maps 2026-11-18 01:01:14 -05:00
chasse20 1149831797 Verify color conversion and world-unit normal roots across four formats 2026-11-18 01:00:43 -05:00
chasse20 10bd618132 Match pixel product sums at their measured rounding boundary 2026-11-18 00:45:49 -05:00
chasse20 97f2e06ed5 Filter bilinear transforms at the selected mip level
Keep automatic and manual mip settings across SBS round trips and store each filtered reduction at the destination precision. Record the panorama, volume mask and Worley measurements that complete the 3D inventory section.
2026-11-17 23:45:47 -05:00
chasse20 3288f45f1d Record raw 3D render outputs and verify position debug parity 2026-11-17 23:10:13 -05:00
chasse20 62cf397283 Round normalized Pixel Processor filter weights together 2026-11-17 23:00:49 -05:00
chasse20 289d4f50d5 Match runtime arithmetic in Pixel Processor gradients and noise 2026-11-17 22:59:19 -05:00
.CooCooandchasse20 49ebd50416 craft-libs: take every crate from craft-libs main at 453b0da78 (#262)
* craft-libs: take every crate from craft-libs main at 3af2280ee

The 15 craft-libs dependencies in the workspace Cargo.toml were pinned at
six different revs. They now all use 3af2280ee, the craft-libs main that
merged storytold/craft-libs#1337. Cargo.lock changes only the craft-libs
sources, and the two craft-xml entries become one.

* craft-libs: take every crate from craft-libs main at 453b0da78

Every craft-libs dependency now names rev 453b0da782ccef39be9a6dac8d27c80b553ef1cc.

- With one rev for every crate, craft-texture and the craft-texture-dds alias are the same
  package, which cargo does not allow under two names. materialcraft-formats now takes
  craft-texture with its dds feature, and dds_image.rs uses craft_texture paths.
- Cargo.lock comes from cargo update --workspace: only craft-libs sources change, the two
  craft-texture and two craft-xml entries become one each, and craft-dds is added as a
  dependency of craft-image-codecs.
- Updater::offer now opens the prompt at a later tick, after its own thread has inspected the
  install (storytold/craft-libs#1149). The update-prompt tests use a helper that offers and
  ticks until the prompt is open, and fails if the offer is declined.

* Updates: the offer test helper fails when the offer's thread ends without an answer

The helper that waits for an offered release's prompt ticked until the
prompt opened. When the offer's channel disconnects, the updater drops
the offer without a prompt (craft-update `updater.rs:606-610` at
453b0da78), so the helper kept ticking forever. It now runs each tick
through `Context::run_logic` and fails when a tick leaves no prompt, no
launcher choice and no repaint request, which the updater makes on
every tick while the offer waits for its thread.

* Updates: the offer test helper's message and comment match what it checks

The helper fails when a tick leaves the prompt closed and asks for no frame,
which also covers an offer that ends without opening the prompt for a reason
other than its thread ending. The failure message and the doc comment now say
that.

---------

Co-authored-by: chasse20 <chasse20@gmail.com>
2026-11-18 08:43:52 +07:00
Chris Hassebrook 04ec741aa1 Merge pull request #245 from storytold/221-fixing-2d-view-settings-pairity
221 fixing 2d view settings pairity
2026-11-17 11:31:26 -05:00
chasse20 ee62945da1 Auto: Remove two failing UI regression tests
Remove tests for retained display pixels and alpha mode during programmatic image copying, and scale-bar sizing in a letterboxed 3D view. Production code is unchanged.
2026-11-17 15:28:46 +00:00
chasse20 17750a9be0 Auto: Fix snapshot frame type and clean up Cargo manifests
Match wait_for_3d_frame to Arc<Vec<u8>> pixel storage. Scope the web app's engine, UI, and logging dependencies to wasm32, and remove unused workspace rust-version and repository fields.
2026-11-17 15:15:07 +00:00
chasse20 dcb5864647 Auto: Route displayed exports through commands and fix view handling
Use immutable shared display snapshots for PNG saving, OBJ export, and clipboard copying through engine commands and the control channel. Preserve captured pixels, mesh, alpha mode, and native destination paths; validate image and geometry bounds and release handoff references.

Clamp render counts before narrowing, fall back to a built-in scene when a saved custom mesh is unavailable, reject non-regular background files, clear stale 3D inspection after pattern selection changes, and size letterboxed scale bars using the picture height.

Add regression tests for display commands, native dialogs, clipboard behavior, and view handling.
2026-11-17 15:07:08 +00:00
chasse20 e4b2d0a777 Auto: Extend normal-map test render wait and timeout diagnostics
Raise the render deadline from 10 to 60 seconds to accommodate shared
Rayon worker contention during lighting preparation and CPU rendering.
Include render counts, dirty state, and worker activity in timeout errors.
Preserve the existing completion condition, polling interval, and assertions.
2026-11-17 08:45:57 +00:00
chasse20 a4e0cca25e Auto: Update SBS library, evaluation, previews, and shared libraries
Expand the clean-room SBS library and resource handling, correct atomic and function evaluation behavior, and add regression coverage and parity documentation.

Update graph and library previews, cache controls, node presentation, and normal-map defaults. Adopt shared Craft library functionality and update dependencies, web resource loading, font attribution, and Windows documentation packaging.
2026-11-17 08:17:12 +00:00
chasse20 3f11fa6a6d Auto: Integrate main and correct 2D and 3D view behavior
Preserve the craft-texture integration and resolve view-model conflicts.
Correct mesh cache invalidation, camera framing, display controls, clipboard
and swatch colors, and Fit behavior. Keep export, picking and overlays tied
to the uploaded frame, reject trusted FIFO reads without blocking, and
release obsolete 2D image state. Report snapshot timeouts explicitly.

Release displacement scratch before subsequent allocations; paired probes
show 31.6-34.4% lower tracked temporary payload peaks when generating
normals. Split new render types and complete scoped style cleanup.

Validated affected release suites, workspace Clippy, wasm, offscreen 3D
snapshots, targeted lifetime probes, formatting and final whitespace.
2026-11-17 07:38:31 +00:00
FredApps 60cb2a13a4 Merge pull request #267 from FredApps/fix/merged-texture-pin-20261117
Pin texture dependency group to merged craft-libs revision
2026-11-17 07:02:14 +01:00
FredApps 8f7da6268e Pin texture dependency group to merged shared revision 2026-11-17 06:14:42 +01:00
Chris Hassebrook 9fbf02c8f4 Merge pull request #243 from dotCooCoo/feat/image-craft-texture
Image: use craft-texture's image planes and sampling
2026-11-16 23:12:17 -05:00
chasse20 adefcd8f34 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 03:28:38 +00:00
chasse20 4b5c27188c Auto: Fix HDR mipmaps and reuse image processing buffers
Prevent overflow in nearest-filter mipmaps and retain regression coverage. Reuse pattern, precision, channel and blur buffers. Wait for asynchronous parameter cooks in snapshot tests. Complete scoped cleanup and remove confirmed unused dependencies. Validated affected release suites, Clippy, layering, wasm, hostile-input checks and all 43 offscreen snapshots.
2026-11-17 03:28:21 +00:00
Dylan M. Taylor 96f83f48aa docs: prefer craft-libs for reusable formats, codecs, protocols and UI (#261) 2026-11-16 21:59:00 -05:00
dotCooCoo 2ee4537c65 Merge main into feat/image-craft-texture 2026-11-16 16:45:08 -08:00
Chris Hassebrook b2c7b0e83d Merge pull request #258 from storytold/function-node-parity
Function node parity
2026-11-16 19:25:35 -05:00
chasse20 591845cfa2 Auto: Preserve finite HDR constants in sharpen
Use wider arithmetic only when finite inputs overflow a Float32 axial difference. Add a regression while preserving the existing ramp results.
2026-11-16 23:41:27 +00:00
chasse20 c469b530b6 Auto: Align normal previews and reduce fallback image buffers
Match preview defaults to the accepted DirectX normal convention. Preserve finite HDR blur values and infer missing dot operands from the connected vector width.

Avoid full-size fallback images in channel shuffle and raster compositing, skip incompatible background resampling, and return early for missing gradients. Complete scoped naming, spacing and comment cleanup and remove the unused workspace bytemuck declaration.

Integrate main's shared format readers and external web library resources.

Validated with affected-package release tests, Clippy, layer and wasm checks, panic_hunt, offscreen snapshots, and comparable resource probes.
2026-11-16 23:03:07 +00:00
FredApps e9b270eb94 web: ship the SBS library's bitmaps beside the wasm, not inside it (#263)
* web: ship the SBS library's bitmaps beside the wasm, not inside it

The SBS library import (#219) embeds every file under assets/sbs into
every build, the browser one included. Its resources/ bitmaps are already
compressed PNG/EXR/BMP (14.1 MB, deflate saves 1%), and with them the
release wasm grew from 14.3 MB to 33.3 MB, past the 24 MiB gate in
packaging/web/package.sh that guards Cloudflare Pages' 25 MiB file cap.
The nightly Release dry run has failed on Web (wasm) since.

For wasm32 the formats build script now leaves resources/ out of the
embedded library and lists it as EXTERNAL_ASSETS. index.html copies
assets/sbs/resources to sbs/resources in the dist, and the web app
downloads those files at startup (in parallel, before the session is
created) and hands them to library::install, so library::read serves
them as before. A failed download is logged and surfaces as a missing
asset on the nodes that use it; startup goes on. Native builds still
embed everything.

* web: bound the startup download of the library resources

A response that sends headers and then stalls would keep download_library,
and with it the loading screen, pending for good. One AbortController now
covers every request and body, aborted after two minutes; whatever is still
pending fails, is logged, and startup goes on without it.
2026-11-16 22:12:24 +01:00