Skip to content
fobakicPublic

About

Pure-Rust pixel-art desktop overlay & interactive .opanim pet engine for Windows with UE-style Blueprints, Community Hub & optional AI cutout (~7 MB).

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

OpenAnima Logo

OpenAnima

Pure-Rust, zero-dependency, pixel-art desktop overlay & interactive pet engine for Windows.

English • Русский

Rust CPU Software UI + Win32 Platform MIT License GitHub Release XERJ Corpus Hub contributor


About OpenAnima

OpenAnima is a free, open-source, ultra-lightweight alternative to bloated commercial desktop overlay and pet engines (such as Steam's AnimaEngine).

Legacy Python/Qt/Web-based overlay apps weigh gigabytes, spawn heavy subprocesses per character, inject GPU vendor drivers (nvoglv64.dll / atio6axx.dll), leak memory, and stutter games.

OpenAnima is now a single pure-Rust monolith binary (~7.1 MB) with zero runtime prerequisites:

  • Pure CPU Software UI (winit + softbuffer + egui_software_backend): crisp retro pixel-art interface with 6 built-in themes, zero GPU ICD bloat in RAM, ~10–15 MB active working set, and aggressive working-set trimming when minimized to the system tray.
  • Win32 Layered Overlay Engine (UpdateLayeredWindow): hardware-composited 32-bit premultiplied BGRA overlays rendered directly above DirectX / Vulkan games and desktop windows with mmap zero-copy streaming decoding (PNG, JPG, GIF, APNG, WebP) and mimalloc.
  • Headless Companion Mode (--headless): exposes a clean local Named Pipe (\\.\pipe\openanima-core-v1) so external apps can drive overlays, pets, screen triggers, and conversions programmatically.

Key Features

Overlays, Chroma Studio & Physics

  • True transparent borderless overlays: instant click-through, always-on-top (yielding cleanly to right-click menus, Windows Shell JumpLists, and fullscreen games), smooth bilinear or crisp nearest-neighbor scaling, and horizontal mirror flip.
  • Gravity & Mouse Toss Physics: drag, throw, and bounce characters off taskbar edges and multi-monitor seams with spring elasticity.
  • Real-time Chroma Key Studio: boundary flood-fill (contiguous) that removes green/white/black or custom HEX backgrounds on the fly while protecting inner whites (eyes, labels, text), complete with eyedropper, tolerance, and feathering controls.
  • Custom Pixel-Art Context & Tray Menus: GDI-drawn menus synchronized to the active UI palette and language (EN / RU).

Interactive .opanim Pets & UE-Style Blueprints

  • 7-state animated pet packs (.opanim): Idle, Walk, Fall, Sleep, Flip, Jump, and Drag.
  • Behavior Trees & Presets: cursor avoidance ("flee cursor"), active-window edge perching, and customizable click reactions (Jump, Flip, Sleep Toggle).
  • Unreal-Style Blueprint Graph Editor & Pet Packer: visually wire OnTick events, conditions, physics vectors, and visual shader/transform expressions (Unique FX) inside Creator Tools and export ready-to-share .opanim packages.

OpenAnima Community Hub & Optional AI Cutout

  • Built-in OpenAnima-Hub Client: browse, search, preview, and 1-click install PNG, JPG, GIF, APNG, and .opanim Pets, plus a PR Submission Packager that validates files (<= 25 MB) and builds .meta.json + pet previews automatically.
  • Modular AI Background Removal (Rembg / ONNX): keeps the core .exe tiny (~7.1 MB) by downloading the Python + onnxruntime + isnet-anime / u2net / u2netp environment into Packages/ai-bg-remover/.venv only if you opt in. Supports static images, multi-frame GIF/APNG, and Alpha Matting.

MP4 → APNG Converter, Screen Triggers & Win32 Hotkeys

  • WMF MP4 → APNG Converter: hardware-accelerated Windows Media Foundation decoding with subframe diff optimization and 3 background modes: None, Chroma Key (pre-downscale keying + automatic corner color detection + tolerance slider), or AI (ONNX).
  • Screen Triggers (aHash / dHash): load Trigger Pack folders, watch screen regions in real time, and auto-launch bound overlays or pets when a match fires.
  • Win32 Global Hotkeys & Profiles: instant zero-delay switching between Gaming, Work, Chill, and Default via RegisterHotKey / WM_HOTKEY (works even while minimized to tray), with live conflict detection in Settings.

Comparison with Steam AnimaEngine

Metric Original (AnimaEngine, Steam AppID 3474900) OpenAnima (Pure Rust) Advantage
Disk Footprint ~3,005 MB (3.0 GB) ~7.1 MB (Standalone) / ~2.9 MB (ZIP) ~420x – 1,000x smaller
Process Count Separate python.exe per overlay + GUI 1 single native .exe Clean Task Manager
RAM Usage 300–600+ MB (with memoryClean.exe workaround) ~16.5 MB (4 overlays + interactive UNIQUE+ pet in 1 process) 20x – 40x lighter
Game FPS Impact Python GIL stutters 0% FPS drop in DX/Vulkan games Zero overhead
Background Removal External resave tool Live Chroma Key + Optional ONNX AI (isnet-anime/u2net) Best of both worlds
Dependencies Steam, Python 3.10, PySide6, ffmpeg Zero prerequisites (AI runtime optional on demand) Run anywhere
License Paid proprietary MIT (Free & Open Source) 100% open

Screenshots & Showcase

1. Live Overlays, Interactive .opanim Pets & Real RAM Benchmark

Everything runs inside one single OpenAnima process (CPU 2D UI + Win32 Layered Overlay Engine + Pet Runtime).

  • 4 active overlays (3 Megumin overlays + 1 UNIQUE+ .opanim pet): 16.5 MB RAM
  • 5 active overlays (3 Megumin overlays + 2 interactive .opanim pets — UNIQUE+ FLIP & PET WALK): 20.9 MB RAM, 0.3% CPU — still lighter than Windows Task Manager (21.7 MB) and 2x lighter than Explorer (43.5 MB)!
4 Overlays + Pet (16.5 MB RAM) 5 Overlays + 2 Pets (20.9 MB RAM)
OpenAnima 16.5 MB RAM OpenAnima 5 Overlays 20.9 MB RAM

2. Overlays Library (EN & RU, Nord Frost Theme)

Pure-Rust CPU pixel-art card grid with live opacity and scale sliders, Chroma Key Studio, on-demand AI cutout launcher, and zero GPU driver overhead:

English Interface Russian Interface
OpenAnima Overlays EN OpenAnima Overlays RU

3. Interactive .opanim Pets & State Runtime

Concurrent animated .opanim pet packs (test_pet_basic & test_pet_unique) switching live between states (IDLE, FALL, FLIP, WALK, SLEEP, JUMP, DRAG) with gravity, edge perching, and spring bounce:

Russian Interface (IDLE + FALL) English Interface (UNIQUE+ FLIP + IDLE)
OpenAnima Pets RU OpenAnima Pets EN

4. UE-Style Blueprints Graph Editor (.opanim Behavior & FX)

Built-in visual node editor inside Creator Tools: wire Event Tick -> Branch (If) -> Cursor Near? / Active Window Open? -> FX: Shake -> Flee Cursor / Perch Window and export ready-to-share .opanim packs:

OpenAnima UE-Style Blueprints Graph Editor


5. OpenAnima Community Hub (OpenAnima-Hub)

Built-in catalog for 1-click downloading of community PNG, JPG, GIF, APNG, and .opanim Pets, plus optional on-demand modules (AI Background Removal v0.2.1):

Community Hub (EN) Хаб сообщества (RU)
OpenAnima Community Hub EN OpenAnima Community Hub RU

6. Creator Tools, Triggers & MP4 → APNG Converter (AI / Chroma Key)

All creator pipelines in one place: .opanim Pet Packer & Blueprints Graph, Real-time Chroma Key Studio, WMF MP4 → APNG Converter with AI (ONNX) / Chroma Key / None background modes, modular AI Background Removal, and Screen Triggers (aHash / dHash):

Creator Tools (EN) Инструменты создателя (RU)
OpenAnima Tools EN OpenAnima Tools RU

OpenAnima MP4 to APNG Converter with AI ONNX mode


7. Legacy Reference Comparison (Steam AnimaEngine)

For visual contrast — the original commercial Python/PySide6 interface:

Original Workshop Original Creator Tools
Original GUI Original Tools

System Architecture

OpenAnima (Single Native Rust Binary — openanima-core.exe ~7.1 MB)
 ├── UI Thread (ui::host — winit + softbuffer + egui_software_backend)
 │    ├── PixelApp (Library, Pets, Community Hub, Tools, Settings)
 │    ├── Modals (Chroma Studio, AI Cutout Runner, Pet Packer + Blueprints, MP4 Converter, Triggers, Hub PR)
 │    └── SysTray + GDI Pixel Menus (ui::tray, ui::pixel_menu)
 │
 │   crossbeam_channel + Win32 SetEvent (0 ms UI <-> Engine)
 │   & Named Pipe `\\.\pipe\openanima-core-v1` (external / --headless clients)
 ▼
Engine Thread (HWND_MESSAGE + Win32 Timers + Core::dispatch)
 ├── Win32 Layered Window Renderer (UpdateLayeredWindow + Physics + Z-order Watchdog)
 ├── Streaming Media Pipeline (mmap APNG/GIF/WebP, Chroma Key, Resampler, WMF MP4->APNG)
 ├── Interactive Pet Runtime (.opanim packs, Behavior Trees, Blueprint VM)
 └── Screen Trigger Engine (GDI ScreenCapture + aHash/dHash + .npz templates)

Download & Build from Source

Pre-built artifacts are generated in releases/ and published via GitHub Releases:

Package Approx. Size Description
OpenAnima-v0.3.0-standalone.exe ~7.2 MB Recommended. Single zero-prerequisite Windows executable (openanima-core.exe).
OpenAnima-v0.3.0-portable.zip ~2.9 MB Compressed portable archive with binary and docs. Extract and run anywhere.
SHA256SUMS.txt < 1 KB SHA-256 verification checksums.

Build Locally (Windows, Rust 1.80+)

# Automated build (produces Standalone EXE, Portable ZIP & SHA256SUMS in releases/):
.\build.ps1

# Or run tests / binary directly:
cargo test --manifest-path OpenAnima\OpenAnima.Core\Cargo.toml --all-features
cargo build --manifest-path OpenAnima\OpenAnima.Core\Cargo.toml --release --all-features

Headless IPC Mode (For Companion Apps)

Launch without GUI to drive overlays, pets, media conversions, and triggers over \\.\pipe\openanima-core-v1:

openanima-core.exe --headless

Roadmap

  • Phase 1: Rust Core & Zero-Copy Overlay Engine
    • Win32 UpdateLayeredWindow renderer with zero memory leaks and mimalloc.
    • Streaming mmap decoding (PNG, JPG, GIF, APNG, WebP).
    • Real-time Chroma Key with color picker, feathering, and inner-detail protection.
    • Full EN / RU localization & Named Pipe IPC protocol (--headless).
  • Phase 2: Pure-Rust Monolith, Physics & Creator Pipeline
    • Removed C# .NET shell — pure CPU 2D Rust GUI with 6 pixel themes & custom GDI pixel menus.
    • Gravity physics, cursor toss, taskbar bouncing & Win32 global hotkeys (RegisterHotKey).
    • WMF MP4 → APNG converter with pre-resample Chroma Key, auto corner color & AI mode.
    • Screen Trigger Engine (aHash/dHash) with GUI pack loader & overlay auto-launch bindings.
  • Phase 3: Pets, Open Community Hub & Modular AI
    • .opanim interactive pets, behavior trees, and UE-style Blueprint Graph editor + Pet Packer.
    • OpenAnima-Hub catalog + in-app PR submission bundler.
    • Modular on-demand AI Background Removal (Rembg / ONNX, isnet-anime / u2net / u2netp).

License

Licensed under the MIT License. See LICENSE for details.

About

Pure-Rust pixel-art desktop overlay & interactive .opanim pet engine for Windows with UE-style Blueprints, Community Hub & optional AI cutout (~7 MB).

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages