flame_3d_component 0.1.0-dev.1 copy "flame_3d_component: ^0.1.0-dev.1" to clipboard
flame_3d_component: ^0.1.0-dev.1 copied to clipboard

Add 3D components backed by flutter_scene to the Flame component tree

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.

0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherflame-engine.org

Weekly Downloads

Add 3D components backed by flutter_scene to the Flame component tree

Repository (GitHub)
View/report issues
Contributing

Topics

#flame #flutter-scene #gltf

Funding

Consider supporting this project:

opencollective.com
github.com
patreon.com

License

MIT (license)

Dependencies

flame, flutter, flutter_scene, vector_math

More

Packages that depend on flame_3d_component