Updated wiki about Auto UV and Auto Retopo

This commit is contained in:
Bruno Fargnoli 2026-07-15 17:53:55 +02:00
parent 670d8d59f8
commit e6a82adb94
2 changed files with 68 additions and 51 deletions

View file

@ -13,56 +13,65 @@ Automatically unwrap your mesh into a clean UV atlas — no manual seam painting
The result panel also reports metrics (chart count, distortion, etc.) so you can compare before committing.
## The core trade-off
Almost every parameter trades between two competing goals:
- **Fewer seams** — cleaner-looking texturing, but the flattened charts *stretch* (distortion), so painted detail looks squashed in places.
- **Less distortion** — every part flattens faithfully, but the surface is cut into *more charts*, so there are more seams to hide.
Reach for the segmentation and refinement settings below when you need to push one way or the other.
## Parameters
### Segmentation
Controls how the surface is cut into charts before unwrapping.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Normal-cone cap** | 50° | Maximum angular spread of face normals within one chart. Higher = fewer, larger, more distorted charts. |
| **Sharp-edge weight** | 0.35 | How strongly sharp edges attract seams. Higher pushes seams onto creases. |
| **Fold cap** | 88° | Dihedral fold angle that forces a seam. Edges that bend more than this are always cut. |
| **Min faces / chart** | 20 | Charts with fewer faces than this are dissolved into their neighbours. |
| **Min area fraction** | 0.004 | Minimum chart area as a fraction of the total surface area. Kills tiny slivers. |
| **Normal-cone cap** | 50° | Maximum angular spread of face normals allowed within one chart. **Raise it** for fewer, larger charts with fewer seams — good for smooth organic surfaces, but expect more stretch. **Lower it** for more, smaller charts that flatten with very little distortion, at the cost of more seams. Lower this first if the texture looks stretched. |
| **Sharp-edge weight** | 0.35 | How strongly sharp edges attract seams. **Raise it** to snap seams onto hard creases so they hide where the eye already expects an edge — ideal for hard-surface / mechanical models. **Lower it** to place seams purely by distortion, ignoring creases — better for organic shapes with no real edges. |
| **Fold cap** | 88° | Dihedral fold angle that *forces* a seam: any edge bending more than this is always cut. **Lower it** to add more forced cuts, which stops charts from folding over themselves on crumpled or self-touching geometry. **Raise it** for fewer forced cuts on clean meshes. Lower it if charts overlap in the preview. |
| **Min faces / chart** | 20 | Charts with fewer faces than this are dissolved into their neighbours. **Raise it** to sweep away tiny sliver charts for a tidier atlas (a small chart merged into a big one may pick up some distortion). **Lower it** to preserve small detail charts as their own islands. |
| **Min area fraction** | 0.004 | Same idea as *Min faces*, but measured by area — the minimum chart area as a fraction of the total surface. **Raise it** to aggressively cull small charts; **lower it** to keep them. Use it to kill slivers that survive the face-count test. |
### Refinement
An optional pass that merges small charts back together when merging doesn't add too much distortion.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Validated merge pass** | On | Runs an LSCM-validated chart merge. Turn off for a faster unwrap that produces more charts. |
| **Merge below faces** | 80 | Charts smaller than this face count are candidates for merging. *(Only when the merge pass is on.)* |
| **Merge distortion cap** | 1.32 | Maximum angle-distortion ratio a merge is allowed to introduce. *(Only when the merge pass is on.)* |
| **Validated merge pass** | On | Runs an LSCM-validated chart merge. **On** gives fewer charts and a tidier atlas but is slower. **Turn it off** for a faster unwrap, or when you deliberately want many small, low-distortion charts. |
| **Merge below faces** | 80 | Charts smaller than this face count are candidates for merging. **Raise it** to merge more aggressively (fewer charts, but a bit more distortion). **Lower it** so only the very smallest charts are absorbed. *(Only when the merge pass is on.)* |
| **Merge distortion cap** | 1.32 | The most angle-distortion a merge is allowed to introduce — a merge is only accepted if it stays under this ratio. **Raise it** to tolerate more stretch in exchange for fewer seams. **Lower it** to keep distortion tight and leave more charts. Lower it if merged areas look stretched. *(Only when the merge pass is on.)* |
### Parameterization
How each chart is flattened into 2D.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Method** | Auto | Flattening algorithm: **Auto**, **LSCM**, **ARAP**, or **Planar**. |
| **ARAP iterations** | 4 | Number of As-Rigid-As-Possible relaxation passes. 0 disables ARAP (LSCM / planar only). |
| **Method** | Auto | Flattening algorithm. **Auto** picks a suitable method per chart (recommended). **LSCM** is angle-preserving and fast, a solid default, but can stretch *areas*. **ARAP** (as-rigid-as-possible) balances angle and area for the least visible stretch, but is slower. **Planar** is a flat projection — only use it for near-flat charts (panels, decals). Switch to ARAP if LSCM shows area stretch. |
| **ARAP iterations** | 4 | Number of As-Rigid-As-Possible relaxation passes. **Raise it** to reduce distortion further (with diminishing returns and more time). **Lower it** for speed. **0** disables ARAP entirely (LSCM / planar only). |
### Packing
How the charts are arranged into the final atlas.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Atlas resolution** | 1024 px | Target atlas size (256 → 8192 px). |
| **Padding** | 4 texels | Gutter between charts to prevent bleeding when sampling. |
| **Atlas resolution** | 1024 px | Target atlas size (256 → 8192 px). **Higher** captures more texture detail with less pixelation, at the cost of larger files and more memory. **Lower** is lighter but softer. Match it to how close the model will be seen and your texture budget. |
| **Padding** | 4 texels | Gutter between charts. **Raise it** to stop colours bleeding across chart edges when the texture is mip-mapped or viewed at a distance — but padding eats usable atlas space. **Lower it** to pack tighter and reclaim resolution, at the risk of seam bleed. Note the gutter scales with resolution, so higher-res atlases often want a few more texels. |
### Topology repair
Cleans up broken geometry before unwrapping.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Proximity weld** | On | Welds coincident vertices before unwrapping — stitches shattered shells back together. |
| **Weld tolerance** | 0.1 | Weld distance, as a fraction of the median edge length. *(Only when weld is on.)* |
| **Proximity weld** | On | Welds coincident vertices before unwrapping. **Keep it on** — AI-generated meshes are often shattered along invisible cracks, and welding stitches those shells back together so charts don't fragment. **Turn it off** only when the mesh is already clean and you need to preserve exact vertex splits. |
| **Weld tolerance** | 0.1 | Weld distance, as a fraction of the median edge length. **Raise it** to fuse vertices that sit further apart (closes bigger gaps, but can collapse genuine fine detail). **Lower it** to fuse only near-exact duplicates. Raise it if shells still fragment; lower it if the weld is merging things it shouldn't. *(Only when weld is on.)* |
---

View file

@ -15,15 +15,17 @@ Rebuild your mesh with clean, evenly-distributed topology. Auto Retopo is ideal
Click **Check if Watertight** to analyze the current mesh topology. It reports whether the mesh is closed, and if not, how many **open edges** (used by a single face) and **non-manifold edges** (shared by more than two faces) it has.
This check is worth running first: if the mesh is already watertight you can turn the **Watertight shell** rebuild *off* and stay much closer to the original detail (see below).
## Clean Non-Manifold Edges
When the check finds a small number of **non-manifold edges**, you often don't need a full rebuild. A **Clean Non-Manifold Edges** button appears that repairs the topology directly on the Python service: it welds coincident vertices, drops duplicate/degenerate faces, then resolves the non-manifold edges and (optionally) closes the small holes that opens. It runs the same Keep/Revert round-trip as Auto Retopo and reports the before → after non-manifold and open-edge counts.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Repair method** | Remove faces | *Remove faces* deletes the offending faces (small holes can then be closed). *Split vertices* detaches the overlapping sheets — it keeps every face but leaves clean open edges. |
| **Close resulting holes** | On | Seal the small holes that face removal opens. Turn this **off** to guarantee no new non-manifold edges are introduced (at the cost of leaving the holes open). |
| **Max hole size** | 30 | Largest hole (in boundary edges) to close. Bigger openings — legitimate mesh boundaries — are left intact. |
| **Repair method** | Remove faces | *Remove faces* deletes the offending faces — best when the non-manifold bits are junk (doubled or floating faces). *Split vertices* detaches the overlapping sheets instead, keeping every face but leaving clean open edges — best when the faces are real geometry you don't want to lose. |
| **Close resulting holes** | On | Seal the small holes that face removal opens. **Leave on** to aim for a closed result. **Turn it off** to guarantee no *new* non-manifold edges are introduced (at the cost of leaving the holes open) — useful when closing a hole would itself re-create a non-manifold junction. |
| **Max hole size** | 30 | Largest hole (in boundary edges) to close. **Lower it** to patch only tiny cracks and leave real openings (a mouth, an armhole) intact. **Raise it** to seal bigger gaps — but too high will close legitimate boundaries. |
> Some meshes have genuinely non-manifold structures (for example, four surface patches meeting at one edge, or doubled "floating" faces) that cannot be resolved into a perfectly closed mesh automatically. In those cases the tool still reduces the defect count and reports honestly what it achieved — use the **Watertight shell** rebuild below if you need a guaranteed closed result.
@ -31,24 +33,24 @@ When the check finds a small number of **non-manifold edges**, you often don't n
### Target
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Target faces** | 6000 | Approximate face budget of the output mesh. |
| **Quad-dominant** | Off | Convert to quad-dominant topology. Reported in the metrics, but the exported GLB stays triangulated. |
| **Target faces** | 6000 | Approximate face budget of the output mesh. **Higher** keeps more detail but produces a heavier mesh; **lower** gives a lighter mesh that drops fine features. Set it by purpose — a low budget for game/real-time LODs, a high one for a hero asset you'll sculpt or texture closely. |
| **Quad-dominant** | Off | **Turn it on** when you care about edge flow — quad-dominant topology subdivides and deforms better in a DCC tool. Note the result is only *reported* as quads in the metrics; the exported GLB is still triangulated. Leave it **off** if you only need clean triangles. |
### Watertight shell
When enabled, the mesh is rebuilt from a unified voxel shell instead of remeshing the surface directly. This is the robust option — it heals cracks, self-intersections, and non-manifold geometry — at the cost of some fine detail and speed.
When enabled, the mesh is rebuilt from a unified voxel shell instead of remeshing the surface directly.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Watertight shell** | On | Build a unified voxel shell (robust) vs. remesh the surface directly. |
| **Shell resolution** | 256 | Voxel grid cells along the longest bounding-box axis. Higher = more detail, more memory. |
| **Close iterations** | 1 | Morphological closing steps to bridge cracks and small gaps. |
| **Smooth (sigma)** | 1.4 | SDF blur sigma in voxels — kills voxel ripple. Lower = crisper. |
| **Taubin polish** | 10 | Taubin smoothing steps on the dense shell (0 disables). |
| **Samples / pitch** | 2 | Voxel sampling density. ≥ 2 guarantees gap-free coverage. |
| **Max memory (GB)** | 4 | Auto-lower the shell resolution to fit this budget (0 disables the cap). |
| **Watertight shell** | On | **On** is the robust option — it rebuilds from a voxel shell, healing cracks, self-intersections, and non-manifold geometry and guaranteeing a closed mesh, but it loses some fine detail and is slower. **Turn it off** to remesh the existing surface directly and stay far closer to the original detail — safe only when the mesh is already clean/watertight (check first). |
| **Shell resolution** | 256 | Voxel grid cells along the longest bounding-box axis. **Higher** captures finer detail but memory and time grow roughly with the cube of this number — big jumps get expensive fast. **Lower** gives a coarser, blobbier shell quickly. Raise it for detailed models, within your memory budget. |
| **Close iterations** | 1 | Morphological closing steps that bridge cracks and small gaps. **Raise it** only if the shell still has holes — too high fills in concavities and thin gaps you may want to keep (e.g. the gap between fingers). **0** applies no bridging. |
| **Smooth (sigma)** | 1.4 | SDF blur sigma in voxels — kills the voxel "staircase" ripple. **Lower it** for crisper, sharper output (better for hard-surface); **raise it** for smoother output (better for organic blobs), at the cost of rounding off sharp features. |
| **Taubin polish** | 10 | Taubin smoothing steps on the dense shell — smooths the surface without shrinking it. **Raise it** if the shell looks bumpy; **0** disables it. |
| **Samples / pitch** | 2 | Voxel sampling density. **≥ 2** guarantees gap-free coverage. **Raise it** to safely capture very thin features (slower); going below 2 risks leaks or holes on thin parts. |
| **Max memory (GB)** | 4 | Auto-lowers the shell resolution to fit this budget. Set it to the RAM/VRAM headroom you have — **higher** allows a higher effective resolution. **0** disables the cap (the shell may then run out of memory). |
*All shell fields are only active when **Watertight shell** is on.*
@ -56,42 +58,48 @@ When enabled, the mesh is rebuilt from a unified voxel shell instead of remeshin
Controls how the surface is re-tessellated.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Curvature-adaptive** | On | Place more faces where the surface bends and fewer on flat areas. |
| **Remesh iterations** | 10 | Number of remeshing passes. |
| **Feature angle** | 30° | Crease angle preserved as a feature during remeshing. |
| **Calibrate passes** | 1 | Rough edge-length correction passes. |
| **Curvature-adaptive** | On | **On** places more faces where the surface bends and fewer on flat areas — spends your face budget where detail matters (recommended). **Turn it off** for uniform density everywhere, e.g. when you want evenly-sized faces regardless of shape. |
| **Remesh iterations** | 10 | Number of remeshing passes. **Higher** gives more even edge lengths and better-quality topology, but is slower; **lower** is faster and rougher. |
| **Feature angle** | 30° | Crease angle preserved as a feature during remeshing. **Lower it** to treat gentler bends as features worth keeping (preserves more edges); **raise it** so only very sharp creases survive and everything else is smoothed. |
| **Calibrate passes** | 1 | Rough edge-length correction passes that help the face count land near your target. **Raise it** if the output count strays far from *Target faces* (slightly slower). |
### Feature preservation
Hard-surface mode for mechanical / man-made objects with sharp edges.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Preserve features** | Off | Keep sharp creases crisp and skip smoothing/projection. |
| **Feature angle** | 25° | Crease angle treated as a hard edge. *(Only when preserve features is on.)* |
| **Preserve features** | Off | **Turn it on** for hard-surface / man-made objects with crisp edges (bolts, panels, blades) — it keeps corners from being rounded off and skips the smoothing/projection that would soften them. **Leave it off** for organic, smooth shapes, where forcing hard edges would create ugly faceting. See the note below on how it interacts with projection. |
| **Feature angle** | 25° | Crease angle treated as a hard edge. **Lower it** to keep more edges sharp; **raise it** so only the sharpest corners are preserved. *(Only when preserve features is on.)* |
### Silhouette projection
After remeshing, the new mesh can be projected back onto the original surface to recover its silhouette.
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Project to surface** | On | Project the remesh back onto the original surface. |
| **Projection iterations** | 10 | Number of projection passes. |
| **Move clamp** | 1.5 | Maximum per-vertex move, as a multiple of local edge length. |
| **Relax strength** | 0.4 | Tangential relaxation factor applied each iteration. |
| **Project to surface** | On | **Keep it on** — this snaps the rebuilt mesh back onto the original surface, recovering the detail and silhouette lost to remeshing or voxelization. **Turn it off** to leave the remesh/shell as-is (blobbier, but faster and more uniform). |
| **Projection iterations** | 10 | Number of projection passes. **Higher** hugs the original surface more tightly (slower); **lower** gives a looser fit. |
| **Move clamp** | 1.5 | Maximum per-vertex move, as a multiple of local edge length. **Higher** lets vertices travel far to recover deep detail — but can spike if the projection misfires. **Lower it** for a conservative, stable fit; lower it further if you see spikes or shards in the result. |
| **Relax strength** | 0.4 | Tangential relaxation applied each iteration. **Higher** evens out the triangle distribution along the surface (smoother mesh, but can blur fine detail); **lower** keeps vertices where they projected, which may let them cluster. |
**Note on Preserve features + Projection:**
- In **surface mode** (watertight off), projection is **skipped** when Preserve features is on.
- In **surface mode** (watertight off), projection is **skipped** when Preserve features is on — and the projection fields are disabled.
- **Watertight shells are always projected** onto the original surface, even with Preserve features on.
### Compute
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Device** | Auto (GPU if NVIDIA) | Where the heavy stages run. **Auto** uses an NVIDIA GPU when one is available and falls back to CPU otherwise. Choose **CUDA** to force the GPU, or **CPU** to force CPU (use this if the GPU runs out of memory, or you have no NVIDIA card). Only the watertight-shell stage (CuPy) and the surface-projection stage (NVIDIA Warp) are GPU-accelerated — the remesh / "building clean topology" stage always runs on the CPU regardless of this setting. |
### Misc
| Field | Default | What it does |
| Field | Default | What it does & how to tune it |
| --- | --- | --- |
| **Seed** | 0 | RNG seed for reproducible results. |
| **Seed** | 0 | RNG seed for reproducible results. The same seed reproduces the same output; change it only to roll a different random variation. |
---