Browser demo sources
The browser lab combines Godot, the TTX bridge, independent C++ modules, GDScript and PocketFFT. The download below captures the project source used for this build, so it remains available as the repositories evolve. It includes the build rules and engine profile, together with the TTX and Compute source candidates used by this demo. Bazel obtains the published Toolchain and Perimortem dependencies from their pins.
The project source retains its MIT license. PocketFFT uses the BSD 3-clause license. The bundled notices cover the engine and its dependencies, alongside the licenses for TTX, the bridge and the FFT implementation.
- Lab, extension and dependency source
- Source file hashes and repository revisions
- Pinned PocketFFT source and BSD license
- Godot 4.7.2 source, license and upstream third-party notices
- Pinned Godot C++ binding source
- TTX license, Perimortem license, Compute notices and lab license
Building this version
Use Emscripten 4.0.20 for the engine. The Bazel module pins that same SDK for the extension and provider modules, and fetches PocketFFT as a source dependency for both native and Web builds. From the Godot engine source, build a release template with the profile included in the lab:
scons platform=web target=template_release threads=no dlink_enabled=yes \
lto=full optimize=size debug_symbols=no \
profile=/path/to/lab/godot/tools/web_engine.pyFrom the lab's Godot repository, export using that template. The export tool stages a copy of the scene and supplies Web import paths without editing the native project.
python tools/export.py \
--candidate-root /path/to/lab \
--template /path/to/godot.web.template_release.wasm32.nothreads.dlink.zip \
--engine-source /path/to/godot-4.7.2-stable \
--work-dir /path/to/work --output /path/to/exportThe output is an asset root containing demo/, its source archives and license notices, plus the hosting headers. Serve that root over HTTP and open /demo/. The tool requires a new output directory and does not deploy anything.
To include this export in a website build, run GODOT_DEMO_DIR=/path/to/export npm run build from the website repository. Later builds reuse the staged dist-lab/ assets. The demo is built separately from the downloadable extension SDK.
The exported demo runs the CPU and GDScript providers. CUDA reports unavailable. The class bridge and the image example are built from the same pinned dependencies as the native source build.