Fitting and decomposition

Fit turns a painted region into one shape. Auto decomposes a concave region into several convex elements. Both run on background workers with progress and Cancel, and neither changes the asset until you bake.

Fit a primitive or a convex hull

Set the hull’s type and press Fit (X); Fit All (Alt+X) fits every hull. The shape is fitted to the vertices of exactly the painted triangles.

TypeResult
BoxA box element. Dimensions are full side lengths. Use Axis Aligned Box keeps it aligned to the mesh axes.
SphereA sphere element.
CapsuleA capsule element. Its length excludes the end caps.
CylinderA convex element with 8 to 24 sides (Cylinder Sides, default 16). Chaos has no separate cylinder shape.
ConvexOne convex hull, capped at Max Vertices (default 64) while still containing every painted vertex.
Auto DecomposeSeveral convex elements from the selected backend. Use Auto (Y).

Fit settings: Max Vertices (4 to 255, default 64), Inflate (cm, default 0), Tolerance (cm, default 0.01), Use Axis Aligned Box and Cylinder Sides.

Decompose a concave part

Set the type to Auto Decompose and press Auto. Decomposition settings show a Preset selector and a Backend drop-down; the stats bar reports the backend that actually ran and the solve time.

Presets

A preset changes only the quality values (and, for Turbo, the backend). Your other settings are kept. When the values match no preset, the selector shows a read-only Custom.

PresetThresholdMax HullsSample ResolutionSearch IterationsSearch DepthBackend
Draft0.112500203CoACD
Balanced0.05322,000603CoACD
Precise0.0256410,0001504CoACD
Turbo (GPU)0.05322,000603CuACD

Lower thresholds and larger budgets usually mean more solver work and more elements. A hull-count budget can trade away the requested concavity accuracy; read the returned warnings.

Backends

BackendWhereWhat it does
CoACDEditor and runtimeThe default editor solver: patched, source-built CoACD on the CPU.
NativeEditor and runtimeUnreal’s own convex decomposition. Selected automatically when negative-space or walkable-clearance protection is requested.
PrimitivesEditor and runtimeSpatial subdivision guided by measured surface error, with bounded primitive replacement and convex residuals.
PrimitiveFirstRuntime defaultFits whole connected solids as boxes, spheres or capsules when they pass containment and sampled error checks, then runs CoACD on what is left, under one budget.
CuACDEditor only, optionalGPU decomposition through the separately built CuACD library (NVIDIA, Windows and Linux).

Unavailable backends stay in the drop-down, greyed out, with the reason and the fallback that will be used. A stored backend name that is neither built in nor registered is kept and shown with a warning.

The Native fallback

CoACD refuses a closed part whose surfaces pass through each other (“The mesh is not a 2-manifold!”), which is common on Geometry Collection pieces. When a backend refuses the geometry itself, the request is retried with Native Unreal and a warning names both: “CoACD could not decompose this mesh (...), so Native Unreal was used”. The request did not fail. If Native fails too, the result reports the first backend’s error. A budget the backend cannot meet is never retried, because another backend could only meet it by dropping parts.

GPU fallback

CuACD falls back to CPU CoACD, with a stated reason, for meshes with disconnected parts, for results over the hull limit and after CUDA launch failures. Different CPU and GPU hull counts are expected. In the final benchmark on an RTX 4090 laptop GPU, CuACD ran on the GPU for 3 of 12 test meshes and fell back to the CPU for the other 9.

Several parts in one region

  • Separate closed shells in one request share Max Hulls, smallest shell first, so hulls a small part does not need go to the larger ones. Max Hulls must be at least the number of shells; a part is never silently dropped.
  • A tight budget over several shells still fits loosely: Draft’s 12 hulls on a two-shell mug left a convex up to about 6 cm outside it. Give each part its own hull for a closer fit.
  • Separate shells may overlap; each is validated on its own. Cavities are not inferred from inward-facing nested shells.

Open selections and cleanup

CoACD and CuACD expect closed, oriented, manifold geometry. Before solving, an independent cleanup welds vertices, removes bad and duplicate faces, orients closed parts and fills simple boundary loops.

  • Painted hulls: Auto accepts open selections. Ragged edges, holes and one-sided strokes are closed along the paint (an open tube closes across its ends, a one-sided stroke along its chord), so a painted handle keeps its opening.
  • Auto follows only what was painted. To keep a cup’s cavity open, paint inside it too, or press Grow until the whole part is selected.
  • Every painted triangle gets collision. Paint with no volume of its own (a single face) becomes a thin layer just inside the mesh; thin spots extend a neighbouring convex or get a thin convex of their own. If Max Hulls leaves no room, a warning says how many triangles have no collision.
  • Recipes and runtime requests still need geometry that can be closed. Whole meshes close their open holes and split vertices where parts touch at one point.

Decomposition settings

SettingDefaultMeaning
Backend NameCoACDThe solver. Runtime settings default to PrimitiveFirst.
Threshold0.05Concavity tolerance, 0.001 to 1. Lower is closer and slower.
Max Hulls32Element budget, 1 to 1,024.
Max Vertices64Vertex cap per convex, 4 to 255.
Sample Resolution2,000Surface samples, 100 to 1,000,000.
Search Iterations60Solver search budget, 1 to 10,000.
Search Depth3Solver search depth, 1 to 10.
Seed42Random seed, for repeatable results.
PreprocessOnRun the cleanup pass first.
Prefer PrimitivesOffPost-process: replace convex elements by primitives when they fit within the tolerance.
Primitive Tolerance0.25 cmHow far a replacing primitive may differ.
Merge Tolerance0Merge neighbouring convex elements, 0 to 1. Check openings after changing it.
Min Volume0.001Drop elements smaller than this.
Protect Negative SpaceOffKeep sampled free space clear (uses Native).
Negative Space Radius5 cmRadius of the protected samples.
Protect Walkable ClearanceOffKeep sampled space above upward-facing surfaces clear through every post-pass (uses Native, one closed part at a time).
Walkable Slope Degrees45°Steepest surface counted as walkable, 0 to 89.
Walkable Clearance Tolerance0.25 cmHow far collision may intrude into the clearance.
Walkable Clearance Height180 cmHeight of the protected space.
Walkable Max Samples1,024Sample cap, 64 to 262,144.

Cancelling

Cancellation is cooperative and applies no partial result. A running CUDA kernel or a deep third-party call must return to a checkpoint first; in walkable Native decomposition the wait can be as long as one uninterruptible engine call. Lower the search and mesh budgets when cancel latency matters.

Applies to Collider Painter 1.0.0. Report a problem with this page.

Esc

Type to search the documentation.

↑ ↓ moveEnter openEsc close