Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Guide: Fill layers, Mesh Maps and Material Recipes chapter; PBR viewport and new bake maps; CHANGELOG and What's New 0.10.6
islandmedf170f7a9d753
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a6d29d16..5a9c7210 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -19,7 +19,7 @@ All notable changes to SculptForge are listed here. The format followsSaved with the project (`viewport_shading mode=pbr environment=outdoor_sky exposure=0.5 tone_map=agx`).- Mesh Maps bake: **Tool > Bake** adds **Curvature** (convex edges bright, creases dark, from the surface's meancurvature at a set radius), **Thickness** (how far rays travel inside), **Position** (16-bit) and **ID** (a colour- per polygroup or per Part) to the normal, world normal, displacement, AO, cavity and colour maps. The source can+ per face group or per Part) to the normal, world normal, displacement, AO, cavity and colour maps. The source canbe the Part's own **top subdivision level** (baked onto its lowest level) or its **micro level** (onto its base),besides other Parts. UVs outside 0..1 bake as **UDIM tiles** (`name_normal.1001.png`, `1002`, ...). The bake runson a worker thread with progress and Cancel (`bake source=subdivision maps=normal,ao,curvature,thickness,position,id`).@@ -27,6 +27,18 @@ All notable changes to SculptForge are listed here. The format followstexture's own UVs and size, tile by tile on every core, for Fill layers to read. After sculpting, only the tilesnear the change are baked again, from a compact copy of the nearby triangles, and the result matches a full baketexel for texel (2K maps of an 82k-triangle Part: about 10 s in full, about 0.5 s for a local change).+- Fill layers: **Tool > Paint Layers > + Fill Layer** lays a material (colour, roughness, metallic, height) over the+ whole Part through a mask built from effects: **Edge Wear**, **Dirt**, **Gradient**, **Thickness** and **Light+ Direction** generators reading the Mesh Maps, **Noise** in 3D (no UV seams), a **Paint** mask painted with the+ Paint brush, **Levels**, **Blur**, **Invert** and **Fill**, each with its own settings and blend. Fill layers sit+ in the layer stack with paint layers, re-evaluate tile by tile when their settings, painted mask or the Mesh Maps+ change, undo like any edit and are saved with the project (format 7). With **Live** on, sculpting re-bakes only+ the Mesh Maps tiles near the stroke on a worker thread and the Fill layers follow the new form+ (`fill_layer generator=edge_wear color=#e0e0e8 metallic=1`, `mesh_maps action=live live=true`).+- Material Recipes: **Worn Metal**, **Painted Edges**, **Dirt and Dust** and **Rusted Iron**, stacks of Fill layers+ kept as small `.sfmaterial` text files, laid on a Part in one undoable step from **Tool > Paint Layers >+ Material Recipe**. Save your own from a Part's Fill layers (`material_recipe name=worn_metal`,+ `material_recipe action=save path=mine.sfmaterial`).## [0.10.5] - 2026-11-01### Added- **Radial symmetry** (#63): **R** in Transform > Symmetry and on the top shelf repeats strokes around the X, Y or Zdiff --git a/docs/guide/baking.md b/docs/guide/baking.mdindex 69facbc1..9278755e 100644--- a/docs/guide/baking.md+++ b/docs/guide/baking.md@@ -35,14 +35,35 @@ The maps go onto the **active** Part, so select the low-poly before baking.| Map | File | What it holds ||---|---|---|| **Normal (tangent)** | `<name>_normal.png` | The high-poly's surface direction relative to the low-poly, in tangent space. The map for game engines |-| **Normal (object)** | `<name>_normal_object.png` | The high-poly's normals in model space. For tools that want object-space maps |+| **Normal (object / world)** | `<name>_normal_object.png` | The high-poly's normals in model space (Parts have no transform of their own, so this is also the world normal). For tools that want object-space maps || **Displacement** | `<name>_displacement.png` and `.exr` | The distance from the low-poly to the high-poly along the low-poly's normal || **Ambient Occlusion** | `<name>_ao.png` | How much of the sky each point sees: darker in creases, folds and cavities || **Cavity** | `<name>_cavity.png` | The fine surface curvature: mid-grey where the surface is smooth, dark in cracks, light on ridges || **Colour** | `<name>_color.png` | The source's vertex paint, or its painted texture |+| **Curvature** | `<name>_curvature.png` | How the surface bends: mid-grey flat, brighter on convex edges and ridges, darker in creases. A bend of the **curvature radius** (2% of the model's size by default) is fully bright or dark. Drives edge wear |+| **Thickness** | `<name>_thickness.png` | How far rays travel through the high-poly before leaving it: dark where it is thin (ears, fins, blades). Drives translucency |+| **Position** | `<name>_position.png` (16-bit) | Each point's place in the bounding box, as red, green and blue. Drives gradients and noise without UV seams |+| **ID** | `<name>_id.png` | A flat colour per face group (or per Part, `id=parts`), to pick areas in other programs |`<name>` is the low-poly Part's name. Colour is skipped when the source has neither vertex paint nor a texture.+++### Bake from the Part's own levels++A Part with subdivision levels can bake its sculpted detail onto itself: choose **Own top subdivision level** as+the **Source**, and the top level is baked onto the lowest level's UVs (give the lowest level UVs first). A Part+with a micro level offers **Own micro level**, baked onto its base. No second Part, no matching: the levels share+their UVs.++### UDIM tiles++When the low-poly's UVs go beyond the 0..1 square (UDIM tiles, for example from the+[UV Editor](uv-editor.md)), every tile bakes as its own set of maps: `<name>_normal.1001.png`,+`<name>_normal.1002.png`, ... (1001 + u + 10 v, the usual numbering).++The same maps, baked on the texture's own UVs, feed [Fill layers](fill-layers.md) inside SculptForge.+### Tangent-space normal maps that look right everywhereSculptForge computes tangents with **MikkTSpace**, the same method Blender, Unreal Engine, Unity, Godot,@@ -108,7 +129,7 @@ on the same computer; for one on another computer, import the PNG by hand. See| Command | What it does ||---|---|-| `bake` | Bake onto the active Part and write the maps. Options: `source=all` or a Part name, `maps=normal,object_normal,displacement,ao,cavity,color` (or `all`), `size=2048` (512 to 8192, or `1k`...`8k`), `out=folder`, `name=prefix`, `front=0.02` and `rear=0.02` (fractions of the model's size, or `auto`), `samples=2`, `padding=8`, `ao_rays=48`, `ao_distance=0.05`, `green=opengl` or `directx`, `displacement_scale=` (world units at white), `exr=true` |+| `bake` | Bake onto the active Part and write the maps. Options: `source=all`, a Part name, `subdivision` or `micro`, `maps=normal,object_normal,displacement,ao,cavity,color,curvature,thickness,position,id` (or `all`), `udim=true`, `thickness_rays=24`, `thickness_distance=0.1`, `curvature_radius=0.02`, `id=polygroups` or `parts`, `size=2048` (512 to 8192, or `1k`...`8k`), `out=folder`, `name=prefix`, `front=0.02` and `rear=0.02` (fractions of the model's size, or `auto`), `samples=2`, `padding=8`, `ao_rays=48`, `ao_distance=0.05`, `green=opengl` or `directx`, `displacement_scale=` (world units at white), `exr=true` |For example, from the console or `sculptforge-cli`:diff --git a/docs/guide/fill-layers.md b/docs/guide/fill-layers.mdnew file mode 100644index 00000000..e8560546--- /dev/null+++ b/docs/guide/fill-layers.md@@ -0,0 +1,109 @@+# Fill layers, Mesh Maps and Material Recipes++A **Fill layer** lays a material over the whole Part, through a **mask** that you build from effects instead of+painting it by hand: worn paint on the edges, dirt in the crevices, dust on the surfaces that face up. The mask+reads the Part's **Mesh Maps** (its ambient occlusion, curvature, thickness and more, baked on its UVs), so the+wear lands where the form says it should, and it moves with the form: sculpt a new crease and the paint chips+along it a moment later. **Material Recipes** are ready-made stacks of Fill layers you can lay on any Part.++++Fill layers live in **Tool > Paint Layers** next to your paint layers, on a Part with a texture+([Texture painting](texture-painting.md)). Turn on **Material > Viewport Shading > PBR** to see the metal, the+roughness and the bumps as they will look in a game engine ([Material painting](pbr-painting.md#the-pbr-viewport)).++## Lay a Material Recipe++1. Give the Part UVs and a texture (**Tool > Texture Map > Auto UV**, then **New Texture**).+2. In **Tool > Paint Layers**, open **Material Recipe** and pick one:+ - **Worn Metal**: dull steel, polished bright on the edges, grime in the creases.+ - **Painted Edges**: painted metal with the paint chipped off its edges.+ - **Dirt and Dust**: dirt packed in the crevices and pale dust on top, to lay over any material.+ - **Rusted Iron**: dark iron with rust spreading from the crevices.+3. The recipe adds its Fill layers on top of your layers, turning on the material channels it needs. The first+ time, the Part's Mesh Maps are baked in the background (a progress bar shows); the layers fill in when they+ are ready.++Every layer of the recipe stays editable, and **Undo** removes the whole recipe in one step.++## Make a Fill layer++**+ Fill Layer** adds a Fill layer in the current colour, covering everything. With it active, the panel shows:++- **Colour** and the channels it lays down (**BC** base colour, **R** roughness, **M** metallic, **H** height),+ with a slider for each value.+- **Mask**: the effects, top to bottom. Each one has a switch, a remove button and its own settings; from the+ second one on, a blend mode says how it combines with the effects above it (multiply, add, subtract, min,+ max, screen, replace).+- **Add mask effect** adds one at the bottom.++++### Mask effects++| Effect | What it does | Reads |+| --- | --- | --- |+| **Edge Wear** | Convex edges and ridges, where things get rubbed and chipped | Curvature |+| **Dirt** | Crevices, creases and corners, where dirt collects | Ambient occlusion, curvature |+| **Gradient** | Along a direction across the Part (e.g. darker toward the bottom) | Position |+| **Thickness** | Thin parts: ears, fins, edges of a blade | Thickness |+| **Light Direction** | Surfaces facing a direction: dust and snow on top, moss on one side | World normal |+| **Noise** | Fractal noise in 3D, so it has no seams at UV island borders | Position |+| **Paint** | A mask you paint by hand (below) | |+| **Levels** | Input and output range and gamma of the mask so far | |+| **Blur** | Softens the mask so far (within UV islands only) | |+| **Invert** | Flips the mask so far | |+| **Fill** | A constant value | |++The generators (the first five) have the same settings: **Level** (how much of the surface they cover),+**Softness** (how wide the transition is), **Break-up** (how much noise roughens the edge of the mask) and+**Noise size** (as a fraction of the Part's size).++### Paint a mask++Add a **Paint** effect, keep the Fill layer active and paint on the model with the **Paint** brush: you paint+the layer's mask (white adds, <kbd>Alt</kbd> removes), and the layer updates as you paint. Strokes undo like+any stroke. Combine it with generators: for example **Edge Wear**, then **Paint** with **Subtract** to keep an+edge clean by hand.++## Mesh Maps++Mesh Maps are the Part's own surface, baked on its UVs at its texture's size: **ambient occlusion**,+**curvature** (convex edges bright, creases dark), **thickness**, **position** (16-bit), **world normal** and+**ID** (a colour per face group). Fill layers read them; you don't have to look at them.++The line under the Fill buttons says what is baked. **Bake** bakes them again in full (after changing the UVs,+for example: that happens by itself when a Fill layer needs them). Baking runs on every core in the background.++**Live** (on by default): after each stroke, only the tiles of the texture near what you sculpted are baked+again, from the triangles within reach of the change, and the Fill layers re-evaluate those tiles. The result is+the same as baking everything again (it is tested texel for texel), in a fraction of the time: on a test Part+with 82,000 triangles and 2K maps, a full bake takes about 10 seconds and a local change about half a second.+Turn **Live** off to keep the maps as they are while you sculpt.++To bake maps as image files for other programs, use **Tool > Bake** ([Baking](baking.md)): it also bakes from a+Part's top subdivision level onto its lowest, and to UDIM tiles.++## Save your own recipe++A recipe is a small text file (`.sfmaterial`) listing the Fill layers, their materials and masks. Save the+active Part's Fill layers with `material_recipe action=save name="My Rust" path=my_rust.sfmaterial` and lay it on+another Part with `material_recipe path=my_rust.sfmaterial`. The built-in recipes are files of the same kind in+the source code's `assets/materials` folder.++## Projects++Fill layers are saved with the project (format 7): their settings and painted masks, and their last result, so+older versions open the project with the layers showing as ordinary paint layers. Mesh Maps are not saved; they+are baked again when a Fill layer needs them.++## Commands++| Command | What it does |+| --- | --- |+| `material_recipe name=worn_metal` | Lay a recipe on the active Part (`action=list`, `action=save path=...`, `path=file`) |+| `fill_layer generator=edge_wear color=#e0e0e8 metallic=1 level=0.6` | Add a Fill layer (`action=add` is the default) |+| `fill_layer action=effect generator=dirt blend=add` | Add a mask effect to the active Fill layer (`effect=1 level=0.4` edits one) |+| `fill_layer action=remove_effect effect=1` | Remove a mask effect |+| `fill_layer action=set roughness=0.3` | Change the layer's material |+| `mesh_maps` | Bake the Mesh Maps now (`action=info`, `action=clear`, `action=live live=false`) |diff --git a/docs/guide/images/bake-mesh-maps.jpg b/docs/guide/images/bake-mesh-maps.jpgnew file mode 100644index 00000000..f5a510a7Binary files /dev/null and b/docs/guide/images/bake-mesh-maps.jpg differdiff --git a/docs/guide/images/fill-layer-panel.jpg b/docs/guide/images/fill-layer-panel.jpgnew file mode 100644index 00000000..192f4a37Binary files /dev/null and b/docs/guide/images/fill-layer-panel.jpg differdiff --git a/docs/guide/images/fill-painted-edges.jpg b/docs/guide/images/fill-painted-edges.jpgnew file mode 100644index 00000000..8b4bcb0bBinary files /dev/null and b/docs/guide/images/fill-painted-edges.jpg differdiff --git a/docs/guide/images/pbr-environment.jpg b/docs/guide/images/pbr-environment.jpgnew file mode 100644index 00000000..9367c055Binary files /dev/null and b/docs/guide/images/pbr-environment.jpg differdiff --git a/docs/guide/images/pbr-viewport.jpg b/docs/guide/images/pbr-viewport.jpgnew file mode 100644index 00000000..691a2bf6Binary files /dev/null and b/docs/guide/images/pbr-viewport.jpg differdiff --git a/docs/guide/index.md b/docs/guide/index.mdindex 0c3524fe..ddd4f188 100644--- a/docs/guide/index.md+++ b/docs/guide/index.md@@ -33,6 +33,7 @@ You can read it inside SculptForge (**Help > User Guide**, or <kbd>Shift</kbd>+<15. [Texture painting](texture-painting.md)16. [UV Editor](uv-editor.md)17. [Material painting (PBR)](pbr-painting.md)+ - [Fill layers, Mesh Maps and Material Recipes](fill-layers.md)18. [Sculpt layers and blend shapes](layers.md)19. [Facial shapes and live face](facial-shapes.md)20. [Subdivision levels](subdivision-levels.md)diff --git a/docs/guide/pbr-painting.md b/docs/guide/pbr-painting.mdindex c2c0be45..e7c32b37 100644--- a/docs/guide/pbr-painting.md+++ b/docs/guide/pbr-painting.md@@ -69,6 +69,32 @@ Paint Layers**, each layer row gets a row of **channel chips** (BC, R, M, N, H,Merge down and Flatten keep the look of every channel. Duplicate copies a layer with its channels.+## The PBR viewport++**Material > Viewport Shading** switches the view between **Lit Sphere** (the default, made for reading forms+while sculpting) and **PBR**, which lights the material channels the way game engines and renderers do: rough+surfaces spread the light, metals reflect the environment in their own colour, painted height and normals catch+the light, emissive glows.++++- **Environment**: **Studio** (made by SculptForge), **Photo Studio**, **Small Studio** and **Outdoor Sky** (free+ CC0 photographs from Poly Haven). HDR images (`.hdr`, `.exr`) in the folders listed in the+ `SCULPTFORGE_HDRI_PATH` environment variable are added to the list.+- **Exposure** in stops, **Rotation** of the environment, and the **Tone map**: ACES (filmic contrast), AgX+ (softer, keeps bright colours from going flat), Reinhard or None.+- **Show environment** puts the environment behind the model, with a **Blur**.+- **Roughness** and **Metallic** apply to Parts without a material texture (their colour comes from vertex paint+ or the base colour), so you can judge a sculpt as metal or clay too.+- **Cavity** darkens the sculpt's creases a little so fine detail reads under even light; 0 is plain PBR.++++The view stays as fast as Lit Sphere: lighting is precomputed per environment (on a worker thread when you+switch), and only the pixels on screen pay for it. A 20.9-million-triangle Part draws in about 8 ms in PBR next+to about 6 ms with Lit Sphere on an Apple M1 Pro. The settings are saved with the project+(`viewport_shading mode=pbr environment=outdoor_sky exposure=0.5 tone_map=agx`).+## See one channel on its own**Tool > Texture Map > Normal view** opens a list: pick **Solo Roughness** (or any enabled channel) and the model@@ -102,13 +128,13 @@ material channels is still saved as format 6, so older versions keep opening it.| `texture_layer_channel channel=normal blend=normal_combine` | A layer's channel settings (`enabled`, `blend`, `opacity`; `layer` or `index`) || `channel_view channel=roughness` | Solo a channel in the viewport (`off` to go back) || `export_maps preset=unreal folder=...` | Write the maps ([Export presets](export-presets.md)) |+| `viewport_shading mode=pbr environment=photo_studio exposure=0.3` | The PBR viewport (`mode=lit_sphere` to go back; `rotation`, `tone_map`, `background`, `blur`, `roughness`, `metallic`, `cavity`) |## Limitations-- The viewport shows one channel at a time (solo view); a lit PBR preview with environment lighting is planned.-- Fill layers, generators (edge wear, dirt), mesh-map bakes as layer inputs, filters and material recipes are- planned; today the stack is paint layers.-- One texture per Part (no UDIM tiles yet).+- Fill layers, their mask generators, Mesh Maps and Material Recipes have their own chapter:+ [Fill layers, Mesh Maps and Material Recipes](fill-layers.md).+- One texture per Part (UDIM tiles bake as files, [Baking](baking.md), but paint goes into one texture).- Memory: colour, roughness, metallic, height and AO on Base plus three layers, each with a few big strokes,take about 370 MB at 4K and 1.5 GB at 8K (most of it the colour layers); a layer painted everywhere adds about200 MB of channels at 4K and 800 MB at 8K. Preferences > Performance shows the numbers for your scene. Paint atdiff --git a/docs/guide/whats-new.md b/docs/guide/whats-new.mdindex ae4fd1d7..7e4c8b04 100644--- a/docs/guide/whats-new.md+++ b/docs/guide/whats-new.md@@ -5,6 +5,24 @@ chapter opens by itself the first time you start a new version; you can always f**Help > What's New**. Every detail is in the[changelog](https://github.com/islandmed/SculptForge/blob/main/CHANGELOG.md).+## Version 0.10.6++- **PBR viewport** (**Material > Viewport Shading > PBR**): see the texture's material as a game engine shows it,+ lit by an environment: Studio, Photo Studio, Small Studio or Outdoor Sky, with exposure, rotation, the+ environment behind the model and a choice of tone map. Painted height and normals catch the light. It stays as+ fast as Lit Sphere on a 20-million-triangle Part. See [Material painting](pbr-painting.md#the-pbr-viewport).+- **Fill layers** (**Tool > Paint Layers > + Fill Layer**): lay a material over the whole Part through a mask of+ effects (edge wear, dirt, gradient, thickness, light direction, 3D noise, a painted mask, levels, blur) instead+ of painting it by hand. Change it any time. See [Fill layers](fill-layers.md).+- **Wear that follows the sculpt**: Fill layers read the Part's Mesh Maps (occlusion, curvature, thickness and+ more), and after each stroke only the part of the maps near the stroke is baked again in the background, so+ chipped paint and dirt move with the form while you sculpt.+- **Material Recipes**: Worn Metal, Painted Edges, Dirt and Dust and Rusted Iron in one click, and your own saved+ as small files.+- **More maps from Tool > Bake**: curvature, thickness, position and ID; bake a Part's top subdivision level (or+ micro level) onto its lowest level without a second Part; UDIM tiles bake as one set of files per tile. See+ [Baking](baking.md).+## Version 0.10.5- **Selection sets** (**Tool > Selection Sets**): store as many named snapshots of a Part's mask, face groups,