How mauriceos/mixar-app works
Purpose and Entry Points
Mixar is a native desktop 3D-creation application: a Blender 5.0 fork augmented with AI-assisted scene workflows, custom editor spaces, and layered texture painting. The compiled application starts through Blender’s creator layer, while Mixar Python modules load into the embedded Blender runtime.
• src/source/creator/creator.cc
• src/source/creator/creator_startup.cc
• src/scripts/mixar/bootstrap/scene_graph_module.py
Source Overlay and Build Boundary
src/ is not built in place. Build scripts compose a generated source/ tree by copying the upstream Blender submodule and overlaying Mixar changes, then CMake compiles the native app and installs Python dependencies. This preserves a boundary between upstream engine code and Mixar-owned modifications.
• Makefile
• scripts/unix/build.sh
• cmake/mixar_overrides.cmake
Native Blender Integration
C++ overlay code extends Blender’s editor/window-manager and RNA/DNA-facing surfaces with Mixar spaces and interactions. Native spaces own high-performance drawing, event handling, and layout; Python modules supply feature behavior, operators, and remote-service orchestration.
• src/source/blender/editors/space_mixie/space_mixie.cc
• src/source/blender/editors/space_mixie_chat/space_mixie_chat.cc
• src/source/blender/makesrna/intern/rna_wm_mixar.cc
Bootstrap and Feature Registration
The embedded Python addon is organized around bootstrap modules that register and coordinate independently deployable features at application startup/shutdown: chat, paint, moodboard, scene graph, workflow, analytics, updates, and safety guards.
• src/scripts/mixar/bootstrap/agent_connection.py
• src/scripts/mixar/bootstrap/workflow_module.py
• src/scripts/mixar/bootstrap/shutdown_hooks.py
AI Agent and Remote Transport
Mixie chat turns UI prompts into authenticated remote requests, receives streaming/SSE or WebSocket activity, queues work, and marshals scene-affecting execution back to Blender’s main thread. Agent-provided scripts pass through sandbox transformation and validation before execution. The hosted Mixar backend is external; BYOK can route agent use through user-provided model-provider credentials.
• src/scripts/mixar/modules/space_mixie_chat/core/connection_manager.py
• src/scripts/mixar/modules/space_mixie_chat/core/sse_handler.py
• src/scripts/mixar/modules/space_mixie_chat/core/sandbox_validator.py
Generation Job Pipeline
Async generation features share a client/service abstraction and local job queue. Feature modules enqueue image, model, reconstruction, segmentation, retopology, UV, or scene-generation requests; queue management polls/downloads results and imports them into Blender scene data. This is the principal boundary between local Blender state and hosted AI services.
• src/scripts/mixar/modules/common/api/client.py
• src/scripts/mixar/modules/common/job_queue/core/queue_manager.py
• src/scripts/mixar/modules/moodboard/core/node_job_bridge.py
Creative Workspaces and Persistent Scene State
Moodboard represents references and generated assets as a node graph, then drives scene-generation/import workflows. The scene graph maintains queryable hierarchy/state for agents. Director provides camera, timeline, capture, and render-output workflows. Operation history captures scene changes for recoverability and agent-facing context.
• src/scripts/mixar/modules/moodboard/core/node_graph.py
• src/scripts/mixar/modules/scene_graph/core/store.py
• src/scripts/mixar/modules/director/core/timeline.py
Layered Paint and Asset Output
The paint subsystem is a substantial local-only material authoring stack: layers, masks, channels, modifiers, and Blender shader-node graphs are constructed and maintained in Python, with native baking-space support. It can bake/export authored assets to standard DCC/game-engine formats without requiring account or backend access.
• src/scripts/mixar/modules/paint/core/node/node_graph.py
• src/scripts/mixar/modules/paint/layered_build/builder.py
• src/source/blender/editors/space_baking/space_baking.cc
Main entry points: scene_graph_module.py Feature bootstrap · connection_manager.py Chat connection manager · node_graph.py Moodboard graph · creator_startup.cc Creator startup
Components 21
Build Overlay
Builds a generated Blender source tree with Mixar overlays.
- Build entrypoint
Makefile - Overlay build script · Copies upstream Blender and Mixar changes into generated source/.
scripts/unix/build.sh - CMake overrides
cmake/mixar_overrides.cmake
Native Runtime
Compiled Blender integration and custom editor spaces.
- Application creator · Starts the compiled Blender-derived desktop application.
src/source/creator/creator.cc - Creator startup
src/source/creator/creator_startup.cc - Mixar editor spaces · Own drawing, layout, and event handling for Mixar workspaces.
src/source/blender/editors/space_mixie/space_mixie.cc - RNA window-manager API · Exposes Mixar-facing Blender window-manager surfaces.
src/source/blender/makesrna/intern/rna_wm_mixar.cc - Native baking space
src/source/blender/editors/space_baking/space_baking.cc
Embedded Python
Mixar features running inside Blender's Python runtime.
- Feature bootstrap · Registers coordinated Mixar features during embedded-runtime startup.
src/scripts/mixar/bootstrap/scene_graph_module.py - Chat connection manager · Authenticates agent requests and coordinates streaming activity.
src/scripts/mixar/modules/space_mixie_chat/core/connection_manager.py - Streaming handler · Consumes SSE or WebSocket agent activity.
src/scripts/mixar/modules/space_mixie_chat/core/sse_handler.py - Script sandbox · Transforms and validates agent-provided scripts before execution.
src/scripts/mixar/modules/space_mixie_chat/core/sandbox_validator.py - Generation API client · Shared client abstraction for hosted generation features.
src/scripts/mixar/modules/common/api/client.py - Local job queue · Polls jobs, downloads results, and imports them into Blender.
src/scripts/mixar/modules/common/job_queue/core/queue_manager.py - Moodboard graph · Manages reference and generated assets as a node graph.
src/scripts/mixar/modules/moodboard/core/node_graph.py - Scene graph store · Maintains queryable scene hierarchy and state for agents.
src/scripts/mixar/modules/scene_graph/core/store.py - Director timeline · Coordinates camera, timeline, capture, and render-output workflows.
src/scripts/mixar/modules/director/core/timeline.py - Layered paint graph · Builds layers, masks, channels, and shader-node materials locally.
src/scripts/mixar/modules/paint/core/node/node_graph.py - Paint material builder
src/scripts/mixar/modules/paint/layered_build/builder.py
Hosted AI
External authenticated agent and generation services.
- Hosted agent service · Mixar backend or BYOK-routed model provider.
- Hosted generation service · Processes image, model, reconstruction, and scene jobs.
Connections 24
- Build entrypoint → Overlay build script: invokes
- Overlay build script → CMake overrides: configures
- CMake overrides → Application creator: builds
- Application creator → Creator startup: initializes
- Creator startup → Feature bootstrap: loads embedded modules
- Creator startup → Mixar editor spaces: initializes UI
- RNA window-manager API → Mixar editor spaces: supports Mixar UI API
- Feature bootstrap → Chat connection manager: registers chat
- Feature bootstrap → Scene graph store: registers scene state
- Feature bootstrap → Moodboard graph: registers workspace
- Feature bootstrap → Director timeline: registers workflow
- Feature bootstrap → Layered paint graph: registers paint
- Mixar editor spaces → Chat connection manager: prompt UI
- Chat connection manager → Streaming handler: streams through
- Chat connection manager → Hosted agent service: authenticated requests
- Streaming handler → Script sandbox: agent scripts
- Script sandbox → Scene graph store: validated scene actions
- Moodboard graph → Generation API client: submits generation
- Generation API client → Local job queue: creates jobs
- Generation API client → Hosted generation service: remote requests
- Local job queue → Moodboard graph: imports results
- Moodboard graph → Scene graph store: drives scene import
- Layered paint graph → Paint material builder: constructs materials
- Paint material builder → Native baking space: uses native baking UI