Mini MBM Documentation¶
Leia esta documentação em Português do Brasil.
User And Lua Reference¶
User And Lua Reference:
- 1. Mbm Engine
- 2. Scene
- 3. Table mbm
- 4. Table backGround
- 5. Table camera
- 6. Table font
- 7. Table gif
- 8. Light
- 9. Table line
- 10. Table mesh
- 11. Table meshDebug
- 12. Table particle
- 13. Table render2texture
- 14. Table renderizable
- 15. Table shader
- 16. Table shape
- 17. Table sprite
- 18. Table text
- 19. Table texture
- 20. Table tile
- 21. Table timer
- 22. Table vec2
- 23. Table vec3
- 24. Table audio
- 25. Editors
- 26. Articulated Animation Editors
- 27. Image Mesh Editor
- 28. Mesh Debug Workflows
- 29. Normal Map Generator
- 30. Normal Mapping
- 31. Modules
Architecture¶
Plugins¶
Plugins:
- 1. Module box2d
- 2. Module box2d LiquidFun
- 3. Module ImGui
- 3.1. Begin / End methods
- 3.2. Calc methods
- 3.3. Capture methods
- 3.4. Color methods
- 3.5. CreateContext
- 3.6. DestroyContext
- 3.7. Flag / Enum
- 3.8. General methods
- 3.9. Get methods
- 3.10. ImDrawList
- 3.11. Is methods
- 3.12. Log methods
- 3.13. NewFrame / EndFrame
- 3.14. Open / Close methods
- 3.15. Pop methods
- 3.16. Push methods
- 3.17. Render
- 3.18. Set methods
- 3.19. Tables & Columns
- 3.20. Show methods
- 3.21. Style methods
- 3.22. Text methods
- 3.23. Widgets
- 4. Module lsqlite3
- 5. Module steam
- 6. Plugin
Current Engine Documentation¶
The engine repository now maintains its current API, editor, format, backend,
platform and implementation documentation in Markdown. This section is kept
in sync with /home/michel/mini-mbm’s master branch and is the current
reference for features added after the original RST user guide.
Current Engine Documentation:
- Mini MBM documentation
- Mini MBM — Lightweight 2D/3D Game Engine
- Games Made with Mini MBM
- Table of Contents
- Quick Start
- Features at a Glance
- Architecture Overview
- Renderable Types (RENDERIZABLE)
- Custom Binary Formats
- Audio Backends & Supported File Formats
- Render Backends
- Lua Scripting Interface
- Editor Tools
- Plugin System
- Building the Engine
- Project Structure
- Third-Party Libraries
- License
- Mini MBM — Motor Gráfico Leve 2D/3D
- Sumário
- Início Rápido
- Visão Geral dos Recursos
- Visão Geral da Arquitetura
- Tipos Renderizáveis (RENDERIZABLE)
- Formatos Binários Customizados
- Backends de Renderização
- Interface de Script Lua
- Ferramentas de Edição
- Sistema de Plugins
- Compilando o Motor
- Estrutura do Projeto
- Bibliotecas de Terceiros
- Licença
- Editor inventory
- mini-mbm Lua API Reference
- Table of Contents
- 1. Scene Lifecycle Callbacks
- 1b. Method Syntax:
:vs. - 2. Coordinate Systems
- 3. mbm Namespace
- 4. Camera Object
- 5. Render Types — Constructors
- 6. Common Renderizable Methods
- 7. Render Types — Type-Specific Methods
- 8. vec2 / vec3 Objects
- 8b. Audio Object
- 9. mbm Constants
- 10. Plugin: box2d
- 11. Plugin: box2dLiquidFun
- 12. Plugin: ImGui
- 13. Plugin: lsqlite3
- 13b. Plugin: bullet3d
- 13c. Plugin: tilemap (Tiled editor)
- 13d. Plugin: steam
- 14. print() extensions
- 15. Mesh Debug authoring
- Image-based mesh generation
- Optional offline Mesh Audit module
- Lua plugin symbol index
- Mesh v11 Binary Format
- 1. File identification
- 2. Fixed file header
- 3. Section envelope (TLV)
- 4. Section types
- 5. Variable-length strings — replacing fixed char buffers
- 6.
SECTION_FRAME_STATICpayload - 6b.
SECTION_ANIMATIONpayload - 6c.
SECTION_DETAIL_PARTICLE/SECTION_DETAIL_FONTpayloads - 6d.
SECTION_DETAIL_TILEpayload - 6e. Unsupported section type 11
- 6f.
SECTION_ARTICULATED_PARTSandSECTION_ARTICULATED_ANIMATIONpayloads - 6g. Unsupported section type 40
- 6h. Canonical skeletal-runtime persistence
- 7. Index width (§6
indexWidth) - 8. Format invariants and implementation limits
- Mini MBM Lighting And Materials
- Quick Mental Model (Read This First)
- Classic Material
- Other Material Models
- PBR Material
- Mini MBM material model
- Runtime Light State
- Current Implementation Scope
- Intentional Multi-Light Limitation
- Reserved Shader Inputs
- Default Lit Shader Behavior
- Built-in Lit Shader Resources
- Material Texture Slots
- Static 3D normal mapping
- Gerador de Normal Map
- Image Mesh Editor
- Launch and workflow
- Normal-map relief
- Workspace and navigation
- Manual curved relief
- Regions and contours
- Volume and relief
- Geometry, normals, and budgets
- Mesh Debug project preview
- Materials: back and sides
- Constrained curved simplification
- Simplification and comparison
- Isotropic Remesh
- Assembly preview
- Projects, presets, and export
- Verification and API reference
- Read-only Mesh Audit
- Bevel
- Mesh Simplification
- Normal Processing in Mesh Debug
- Mesh Debug automatic capture
- Mesh Audit: public offline Lua API
- Editor de Pintura de Textura sobre Mesh 3D
- Mesh to Sprite
- Articulated Animation
- 1. Purpose
- 2. Choose the Correct Animation Model
- 3. Mental Model
- 4. Parts, Subsets, and Pivots
- 5. Clips, Tracks, and Keys
- 6. Absolute and Additive Composition
- 7. Playback Lifecycle
- 8. Lua Usage
- 9. Dedicated authoring editors
- 10. Rendering and Performance Model
- 11. Common Pitfalls
- 12. Persistence and Compatibility
- 13. Relationship to Skeletal Skinning
- 14. Source-of-Truth Map
- 15. Change Log
- Editor de Mesh Articulada 3D
- Editor de Sprite Articulado 2D
- Real-Time Skeletal Animation and Editor
- 1. Scope
- 2. Canonical Asset Data
- 3. Pose Evaluation and Skinning
- 4. GPU and CPU Execution
- 5. Playback and Composition
- 6. Gameplay Bone Transforms and Root Motion
- 7. Pose Sharing
- 8. Blender and FBX Interchange
- 9. Skeletal Animation Editor
- 10. Validated Runtime Evidence
- 11. Current Capability Boundaries
- Real-Time Skeletal Animation - Deferred Work Plan
- Skeletal Animation Editor
- Bones, Armatures, and FBX in Mini MBM
- Quick Mental Model (Read This First)
- How Real-Time Skeletal Animation Works (Other Engines)
- FBX: Why It’s the Standard, and How It Represents a Skeleton
- What Mini MBM Has Today
- Legacy Editor Round-Trip Pipeline (Historical Reference)
- Pitfalls and Lessons Learned
- Audited Handedness Contract: Left/Right Import Fix Not Yet Implemented
- Morph Editor
- Renderizable Architecture
- Async Loading & Threading Model
- Plan: Remove the Last Worker-Thread
getFullPath/addPathCall from Async Mesh Loading - Audio System — Architecture & New Backend Implementation Guide
- 1. File Map
- 2. Class Hierarchy
- 3. CMake Backend Selection
- 4. Object Lifecycle — The Golden Rules
- 5. Audio Lifecycle Flow (visual)
- 6. Backend-Specific Notes
- 7. Lua Binding Layer (
audio-lua.cpp) - 8. Game-Level Lua Audio Manager (
audio_manager.lua) - 9. JNI Backend Removal (completed)
- 10. Checklist for a New Backend (e.g. PlayStation / XAudio2 / FMOD)
- 11. Thread Safety Notes
- 12. Platform Matrix (Current State)
- Box2D physics and optional fluids
- Plano de avaliação de um plugin Box2D 3 para física rígida
- Direção adotada
- Evidência, inferência e hipóteses
- O que sustenta a expectativa de ganho
- Fontes e recorte reproduzível
- Arquitetura proposta do novo plugin
- Plano de medição antes da implementação completa
- Validação e preservação dos clientes atuais
- Plataformas e requisitos
- Etapas, esforço e critérios de avanço
- Alternativas e custo de manutenção
- Isolamento, rollback e documentação
- Questões a resolver nos gates
- Core MBM PIMPL and Interface Boundaries
- Default Shader Program Cache (Windows-only 400-mesh fill freeze)
- Mini MBM — Implementing a New Rendering Backend
- Project direction and complexity gate
- 1. Repository layout
- 2. Getting started
- 3. Files you must implement
- 4. The
SPECIFIC_AUX_CONTEXT_DEVICEstruct - 5. Matrix convention — CRITICAL
- 6. Culling and winding order
- 7. Depth buffer
- 8. Vertex formats (
FVF_PROVIDE_BY_ENGINE) - 9. Buffer lifecycle
- 10. Shader uniforms (
MetalUniforms/ uniform struct) - 11. Texture upload
- 12. Render-to-texture
- 13. Platform event loop (
handleEventFromWindow) - 14. Implementation checklist
- 15. Built-in shader catalogue — CFG format and reserved names
- 16. Key source files for reference
- 17. Plugin porting notes (ImGui, Tiled, Box2D and others)
- 18. 3D → 2dw depth separation
- Appendix A — macOS / Metal implementation notes
- Appendix B — Lua / editor layer notes
- Appendix C — iOS / Metal implementation notes
- C1. Architecture overview
- C2. CAMetalLayer handoff
- C3.
specific-metal.hconditional fields - C4. Touch input
- C5. Build prerequisites
- C6. Bundle layout
- C7. Plugin notes
- C8. Orientation
- A4. Tile-map alpha transparency — depth comparison must be
LessEqual - A5. Two
outline.ps/outline.vsbugs — a compile error and a silently reordered uniform
- Physics regression tests
- Android Platform — Architecture Notes
- Prerequisites
- Quick Start — build your Lua game as an APK
- Building from Android Studio (GUI)
- Alternative — build libraries with Make + manual Android Studio project
- Assets folder
- Modern NativeActivity approach (current)
- Generating an Android Studio project
- CMake variables for the Gradle project
- App icon
- Placing the project outside the engine repo
- Audio backends
- Build modes (Lua vs. pure C++)
- Key source files
- Legacy files (kept for reference)
- NDK version
- iOS Platform — Architecture Notes
- Linux Platform — Build & Development Notes
- macOS Platform — Build & Development Notes
- Windows Platform — Visual Studio Project Notes
- Prerequisites
- Opening the Solution
- Solution Projects
- Selecting the Graphics Backend
- Build Configurations
- Building from the Command Line (MSBuild)
- Skeletal Numeric Parity Tests
- Post-Build: Copying DLLs
- Output Locations
- Game Delivery — Distribution Packages
- Building Just the Engine with CMake / MinGW
- Distributing the Engine and Editors
- Game Delivery — Distribution Packages
- Optional Box2D particles
- Estudo: partículas e fluidos em cenas 3D
- Decisão atual
- Comportamento conferido no código
- Por que testar profundidade sem escrever
- Evidências da investigação
- Proposta A: melhorar o visual sem alterar o renderizador
- Proposta B: correção localizada das partículas comuns em 3D
- Validação antes de considerar uma implementação pronta
- Por que adiar a reorganização por material
- Como retomar
- Facial Rig Editor
- Future Features
- Future Investigation
- Mini MBM — Issue list