How to import gltf 3d models in Flutter?

Viewed 252

Does anyone know a good way of importing gltf 3d models in Flutter?

I tried using:

model_viewer, flutter_cube, babylonjs_viewer

but wasn't able to load a gltf file with any of them.

1 Answers

The lightly documented three_dart_jsm repository has a class "GLTFLoader" that is able to load gltf/glb files.

For viewing the gltf, I would recommend three_dart by the same author.

Related