RC RANDOM CHAOS

Blender's UI Available as Reusable Cross-Language Library

· via Hacker News

Original source

Blender's UI and Runtime: Much Faster Than GPUI

Hacker News →

BUI extracts Blender’s user interface as a reusable library for Python, Rust, JavaScript, C, C++, and Dear ImGui. It ports Blender’s widget code from interface_widgets.cc into a C runtime that handles layout, input, and rendering on both CPU and GPU.

Developers can build with traditional frameworks (tkinter, Qt), web technologies (HTML, CSS, Tailwind), or Blender-native components. The toolkit preserves Blender’s interaction model: continuous-cursor number field dragging, mathematical expression evaluation, fuzzy menu search, and editors for curves, nodes, color wheels, and file browsing. Benchmarks show 2–4× less CPU per frame than gpui-fast, with millisecond startup and minimal idle overhead.

The library supports image and video playback across formats including PNG, JPEG, WebP, and SVG, using damage-based rendering to redraw only changed regions. It includes Blender’s Light and Dark themes and embeds the Inter font for consistent cross-platform text.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.