Reference
Building from source
The source is in the EmberEngine folder next to this site (and inside the Windows download).
Windows
Needs Visual Studio 2022 with C++, CMake 3.24 or newer, and Git.
build.bat
build\bin\ember_editor.exe
Linux
Needs GCC 12+ or Clang 15+, CMake 3.24+ and Git. libx11-dev is required; other X11 development packages
are optional.
./build.sh
./build/bin/ember_editor
macOS: ./build.sh should work but hasn't been tested.
The first build compiles every dependency and takes a few minutes; after that builds are incremental.
CMake fetches each library at a pinned version and caches the sources in third_party/_deps/.
What gets built
| Program | |
|---|---|
ember_editor |
the editor: Project Hub, Easy mode, full editor, model browser, export, MCP server |
ember_player |
the runtime every exported game ships with (--project <dir> plays a project) |
ember_export |
command-line export |
ember_demo |
the original demo level |
ember_thumbs |
renders model previews for the asset browser |
ember_tests |
unit tests |
Options
All optional switches are off by default, except networking:
| Option | |
|---|---|
-DEMBER_WITH_OPENXR=ON |
VR through OpenXR |
-DEMBER_WITH_STEAMWORKS=ON -DSTEAMWORKS_SDK_DIR=… |
Steam (bring your own Steamworks SDK) |
-DEMBER_WITH_PHOTON=ON -DPHOTON_SDK_DIR=… |
Photon Realtime transport |
-DEMBER_WITH_EOS=ON -DEOS_SDK_DIR=… |
Epic Online Services transport |
-DEMBER_WITH_NETWORKING=OFF |
drop ENet and Opus |
-DEMBER_BUILD_TOOLS=OFF |
build the player only (what exports use) |
Tests
./build/bin/ember_tests # unit tests
./build/bin/ember_editor --selftest # clicks through the editor
python3 tools/test_templates.py # plays all 165 templates
python3 tools/test_lua_api.py # every Lua function in the real player
On a headless Linux machine run the graphical ones under xvfb-run -a.
Source layout
engine/ the engine library (include/ember/*.h, src/*.cpp)
editor/ the editor
player/ the runtime
demo/ the demo
assets/ shaders, fonts, skies, textures, models, sounds, stock scripts
templates/ the 165 templates (generated by tools/make_templates.py)
platform/ Android / Quest / Pico packaging
tools/ generators, tests, the MCP docs, this site's builder
site/ this documentation (Markdown)