flame

Adds 3D components (rendered by the flutter_scene engine) to the component tree of your Flame games.


flame_3d_component

Package to add 3D objects, rendered by flutter_scene, to the regular 2D component tree of a Flame game.

All the 3D rendering is done by Flutter Scene, the realtime 3D engine for Flutter created and maintained by Brandon DeRosier (bdero). Big thanks to him for building it, and for the Flutter GPU work that makes it possible. Head over to fscene.dev for the engine's own documentation, guides, and API reference.

What this package is, and what it is not

This package is for when you want a 3D object in an otherwise 2D Flame game: a spinning model in the menu, a 3D character on top of a 2D background, a dice rolling across a board, a product preview inside your game UI. The Component3D is a normal PositionComponent, so it is positioned, sized, scaled, rotated, anchored, and layered exactly like a sprite, and it participates in Flame's update and render loop like any other component.

It is not a 3D game engine and it is not meant to replace one. All of the 3D work, such as the scene graph, cameras, materials, lighting, animation, model loading, and physics, is done by flutter_scene. This package only draws a flutter_scene scene into a Flame component, nothing more. If you are building a full 3D game, use flutter_scene directly, or the experimental flame_3d package, which is a separate effort with a different purpose.

More here.

Libraries

flame_3d_component
Renders flutter_scene 3D scenes as regular components in the Flame component tree.