Skip to content

Improve brush rendering and ship full-resolution stock artwork - #309

Open
lashmanRB wants to merge 13 commits into
artcraft-android:mainfrom
lashmanRB:brush-preview-fidelity
Open

lashmanRB wants to merge 13 commits into
artcraft-android:mainfrom
lashmanRB:brush-preview-fidelity

Conversation

@lashmanRB

@lashmanRB lashmanRB commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Brush rendering and stock artwork

This updates how imported brushes build opacity, apply grain and combine a second brush. It also tunes 13 presets in the new stock library against their saved sample strokes.

The app loads 288 remade brush-head and grain images at the original dimensions. Their source artwork is in assets/stock-sources/. Three full-resolution variants in assets/stock/ preserve the water-flicks black level, the chipboard midtones and the hard tip's clean edge. The stock catalog keeps the encoded artwork available and decodes full-size pixels as brushes use them.

Blotch previously placed its full-pressure preview stamp completely off the canvas. Its pressure curves now bring a firm stamp back under the pen while retaining light-pressure scatter. Mosaic, Kerguelen and Toscana have adjusted grain scales so the larger images retain the intended repeat sizes.

Verification

  • On Windows, all 1,971 active Rust workspace tests passed, including 1,042 core tests and the Vulkan/Direct3D comparison using the remade grains.
  • Matched all 288 source files byte-for-byte to the contributed artwork. Decoded every registered texture and checked its width and height against its source.
  • Compared the 13 tuned presets at 327 × 100 with a fixed starting angle, and rendered 214 stock-library previews at the dimensions of their saved references.
  • Verified that reopening an older library refreshes its named stock shapes, grains and materials, including both polarities of the corrected hard tip.

Integration

Merged upstream main at 16a2da58 into the reviewed branch. The merge preserves the PR's brush settings, second-brush behavior, grain sampling, wet-edge pooling and full-resolution artwork. It also incorporates upstream's GPU fallback and device-loss handling. The 21 downloadable Legacy sets now match the app's exports, including all 204 previews.

All 214 new-stock presets rendered at their reference sizes. At 327 × 100 with the initial rotation held constant, all 13 tuned presets matched the reviewed PR exactly. Of all 214 presets, 213 matched exactly. Cinnamon differed by one level in one pixel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant