v0.10.1
·
410 commits
to master
since this release
Features
OverlayFrame: new frame section for renderer-native semantic overlays (labels, scalar bars, rulers, images)- Font atlas with bundled default font and
FontHandlefor user-supplied TTF fonts LabelItem: native text labels anchored to world-space or screen-space positions. Supports setting position, connecting line, text and bg colour, padding and border radius, offset, opacity, max width (px), z order and font (family and size).ScalarBarItem: native colour-legend overlay. References an uploadedColormapIdand renders a gradient strip with evenly-spaced tick labels and an optional title directly in the overlay pass. Supports both vertical and horizontal orientations, all four viewport corner anchors, configurable dimensions, margin, tick count, font, and label colour.RulerItem: two-point measurement overlay. Renders a line between two world-space endpoints with a distance label at the segment midpoint. The line is clipped to the viewport boundary when one endpoint pans off-screen sideways and is only culled when an endpoint goes behind the camera. End caps are only drawn at endpoints within the viewport. Supports configurable line width, end caps, label format string (e.g."{:.2} m"), font, font size, line colour, and label colour.- Pick pipeline: removed back-face culling so two-sided meshes are pickable from both sides
Breaking changes
AnnotationLabel,draw_annotation_labels,world_to_screen, andworld_to_screen_from_frameare removed. UseLabelIteminOverlayFrameinstead.- The old paint-back
ScalarBartype is removed. UseScalarBarIteminOverlayFrameinstead. - The
eguifeature flag is removed. Applications that previously declaredfeatures = ["egui"]in theirviewport-libdependency should remove that entry.
Fixes
- Scalar buffer attribute lookup: simplified vertex/face attribute resolution path
Examples
- Showcase (34) for new internal labels.
- Showcase (35) for overlays: scalarbar, rulers, items