Flutter Scene Example
- Switch to Flutter's main channel.
flutter channel main
- Enable the native assets feature.
flutter config --enable-native-assets
- Clone this repository.
git clone https://github.com/bdero/flutter-scene-example.git cd flutter-scene-example
- Run the app on macOS, Windows, Linux, iOS, or Android with Impeller enabled.
flutter run -d macos --enable-impeller
This repository started life as a 3D demo shown off at Flutter Forward 2023!
The 3D renderer was originally built as a C++ component in Impeller. At the time, this required a custom build of Flutter Engine in order to use it.
Since then, we've built and shipped Flutter GPU as a preview API in the Flutter SDK, and rewrote the Flutter Scene renderer in Dart.
We showed this demo off at Flutter's booth during GDC 2024. A few extra features were thrown in for this, including a leaderboard, collisions, music, spikes, fall damage, and jumping.
The source code in this repository is MIT licensed.
All 3D models, textures, music, and sound effects present in this repository are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.