- Folders are sent as pass-through groups. TextureCraft folders blend
their children with the layers below and mix the result in by their
opacity whatever their mode, so an isolated Normal group rendered
Multiply children differently. A new or changed group blend mode on
the way back only gets a note; opacity is still applied.
- The PSD reader charges a pixel record's interleaved image against the
decode budget, so a record with a huge rectangle and no channels is
refused instead of allocating gigabytes.
- Undo and redo keep the project's next layer id at its highest value,
so a layer made after undoing a PhotoCraft update can't take an id
the hand-off record still names.
- The layer row offers the channel picker for a paint layer with no
channel on even when the displayed channel is the one holding its
pixels.
A save no longer flattens each channel into a "PhotoCraft: <channel>"
fill. The stack now follows the document's structure:
- Every sent node carries a layer id (from 0x40000000; PhotoCraft keeps
ids across saves) and the send records what it stands for and a
fingerprint of its mask and pixels, so a save is compared node by node.
- Sent folders and layers keep their identity; renames, visibility,
order, masks (as a painted mask), blending and removals follow the
document. A repainted channel becomes that channel's paint, turning a
procedural layer into a paint layer that keeps its other channels.
- New groups become folders and new pixel layers become paint layers in
the channel their name says, matched in any case and spacing or by a
common name (Albedo, Bump, Metalness, ...). "Base Color" was missed
before because only the exact label matched.
- A layer whose name says no channel comes in with no channel on; the
new layer.assignChannel command, offered from a warning marker on the
layer row, gives it one, converting the painting when needed.
The PSD reader now returns layer ids, and the writer accepts them.
The hand-off now writes one 16-bit PSD per texture set instead of one
OpenRaster file per channel, so every map is in one document and a mask
edited once shapes all of them:
- Folders become groups; every layer becomes a pass-through group with
its real mask as the group's editable layer mask, holding one pixel
layer per channel (Base color, Roughness, ...) with the channel's
blend mode and opacity.
- One layer comp per channel shows only that channel's layers.
- When PhotoCraft saves, every channel is recomposited from the saved
layers with TextureCraft's blend math and shown through
`PhotoCraft: <channel>` fills, all in one undo step.
The PSD reader and writer (formats::psd) are written from the public
file format specification. OpenRaster stays available as format "ora".
compose gains flatten_layer_masked_apart, which keeps a layer's content
and mask apart.
File > Send layers to PhotoCraft (file.sendToPhotoCraft) writes one
layered .ora per texture set and channel and opens them in PhotoCraft.
Each layer is rendered alone (fill sources, generators, filters and
content effects times its mask), so the mask becomes its transparency;
folders become groups with their visibility, opacity and blend mode.
Each sent file is a link: when PhotoCraft saves it, its merged image
becomes the source of a "PhotoCraft: <channel>" fill at the top of the
set, one undo step per save. photocraft.links, photocraft.sync and
photocraft.unlink drive the links; session.inspect lists them.
Refs #385
Merge upstream main into the branch. The streamed bake now returns the same Arc buffers it handed to the preview, and the document stores those, so a preview never holds a second copy of a map. A cancel leaves the set being baked as it was; sets that finished earlier stay applied.
TextureCraft is updated only through the launcher, so a copy downloaded
directly is never told about a new version. The desktop app now checks
GitHub releases at start and from Help > Check for Updates, through
craft-update at craft-libs 1b34eba4. A run with --control skips the check
at start. A ready update installs when the app closes, and it waits for
unsaved changes, a stroke, a bake or a resize. The update prompt and the
modal result window hold the keyboard, so shortcuts do not act on the
project behind them. The web build is unchanged.
textureSet.meshMap.import takes its paths in files[].path, which
authorize_command did not look at, so a control client could import an
image from outside --read-root. Treat a path or dir in any files entry
like a top-level one, and document that automation imports baked maps
through resource_import plus textureSet.meshMap.set.
New project > Advanced settings gets the project's normal map format and
Import baked maps: Add lists image files, and Create imports them with the
new textureSet.meshMap.import command, which sets each file as the mesh map
of the texture set and slot its name names (Body_ambient_occlusion.png,
Body_normal.1001.png) in one undo step and reports the files it left out.
A bake started in the app bakes the set's maps one after another (BakeTask::run_streaming, one bake per map, same pixels as a single bake) and streams each finished map from the worker thread. One map is installed per UI poll into the session's bake preview (not the document); the 3D view follows the newest map raw on the model, with maps and sets not baked yet shown neutral, and the bake bar names the stage. The bake bar picks Follow Newest Map, a finished map or Material. The previous view mode comes back when the bake ends, is cancelled or Bake mode is left; painting is paused while a bake is shown. bake.preview, ui.bake.start and ui.bake.cancel expose it on the control channel. New strings are translated in every shipped language.
Lay bake mode out as texture sets over a Mesh Map Bakers list, then
Common Settings | Mesh Map Settings tabs, with the log under both
columns. A row's checkbox enables a map for baking; clicking the row
selects it, and Mesh Map Settings shows only the selected map behind a
texture set / map breadcrumb with dropdowns. Selecting never changes
what bakes.
Saved bake docks from before this layout, or that cannot be read, load
as the bake layout instead of the painting default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saved cameras (Project.cameras) already act as bookmarks; add camera.bookmark1..9 commands,
a short viewport glide when going to a camera from the UI, a test and a control-protocol section.
63 -> 72 materials. Cobblestone uses rounded cells with sunken joints, gravel
fine Voronoi stones, plaster a soft troweled tooth; linen a coarse weave, wool
and moss a soft sheen.
A pen lifts reporting no pressure, and a tap paints on that frame, so a tap
painted at full pressure. The release now keeps the pen's contact pressure (a
touch without pressure, such as a finger, starts fresh).
Browsers report pen pressure only for pens that send touch events; desktop
browsers deliver pens as a mouse, so the docs say so.
A UV tile with a lower resolution than its atlas block fills the block's
corner, so it has fewer texels per UV unit. Neighbourhood filters (blur,
sharpen, warps, bevel, glow, ...) and height-to-normal slopes used the block's
texel density for every tile, so such a tile blurred twice as wide and showed
twice as steep slopes in UV space.
TextureSet::block_scales gives each block's share; the compositor filters each
block at its tile's radius, texture export and the CPU path tracer scale the
slope by it, and the display packs it into the Extra texture's alpha for the
viewport and GPU path tracer shaders (parallax too).
The 2D view painted at full pressure whatever the pen reported; it now reads
the same touch force as the 3D view. Docs say where pen pressure works today
(Windows Ink and the browser) and that Linux and macOS pens arrive as a mouse
until the windowing layer reports them.
layer.add.image read the projection params only when `projection` was
given, so an offset or rotation alone was dropped. The features list no
longer promises a cylindrical offset.
Flipping every fill image on a normal channel in a DirectX project
would also flip the OpenGL maps MaterialX import puts there, and change
how existing DirectX projects look. Fill images read as before; the
setting covers mesh map images (converted when set, so the tooltip
says to set them again) and the export default.
A fill's properties showed only its projection and scale, and
layer.fill.projection rebuilt the projection from its params, so
changing the scale reset a rotation set before and no offset could be
set at all. The command now changes only the fields it is given
(scale, also per axis; rotation; offset; sharpness; axis) and keeps the
rest while the kind stays the same. Properties show the UV rotation and
offset, the tri-planar blend sharpness, and the axis and world offset
of planar and cylindrical projections.
The project's normal map format (OpenGL or DirectX) could only be set
by command or a template, and fill images on a normal channel were
always read as OpenGL, so a DirectX map's detail came out inverted.
Texture Set Settings now has a Normal map format row, and a fill's
image on a normal channel is read in that format, as mesh map images
already were. A change of format recomposites the sets.
Autosaves, smart materials, brush and export presets, project templates
and UI layouts always went to Documents/TextureCraft, which fills the
system drive. Settings > Folders > Data folder points them anywhere;
the choice applies on restart, and an export folder still at its
default follows it.
Refs #105.