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
Fast Big Brushes off by default for 0.11.0-beta.1 (Experimental)
islandmedcf10a95067e5
diff --git a/changes/beta-boost.md b/changes/beta-boost.mdindex f4efbe88..d5cd8894 100644--- a/changes/beta-boost.md+++ b/changes/beta-boost.md@@ -1,25 +1,23 @@----whats_new: **Fast Big Brushes**: big brushes on dense meshes keep up with the pen. A 240 px Clay stroke on a 15 million- triangle head trails the pen by a quarter of what it did on integrated graphics (a third on faster machines), and- every dab is placed. On by default: **Preferences > Performance > Fast Big Brushes**.-highlight: Big brushes keep up on dense meshes-added: **Fast Big Brushes** (Preferences > Performance, on by default): a dab that reaches more than 150,000 vertices- takes its plane from an even sample of them and turns the shading along with the move it makes (from the brush's- own slope, no neighbour walks), and the dabs waiting for a frame go through the vertices together in one pass, so- the normals, the picking structure and the GPU copy are updated once a frame instead of once a dab. Every vertex- still moves by the brush itself; the exact shading follows when the pen rests and when it lifts. Standard, Clay,- Flatten, Crease, Pinch and Sharp Crease; Trim takes the sampled plane and shading but not the fused pass. Small- brushes, Smooth, Layer, Inflate, Nudge, Clay Block, alphas and masked areas are placed dab by dab as before.- The result matches the dab-by-dab stroke to within about 2% of how far it moved the surface+whats_new: **Fast Big Brushes (Experimental)**: a new way to place big brushes on dense meshes, off by default. Try it+ on a heavy model with a big Clay or Standard brush and tell us how it feels:+ **Preferences > Performance > Fast Big Brushes (Experimental)**.+added: **Fast Big Brushes (Experimental)** (Preferences > Performance, off by default): a dab that reaches more than+ 150,000 vertices takes its plane from an even sample of them and turns the shading along with the move it makes+ (from the brush's own slope, no neighbour walks), and the dabs waiting for a frame go through the vertices together+ in one pass, so the normals, the picking structure and the GPU copy are updated once a frame instead of once a dab.+ Every vertex still moves by the brush itself; the exact shading follows behind the brush and when the pen lifts.+ Standard, Clay, Flatten, Crease, Pinch and Sharp Crease; Trim takes the sampled plane and shading but not the fused+ pass. Small brushes, Smooth, Layer, Inflate, Nudge, Clay Block, alphas and masked areas are placed dab by dab as+ before. The result matches the dab-by-dab stroke to within about 2% of how far it moved the surface(tests/test_beta_boost.cpp).testers:- - Windows: open a dense model (or Help > Benchmark, standard-15m) and sculpt with a 200-300 px Clay or Standard- brush across the face, fast: the surface should follow the pen closely, without the stroke falling behind.- - Any OS: same stroke with Preferences > Performance > Fast Big Brushes off, then on: the result should look the- same; the shading under the brush should be smooth while you drag and after you lift the pen.- - Any OS: X symmetry on, a big brush back and forth across the middle of the face: no seam or step at the mirror line.- - macOS / Linux: undo and redo a big stroke: the surface and its shading come back exactly.- - Any OS, integrated graphics first: after a long big-brush stroke without pausing, lifting the pen finishes about- 70-110 ms later than before (the exact shading lands then); it should not feel like a hitch.+ - Any OS: Preferences > Performance > Fast Big Brushes (Experimental) on; on a dense model (or Help > Benchmark,+ standard-15m) sculpt with a 200-300 px Clay or Standard brush across the face, then the same with it off: the+ result should look the same; the shading under the brush should be smooth while you drag and after you lift.+ - Any OS, with it on: X symmetry on, a big brush back and forth across the middle of the face: no seam or step at+ the mirror line; undo and redo a big stroke: the surface and its shading come back exactly.+ - Any OS, with it on, integrated graphics first: lifting the pen after a long big-brush stroke may finish a little+ later (the exact shading lands then); say if it feels like a hitch.----Numbers before/after (laptop, floor profile, Windows PC): REPORT.md on perf/beta-boost.+Off by default for 0.11.0-beta.1: faster on laptops and integrated graphics, not yet on every desktop (perf/beta-boost REPORT.md).diff --git a/docs/guide/whats-new.md b/docs/guide/whats-new.mdindex c979a05b..59acbe25 100644--- a/docs/guide/whats-new.md+++ b/docs/guide/whats-new.md@@ -9,7 +9,7 @@ three versions in full, then the older ones in groups. Every detail is in the```featuresdate: unreleased-tagline: Fast Big Brushes, sixty new brushes in six packs, a Masking panel, and a quick tour for experienced sculptors.+tagline: Sixty new brushes in six packs, a Masking panel, a quick tour for experienced sculptors, and experimental options for very dense meshes.```## Version 0.10.11diff --git a/src/app/Config.h b/src/app/Config.hindex 2349257b..7dd30e2c 100644--- a/src/app/Config.h+++ b/src/app/Config.h@@ -112,8 +112,9 @@ struct UiPrefs {// Fast big brushes (Sculptor::adaptiveDabs, core/SculptBatch.cpp): a big brush's dabs take their plane from a// sample of the region, carry the normals along with the move (the exact ones follow), and the dabs waiting// for a frame go through the vertices together. The result matches the dab-by-dab stroke to within about 2% of- // how far it moved the surface (tests/test_beta_boost.cpp). On by default.- bool fastBigBrushes = true;+ // how far it moved the surface (tests/test_beta_boost.cpp). Experimental, off by default (0.11 beta: not yet+ // faster on every machine).+ bool fastBigBrushes = false;// Dynamic topology (Draw palette): false = the detail follows the brush size on screen (Sculptris Pro);// true = one detail size for the whole mesh.bool dyntopoConstantDetail = false;diff --git a/src/app/PanelPerformance.cpp b/src/app/PanelPerformance.cppindex f7cab45b..8fe39a83 100644--- a/src/app/PanelPerformance.cpp+++ b/src/app/PanelPerformance.cpp@@ -138,17 +138,17 @@ void App::registerPerformanceUiActions() {"Lighter on laptops and on battery: the hardware profile turns it on there by itself (its Draft brushes ""setting); this turns it on everywhere. Brushes that follow the surface's direction (Inflate, the plane ""brushes) use its direction from the stroke's start, so the result can differ slightly from a full stroke.");- add("perf.fast_big_brushes", "Fast Big Brushes",+ add("perf.fast_big_brushes", "Fast Big Brushes (Experimental)",[this] {uiPrefs_.fastBigBrushes = !uiPrefs_.fastBigBrushes;status_ = uiPrefs_.fastBigBrushes ? "Fast big brushes on" : "Fast big brushes off";},[this] { return uiPrefs_.fastBigBrushes; },- "Big brushes on dense meshes keep up with the pen: a dab that reaches more than 150,000 vertices finds its "- "plane from a sample of them and turns the shading along with the move it makes, and the dabs waiting for a "- "frame are placed together in one pass. Every vertex still moves by the brush itself; the exact shading "- "follows behind the brush and when you lift the pen. Small brushes, Smooth, Layer, Inflate, Nudge, Clay "- "Block, alphas and masked areas are placed dab by dab as before. Off: every dab one by one.");+ "Experimental. Big brushes on dense meshes: a dab that reaches more than 150,000 vertices finds its plane "+ "from a sample of them and turns the shading along with the move it makes, and the dabs waiting for a frame "+ "are placed together in one pass. Every vertex still moves by the brush itself; the exact shading follows "+ "behind the brush and when you lift the pen. Small brushes, Smooth, Layer, Inflate, Nudge, Clay Block, "+ "alphas and masked areas are placed dab by dab as before. Try it on a heavy mesh and tell us how it feels.");registerPerformanceProfileUiActions(); // Re-calibrate, the frame governor (PanelPerformanceProfile.cpp)}@@ -216,9 +216,6 @@ void App::drawPerformanceSection() {bool draft = uiPrefs_.draftStrokes;if (ImGui::Checkbox(tr("Draft Strokes"), &draft)) actions_.find("perf.draft_strokes")->run();ui::HelpAction(*this, "perf.draft_strokes");- bool fastBig = uiPrefs_.fastBigBrushes;- if (ImGui::Checkbox(tr("Fast Big Brushes"), &fastBig)) actions_.find("perf.fast_big_brushes")->run();- ui::HelpAction(*this, "perf.fast_big_brushes");bool liveMove = uiPrefs_.liveMove;if (ImGui::Checkbox(tr("Live Move (Experimental)"), &liveMove)) actions_.find("perf.live_move")->run();ui::HelpAction(*this, "perf.live_move");@@ -228,6 +225,9 @@ void App::drawPerformanceSection() {bool fastUpload = uiPrefs_.fastUpload;if (ImGui::Checkbox(tr("Fast Upload (Experimental)"), &fastUpload)) actions_.find("perf.fast_upload")->run();ui::HelpAction(*this, "perf.fast_upload");+ bool fastBig = uiPrefs_.fastBigBrushes;+ if (ImGui::Checkbox(tr("Fast Big Brushes (Experimental)"), &fastBig)) actions_.find("perf.fast_big_brushes")->run();+ ui::HelpAction(*this, "perf.fast_big_brushes");// --- Threads ---bool threads = !ThreadPool::shared().serial();diff --git a/src/core/Sculpt.h b/src/core/Sculpt.hindex 43f1848f..4c418014 100644--- a/src/core/Sculpt.h+++ b/src/core/Sculpt.h@@ -256,7 +256,7 @@ public:// for the GPU. flushDraft works out every normal and cavity term the stroke touched, once (the app calls// it before endStroke). Not with dynamic topology.bool draftStrokes = false;- // Scale-adaptive dabs (Preferences > Performance > Fast big brushes, on by default): a dab whose region holds+ // Scale-adaptive dabs (Preferences > Performance > Fast Big Brushes (Experimental), off by default): a dab whose region holds// more than kAdaptiveMinVertices vertices takes its area plane from an even sample of about kAreaSamples of// them (an average, so the sample gives it to within a fraction of a percent) and updates the normals of// what it moved from the derivative of its own displacement (the brush's offset at two points a hair away@@ -265,7 +265,7 @@ public:// lazily: behind the brush as the stroke goes on (catchUpNormals) and the rest when it ends (flushDraft, or// endStroke). Brushes whose offset depends on more than the vertex's place (Smooth, Layer, Morph) and the// remesher always take the exact path, and so do regions below the threshold (small brushes are unchanged).- bool adaptiveDabs = true;+ bool adaptiveDabs = false;static constexpr size_t kAdaptiveMinVertices = 150'000;static constexpr size_t kAreaSamples = 65'536;// Whether adaptive dabs moved leaves whose exact normals are still to come, and catching up with up todiff --git a/tests/ui/whats_new.sfui b/tests/ui/whats_new.sfuiindex 7d254144..513fab8c 100644--- a/tests/ui/whats_new.sfui+++ b/tests/ui/whats_new.sfui@@ -63,7 +63,7 @@ expect_value whats_new_open == 0expect_value guide_open == 1expect_guide whats-new.mdexpect_text "Version 0.11.0"-expect_text "Fast Big Brushes, sixty new brushes in six packs, a Masking panel, and a quick tour for experienced sculptors."+expect_text "Sixty new brushes in six packs, a Masking panel, a quick tour for experienced sculptors, and experimental options for very dense meshes."expect_text "Version 0.10.11"expect_text "Voxel Remesh 3-4x faster, high-DPI laptops that fit the screen, the right tray in every look, and a Preview channel for betas."expect_text "Version 0.10.10"