Commit Graph
8 Commits
Author SHA1 Message Date
JonRC 3a18128ec4 Headless: rank the adapters a name matches, keep the environment map out of render targets
From review on #192:
- WGPU_ADAPTER_NAME took the first adapter whose name matched. Several
  can match (one GPU on two backends, two GPUs of a vendor, an empty
  name), so rank them as the desktop selector does: hardware first, then
  WGPU_POWER_PREF, then native backends before OpenGL.
- The limits test only checked a clone. It now asks wgpu's noop backend,
  reporting WebGL2 limits, for the device Headless::new requests.
- The environment map was created as a render target, which needs float
  color buffers that GLES and WebGL2 may lack. It is only uploaded and
  sampled.
- The no-GPU CLI test clears inherited WGPU_ADAPTER_NAME/WGPU_POWER_PREF
  and checks that --samples renders under the same backend.
2026-11-09 10:34:19 -03:00
JonRC cda9590138 Headless render on adapters without compute shaders, and the wgpu env vars
The headless device asked for Limits::default(), which needs compute
shaders, so the viewport render failed on WSL2's GL driver and other
WebGL2-class adapters. It now asks for the adapter's own limits: the
viewport draws with fragment passes only, and the GPU path tracer checks
the device's limits itself.

headless::adapter() builds the instance from wgpu's environment and
honours WGPU_ADAPTER_NAME and WGPU_POWER_PREF (default high) like the
desktop app. GPU baking uses it too. With no adapter at all, the render
error says that path tracing needs no GPU.

Fixes #190
2026-11-02 23:55:08 -03:00
bflatastic 1fc73bc87d Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	apps/texturecraft-cli/tests/cli.rs
2026-11-02 12:33:55 +07:00
bflatastic c4353cc8d0 CLI: --automation-read-root / --automation-write-root for mcp and serve
The spelling the other crafting apps use; the same as --read-root /
--write-root.

Fixes #57.
2026-11-02 05:41:00 +07:00
test-bit-sys f0242058f2 cli: support builtin:<id> in info command (#63) 2026-11-01 23:06:43 +01:00
bflatastic 4a259e7270 New README showcase renders: a storm lantern and a rangefinder camera
Replace the crate and material-ball renders in Made in TextureCraft with two
original props, modelled procedurally and textured with TextureCraft's own
materials, masks and mesh-map generators, path traced at 2048 samples.

texturecraft-cli render gains --camera <name> to look through a camera saved
in the project (camera.add), so a render can use an art-directed framing
(distance, target, field of view) rather than only yaw and pitch.
2026-11-02 01:08:59 +07:00
bflatasticandClaude Opus 5.5 81d3f5c14c GPU path tracing, depth of field, cameras, glass, filters and decals
- Rendering mode traces on the GPU (compute shaders, ~25x the CPU tracer) with CPU fallback;
  CLI/MCP render --samples uses the GPU unless --cpu
- Depth of field in the viewport and the path tracer; multiple cameras with glTF import;
  transmission/IOR, coat normal and screen-space subsurface blur; exact 8-bit normal decode
- Filter library (18 filters incl. warp, color balance, gradient map, posterize, MatFinish)
  with a Filters shelf tab; geometry decals; clone from the current layer; anchors inside a
  content stack; instances across texture-set resolutions; drag saved smart materials

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:06:22 +07:00
bflatasticandClaude Opus 5.5 ec859420d5 TextureCraft: clean-room 3D texture painting in pure Rust
An open-source, clean-room implementation of a Substance 3D Painter-style texturing
workflow, written in pure Rust with egui and wgpu.

- Layer stack with 32 blend modes, masks, generators, content effects and anchor points
- Painting, projection, smudge, clone, path, lasso fill, particle brush and quick mask
- 43 procedural materials, 17 smart materials and 10 smart masks
- Mesh map baking with high-poly, cage and match-by-name support
- PBR viewport with HDR environments, TAA and a path-traced Rendering mode
- glTF, FBX, COLLADA, OBJ, PLY and STL import; texture export presets; OBJ and GLB export
- Dockable Painter-style UI, shortcut editor, web build, MCP server and CLI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 01:33:13 +07:00