Skip to content

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.

Perf news: the Lucy clip (0.11.0 vs 0.11.1, laptop take), poster and frame sheet; clips fitted in the What's New card; UI test whats_new_clip

islandmedfedd7a947164
diff --git a/docs/guide/images/wn-0111-lucy-frames.jpg b/docs/guide/images/wn-0111-lucy-frames.jpg
new file mode 100644
index 00000000..d560a938
Binary files /dev/null and b/docs/guide/images/wn-0111-lucy-frames.jpg differ
diff --git a/docs/guide/images/wn-0111-lucy.jpg b/docs/guide/images/wn-0111-lucy.jpg
new file mode 100644
index 00000000..b6621ac8
Binary files /dev/null and b/docs/guide/images/wn-0111-lucy.jpg differ
diff --git a/docs/guide/images/wn-0111-lucy.mp4 b/docs/guide/images/wn-0111-lucy.mp4
new file mode 100644
index 00000000..cb8d95ea
Binary files /dev/null and b/docs/guide/images/wn-0111-lucy.mp4 differ
diff --git a/docs/guide/whats-new.md b/docs/guide/whats-new.md
index 52607fe8..1ae212d7 100644
--- a/docs/guide/whats-new.md
+++ b/docs/guide/whats-new.md
@@ -15,7 +15,7 @@ title: Dense scans, fast
line: Lucy 112M on an RTX 3060: orbit right after a big stroke, 0.7 to 51 frames a second.
image: images/wn-0111-lucy.jpg
clip: images/wn-0111-lucy.mp4
-frames: images/wn-0111-lucy-frames.jpg 6x10 6
+frames: images/wn-0111-lucy-frames.jpg 8x10 8
action: guide:performance.md#working-with-big-meshes
```
diff --git a/src/app/WhatsNewPopup.cpp b/src/app/WhatsNewPopup.cpp
index 8b8b9f3a..be60fb6c 100644
--- a/src/app/WhatsNewPopup.cpp
+++ b/src/app/WhatsNewPopup.cpp
@@ -314,11 +314,17 @@ void App::drawWhatsNew() {
const int frame = int((nowSeconds() - pop.openedAt) * c.frameFps) % count;
const ImVec2 cell(1.0f / float(c.frameCols), 1.0f / float(c.frameRows));
const ImVec2 f0(float(frame % c.frameCols) * cell.x, float(frame / c.frameCols) * cell.y);
- ImVec2 uv0, uv1;
- coverUv(texSize.x * cell.x / std::max(1.0f, texSize.y * cell.y), (p1.x - p0.x) / std::max(1.0f, p1.y - p0.y), uv0, uv1);
- uv0 = ImVec2(f0.x + uv0.x * cell.x, f0.y + uv0.y * cell.y);
- uv1 = ImVec2(f0.x + uv1.x * cell.x, f0.y + uv1.y * cell.y);
- dl->AddImageRounded(tex, p0, p1, uv0, uv1, col(0xffffff, appear), 12.0f * k, corners);
+ const ImVec2 f1(f0.x + cell.x, f0.y + cell.y);
+ // Fitted, not cropped (a clip's labels sit at its edges): letterboxed on the clips' own dark grey.
+ const float aspect = texSize.x * cell.x / std::max(1.0f, texSize.y * cell.y);
+ const float bw = p1.x - p0.x, bh = p1.y - p0.y;
+ const float w = std::min(bw, bh * aspect), h = w / aspect;
+ const ImVec2 q0(std::floor(p0.x + (bw - w) * 0.5f), std::floor(p0.y + (bh - h) * 0.5f));
+ dl->AddRectFilled(p0, p1, col(0x2e2e2e, appear), 12.0f * k, corners);
+ if (w >= bw - 1.0f && h >= bh - 1.0f)
+ dl->AddImageRounded(tex, p0, p1, f0, f1, col(0xffffff, appear), 12.0f * k, corners);
+ else
+ dl->AddImage(tex, q0, ImVec2(q0.x + w, q0.y + h), f0, f1, col(0xffffff, appear));
redrawIn(1.0 / double(c.frameFps));
return;
}
diff --git a/src/core/WhatsNew.h b/src/core/WhatsNew.h
index 63d0aeef..4e15388f 100644
--- a/src/core/WhatsNew.h
+++ b/src/core/WhatsNew.h
@@ -13,8 +13,8 @@
// action: look:new (what Try it does; see App::runWhatsNewAction)
// link: interface.md#looks-and-layouts (optional: where the website's card links; guide: actions link there anyway)
// clip: images/wn-0111-lucy.mp4 (optional: the website plays it in the card, the image as its poster)
-// frames: images/wn-0111-lucy-frames.jpg 8x6 5 (optional: the app plays the same clip from one picture of
-// 8 x 6 frames, left to right then down, at 5 frames a second)
+// frames: images/wn-0111-lucy-frames.jpg 8x10 8 (optional: the app plays the same clip from one picture of
+// 8 x 10 frames, left to right then down, at 8 a second; fitted, not cropped)
// ```
//
// and the prose notes below it are the details. The popup (app/WhatsNewPopup.cpp), the guide chapter
diff --git a/tests/ui/whats_new_clip.sfui b/tests/ui/whats_new_clip.sfui
new file mode 100644
index 00000000..4c64e571
--- /dev/null
+++ b/tests/ui/whats_new_clip.sfui
@@ -0,0 +1,17 @@
+# What's New clips (core/WhatsNew.h frames:): a card plays its frame sheet in a loop. Pinned to 0.11.1, whose first
+# card is the Lucy clip, so it stays valid after later releases.
+env SF_WHATS_NEW_VERSION 0.11.1
+run ui_look look=classic layout=classic
+run new_sphere subdivisions=3
+click "Help##palette.help"
+click "What's New##help.whats_new"
+wait 0.6
+expect_value whats_new_open == 1
+expect_value whats_new_cards >= 1
+expect_text "Dense scans, fast"
+shot whats_new_clip_a
+wait 1.3
+shot whats_new_clip_b
+key escape
+wait 0.5
+expect_value whats_new_open == 0