Commit Graph
89 Commits
Author SHA1 Message Date
chasse20 a96696b1e0 Preserve caller textures for value and pattern sampling inside graph instances 2026-11-21 16:46:26 -05:00
chasse20 b54f750f29 Match grayscale Uniform precision to the width and source of its color 2026-11-21 15:32:53 -05:00
chasse20 82d5fcaa3f Match selected texture sampling levels and tile background quantization 2026-11-21 14:20:01 -05:00
chasse20 50883356b8 Match half storage for parameter-sized pattern backgrounds 2026-11-21 12:51:54 -05:00
chasse20 32e1beb1db Preserve the base level when filtering resized bitmap inputs 2026-11-21 11:30:03 -05:00
chasse20 4da6f86585 Respect the inherited pixel ratio in rectangular directional blurs 2026-11-21 05:49:45 -05:00
chasse20 96db706116 Read bitmap channels using their file transfer by default 2026-11-21 05:22:56 -05:00
chasse20 c2e44acd3e Preserve source channel depth for odd-sized color bitmap resources 2026-11-21 04:10:56 -05:00
chasse20 fff40a89b6 Preserve source precision when resizing odd grayscale bitmaps 2026-11-21 03:12:27 -05:00
chasse20 7cdacdc30b Resize grayscale bitmap resources through stored levels 2026-11-21 02:48:09 -05:00
chasse20 4be6490a73 Blend singular grayscale pattern opacity at the stamp 2026-11-21 00:26:02 -05:00
chasse20 4421f7a926 Preserve connectable function arguments across package saves 2026-11-20 03:51:32 -05:00
chasse20 f5fc386f0a Store grayscale gradient stops and preserve scalar level precision 2026-11-19 17:15:58 -05:00
chasse20 6c94cfe839 Apply signed pixel sizes to box blur on each axis 2026-11-19 16:42:39 -05:00
chasse20 2bd6e4facb Sample gradient warps from one-sided differences at stored precision 2026-11-19 15:57:40 -05:00
chasse20 df92c750cf Filter stored inputs and average grayscale Levels controls 2026-11-19 14:36:43 -05:00
chasse20 aebb4813ae Preserve folded scalar integer semantics through graph instances 2026-11-19 13:44:08 -05:00
chasse20 f003a0848c Honor directional warp tiling and resample unequal inputs in stored levels 2026-11-19 08:23:39 -05:00
chasse20 25ddf9ef5a Retain the sampling depth of bound integer bitmaps 2026-11-19 04:35:46 -05:00
chasse20 69b30f6c64 Preserve integer source precision and enlargement centers in bitmap filtering 2026-11-19 04:13:39 -05:00
chasse20 5e69345dcd Round resized float bitmap samples at the half output boundary 2026-11-19 03:41:26 -05:00
chasse20 11ecfe02d5 Preserve PNG sample depth when filtering non-power-of-two graph inputs 2026-11-19 02:50:20 -05:00
chasse20 2cd58b6f11 Filter non-power-of-two external float images at their stored precision 2026-11-19 02:32:04 -05:00
chasse20 11e4774f1e Apply physical pixel size to one-sided emboss lighting 2026-11-19 01:53:15 -05:00
chasse20 9d3de5fda6 Keep the stored property when a direct input link is missing 2026-11-18 22:14:56 -05:00
chasse20 0a19145aed Round integer value ports to their measured storage precision 2026-11-18 22:14:36 -05:00
chasse20 d98d3fc921 Preserve half blend precision across output size expressions 2026-11-18 21:21:15 -05:00
chasse20 00d8a9d188 Honor distance output channels, axis wrapping and strict source cutoffs 2026-11-18 19:09:42 -05:00
chasse20 2e883315b9 Preserve signed size exponents through one-texel reductions 2026-11-18 16:35:19 -05:00
chasse20 83516a4bfa Normalize integer Levels endpoints and preserve scalar channel alpha 2026-11-18 12:54:05 -05:00
chasse20 f4d83f8730 Use the parent canvas for pixel processors that sample smaller textures 2026-11-18 09:02:41 -05:00
chasse20 0407d8c5bf Sample value functions at full texture coordinate precision 2026-11-18 07:42:32 -05:00
chasse20 272b12b507 Use measured value processor scope for coordinate roots 2026-11-18 06:59:26 -05:00
chasse20 1f771f5989 Sample wired graph textures at their original resolution 2026-11-18 06:05:41 -05:00
chasse20 df9c43dda4 Filter bound inputs at their source storage precision 2026-11-18 05:35:30 -05:00
chasse20 a95edb51d7 Match stored-precision filtering and transform matte edges 2026-11-18 04:36:16 -05:00
chasse20 3e0d3a3b64 Preserve root graph sizes and per-port instance precision 2026-11-18 04:27:51 -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 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
dotCooCoo 2ee4537c65 Merge main into feat/image-craft-texture 2026-11-16 16:45:08 -08: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
chasse20 04d1b3889f Fix atomic filters, channel selection and backgrounds 2026-11-16 03:32:03 -05:00
dotCooCoo bee8c3feb8 Merge main into feat/image-craft-texture
main's per-axis wrapping, stored sampling and integer-sampling flag now
come from craft-texture (storytold/craft-libs#1709). Every craft-libs
dependency is pinned to that pull request's head, 92fb3fa8.
2026-11-15 10:48:09 -08:00
dotCooCoo 9744afda83 Image: use craft-texture's image planes and sampling
Replace the local materialcraft-image crate with craft-texture from
storytold/craft-libs (storytold/craft-libs#1216), with its parallel
feature on. engine re-exports it as `engine::image`. Every craft-libs
dependency moves to the same revision, 29fb8f8e.

The image fields are private in craft-texture. Callers read them through
width(), height(), kind() and data(), and decoders, the pixel processor
and the pattern raster build images with Image::from_data, which rejects
an empty size or a buffer of the wrong length with an error.

This changes some pixels at the edges of the float range:
- a repeated sample far from the origin keeps its phase instead of
  stopping at a clamped texel position
- generate_uv spreads its coordinates over the clamped size
- bilinear samples and box downsampling of values near f32::MAX stay
  finite
- linear_to_srgb(NaN) returns NaN instead of -0.055

The box blur's running sum in nodes/src/ops.rs now uses f64 as well,
so a blur of values near f32::MAX no longer overflows.

#225 fixes the generate_uv fault in the local crate; craft-texture
includes that fix.
2026-11-14 15:59:55 -08:00
chasse20 1a7225c8c2 Auto: Reuse SBS parsing and fix stale preview cache failures
Integrate main's read limits and preserve the font, evaluator, converter,
and measured preview repairs. Complete the scoped type, comment, and
spacing cleanup.

Reuse one validated XML document for library layout and graph reads.
Associate cache maintenance completion with its submitted revision so
old failures cannot consume new settings or clear requests.
2026-11-14 22:52:26 +00:00
chasse20 2318d25a3a Improve clean-room SBS evaluation parity 2026-11-13 11:46:15 -05:00
chasse20 cc2437c0bd Bound render caches and cancel stale library previews
Cap retained output and decoded-image data, bypass oversized entries, and give thumbnail cooks smaller cache budgets. Limit visible preview work to one cancellable cook, yield to foreground edits, and evict old GPU thumbnails.

Cover cache eviction, image and library lifetimes, cancellation, and repeated preview rendering with regression checks.
2026-11-12 19:19:43 -05:00
chasse20 46802a44fc Merge latest SBS branch improvements
Preserve resource and rendering fixes alongside updated library previews, node UI, and function input support. Reconcile evaluator state and loop caching while retaining both sets of regression tests.
2026-11-12 18:52:32 -05:00
chasse20 3432f14b53 Fix SBS resource resolution and shared graph rendering
Use the supplied attributed resources, replace legacy surface and font references on import, and keep resource credits outside SBS files.

Correct function evaluation state, FX-Map roughness and regions, primitive rendering, gradient handling, and scalar luminosity validation. Add regression coverage for resource import and shared rendering behavior.
2026-11-12 18:46:34 -05:00
PiJellyPin cf0a32dd1c Fixing node pairity
loading images to slow
2026-11-13 00:12:41 +01:00