Skip to content

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

Merged
bearinmindcat merged 4 commits into
bearcraft-studios:mainfrom
lashmanRB:brush-preview-fidelity
Dec 3, 2026
Merged

bearinmindcat merged 4 commits into
bearcraft-studios: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.

bearinmindcat added a commit that referenced this pull request Nov 20, 2026
…ws use, and files carry them at 1060 x 324 (#309)


Co-authored-by: lashmanRB <lashman@robotbrush.com>
bearinmindcat added a commit that referenced this pull request Nov 20, 2026
…oat, and their lift follows what the stamps laid (#309)


Co-authored-by: lashmanRB <lashman@robotbrush.com>
bearinmindcat added a commit that referenced this pull request Nov 20, 2026
… the studio pad keeps its firmer rim (#309)


Co-authored-by: lashmanRB <lashman@robotbrush.com>
@bearinmindcat

Copy link
Copy Markdown
Contributor

0c3913f 53b430f 8ff5e8a

bearinmindcat added a commit that referenced this pull request Nov 22, 2026
…ws use, and files carry them at 1060 x 324 (#309)

Co-authored-by: lashmanRB <lashman@robotbrush.com>
bearinmindcat added a commit that referenced this pull request Nov 22, 2026
…ing stops at the least half float (#309)

Co-authored-by: lashmanRB <lashman@robotbrush.com>
bearinmindcat added a commit that referenced this pull request Nov 22, 2026
… holds its lift to what its stamps laid (#309)

Co-authored-by: lashmanRB <lashman@robotbrush.com>
bearinmindcat added a commit that referenced this pull request Nov 22, 2026
… the studio pad keeps its firmer rim (#309)

Co-authored-by: lashmanRB <lashman@robotbrush.com>
@lashmanRB
lashmanRB force-pushed the brush-preview-fidelity branch from 20c5edd to 340c23a Compare December 2, 2026 23:01
@lashmanRB

Copy link
Copy Markdown
Contributor Author

Stock textures

Rebased on upstream main (528f881e). Stock and imported brushes now resolve 288 recreated textures by name or catalog key, including the corrected Water Flicks, hard tip, and OSB images.

The lookup covers shapes, grains, material maps, and secondary brushes. It applies the brush's stored inversion and uses the grain's source width to set the repeat size. Existing libraries pick up the mapped artwork when reopened. The renderer and preset values come directly from upstream.

Brush previews

The Brush Library uses the Quick Look PNG supplied with a brush or pack, including when a plugin draws the brush. The release also bundles 598 stock previews so the library can show them on first launch without drawing them.

The library draws a new preview when the supplied image is missing or unreadable, or when a Studio edit changes the brush and is saved. Cancelling an edit or saving with no net change keeps the existing preview. This includes the preview reuse work from #395.

Verification

  • Matched all 291 artwork files byte-for-byte against the original PR and checked all 288 texture mappings.
  • Loaded all 598 stock previews without drawing and tested brush pack imports, plugin previews, and Studio save and cancel.
  • 98 focused Rust tests passed on Windows. The broader parallel run was stopped after GPU failures.
  • With the upstream preset values, the recreated Dry Brush sample covers about 16% fewer pixels than its older reference.

@bearinmindcat
bearinmindcat merged commit 0efaf44 into bearcraft-studios:main Dec 3, 2026
2 checks passed
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.

2 participants