doc/bridge_packages/flame_3d/getting_started.md
There are a few important things to note before you even start playing with this package.
The GPU-powered 3D support depends on the still experimental Flutter GPU, which in turn depends on Impeller. This means a few things:
Then, you need to enable Impeller, if not already enabled by default. For example, for macOS, add
the following to the generated macos/runner/Info.plist directory:
<dict>
...
<key>FLTEnableImpeller</key>
<true/>
<key>FLTEnableFlutterGPU</key>
<true/>
</dict>
Alternatively, you can run Flutter with this flag instead:
flutter run --enable-flutter-gpu
You can find a "playground"-style example of using flame_3d in the packages/flame_3d/example
directory. It contains multiple "setups" that you can switch using the built-in console commands.
You can also find three more complex examples below: