Platforms¶
The same C API runs on every platform below; what differs is the graphics backends, the library file and how far each is tested. Installing has the downloads.
At a glance¶
| Platform | Graphics backends | Library |
|---|---|---|
| Windows x64 | Direct3D 11, Direct3D 12, Vulkan 1.1, OpenGL 3.3 | sona.dll, sona.lib |
| Linux x64 (and Steam Deck) | Vulkan 1.1, OpenGL 3.3, OpenGL ES 3.0 | libsona.so, libsona.a |
| Linux arm64 | Vulkan, OpenGL ES 3.0 | libsona.so |
| Android (arm64-v8a, x86_64) | Vulkan, OpenGL ES 3.0 | libsona.so per ABI |
| The web | WebGPU, WebGL2 | sona-renderer.js |
| macOS (arm64, x86_64) | Metal | libsona.dylib |
| iOS | Metal | sona.xcframework |
| Xbox 360 homebrew (xsdk, libxenon) | Xenos | libsona.a for xsdk, libsona-xenon.a |
| WebAssembly core | none: data only | sona-core.wasm |
The languages and engines each platform has, and how far each is tested:
| Platform | Languages and engines | How far it is tested |
|---|---|---|
| Windows x64 | C, C++, C#, Rust, Python; Unity, Unreal, Godot | Tested on hardware GPUs and on WARP |
| Linux x64 (and Steam Deck) | C, C++, C#, Rust, Python; Godot, Unreal | Tested on a GPU and on lavapipe and llvmpipe |
| Linux arm64 | C, C++, Rust, Python; Godot | Core tested under emulation; backends built |
| Android (arm64-v8a, x86_64) | C, C++; Unity, Unreal, Godot | Drawn on the emulator's GPU; see Android |
| The web | JavaScript, TypeScript; three.js, Babylon.js, React | Tested in headless Chromium on both |
| macOS (arm64, x86_64) | C, C++, C#, Rust, Python; Unity, Unreal, Godot | Metal's tests on Apple silicon; the download loads on Apple silicon and Intel |
| iOS | C, C++; Unity, Unreal | Built for devices and the simulator; the tests run in the simulator |
| Xbox 360 homebrew (libxenon) | C | Drawn on a software model of the GPU; see below |
| WebAssembly core | JavaScript | The data API, for a renderer of your own |
Windows¶
- Compilers: MSVC 2022 for the release library; mingw-w64 builds too.
- Keep
sona.dllbeside your program. The import library islib/sona.lib. - Headless rendering uses Vulkan, Direct3D 11 on any adapter, or WARP when there is no GPU.
- A lost device (a driver update, a GPU reset) is recovered with
sona_renderer_lostandsona_renderer_reset: device loss.
Linux¶
- The release library is built against glibc 2.31, so it loads on Ubuntu 22.04 and later, SteamOS 3 and the engine hosts built on them.
- Only
sona_*symbols are exported. - With no GPU, the headless device falls back to lavapipe or llvmpipe, so servers and containers draw the same pictures.
- OpenGL ES 3.0 runs over EGL, GBM or surfaceless.
Android¶
- Both ABIs have their page alignment set to 16 KB, as Google Play requires for apps that target Android 15 and later.
- Vulkan is the default; OpenGL ES 3.0 is the fallback for older devices.
- The low quality tier is made for low-end phones.
- An app paused with its EGL context gone recovers as on a desktop: device loss.
- The plaza starter builds an APK with no Java: the plaza starter.
The web¶
- The Renderer SDK draws with WebGPU and falls back to WebGL2 by itself: WebGPU.
- Pages must be served over https, or
http://localhostwhile you develop, from an origin registered for your app. - The live avatar (
sona-runtime.js) needs no key and no registration: the web API.
macOS and iOS¶
The library draws with Metal on macOS and iOS, from the same source as the other platforms. ?platform=macos is one
universal libsona.dylib (Apple silicon and Intel, macOS 11 or later) with the tools; ?platform=ios is
sona.xcframework (devices and the simulator, iOS 13 or later). The Unity, Godot and Unreal downloads carry their
macOS parts, and Unity and Unreal their iOS ones. Each copy is stamped for your app and signed again as it downloads.
Until the SDK is signed with an Apple Developer ID, macOS asks once before it loads the library: allow it in System
Settings, Privacy & Security. The plaza demo's macOS build draws with OpenGL.
Xbox 360 homebrew¶
libsona.a builds .xex titles with xsdk, for a modded console's own dashboard and for Xenia. It streams items from
360sona over HTTPS and shows the signed-in player's own avatar; the starter sona-plaza does both
(Xbox 360 homebrew). libsona-xenon.a is the same core for libxenon under XeLL, with a sample
(samples/xell): avatars on the TV, the gamepad changing clips and styles. The core is big-endian clean, and the Xenos backend draws the same pictures as
the desktop backends. Set budget.total in the config to the memory you can spare; nothing in the core allocates past
it.

Engines¶
| Engine | Version built against | How avatars are drawn |
|---|---|---|
| Unity | 2021.3 or later | Unity's renderer, from posed meshes the package reads each frame |
| Godot | 4.7 (GDExtension) | Godot's renderer; the extension skins on the GPU |
| Unreal Engine | 5.8 | Unreal's renderer; the plugin's material and a Control Rig for IK |
| Blender | 4.5 | Import as a rigged mesh with actions; export back as GLB |
The engines draw with their own renderers, so an avatar takes the engine's lights, shadows and post-processing. The SDK's own backends are for programs that draw with Vulkan, Direct3D, OpenGL or Metal themselves.
What every platform shares¶
- The API and its behaviour: the same manifest gives the same avatar and the same pose bits.
- Parity: each backend's pictures are held to the web renderer's, scene by scene.
- A stable ABI: nothing breaks for two minor versions.
This page as Markdown · All the docs as one file (llms-full.txt)