Installing
What you need
Section titled “What you need”| macOS | For the setup on this page. The renderer draws elsewhere too, and platform support says where and how far along each one is. Everything that doesn’t draw runs anywhere Dart does. |
| Flutter | 3.47.0 or newer, on the stable channel |
| Dart SDK | 3.10.0 or newer. The one Flutter ships with is fine |
| Xcode | With the command line tools, for the renderer’s native side |
| A network | The first build downloads the Filament SDK, about 300 MB |
Check the first two:
flutter --versionflutter doctorAdding it to a project
Section titled “Adding it to a project”The packages are not on pub.dev yet, so they resolve from git:
dependencies: flutter: sdk: flutter
# Vectors and matrices. Orblit takes and returns these types rather than # defining its own, so it is a direct dependency of yours too. vector_math: ^2.1.4
orblit_filament: git: url: https://github.com/ChxisB/orblit.git path: packages/orblit_filamentOne repository holds several packages, which is why each dependency names a
path inside it. Add the others the same way: orblit_light, orblit_ui,
orblit_mesh and the rest all live in ChxisB/orblit. The
package reference lists them.
What the first build does
Section titled “What the first build does”The first flutter run on macOS is slow, once. The renderer’s podspec has a
prepare_command that:
- downloads the pinned Filament SDK (currently v1.77.0) into
third_party/, and - compiles the package’s materials with Filament’s
matc, into C arrays rather than asset files.
Both are idempotent, so every build after the first skips them. Both are build artefacts and are not in git.
Materials get compiled into the binary rather than shipped as assets, and that’s deliberate. It means the renderer has no file to find at runtime and no asset bundle to depend on, which rules out a whole class of “works on my machine” before it can start.
Checking it worked
Section titled “Checking it worked”The smallest thing that proves the whole stack is up:
import 'package:flutter/material.dart';import 'package:orblit_filament/orblit_filament.dart';
void main() => runApp( const MaterialApp( home: Scaffold(body: OrblitView()), ), );flutter run -d macosAn OrblitView with no scene draws the default one. If you get a window with
something in it, then the SDK downloaded, the materials compiled, the native
side linked, and Flutter is compositing a Filament frame.
Next: your first scene.
