bdero / flutter_scene

3D library for Flutter.
MIT License
175 stars 12 forks source link

Support importing glTF models at runtime #12

Open LukasPoque opened 3 months ago

LukasPoque commented 3 months ago

Just a quick question to understand the scope of flutter_scene: Is it (should it be) possible to load and remove models dynamically from the rendered scene? Especially gltf models that are loaded via a network so they need to be converted to a model file on runtime?

Happy for every feedback.

bdero commented 3 months ago

It is not currently possible, but can and should be done.

The glTF offline importer tool is a C++ program built with CMake. Need to get around to turning it into a runtime library.

BenVae commented 2 months ago

I would love to see that.

MarlonJD commented 2 months ago

I'm not an ffi plugin expert, but can we use tiny_gltf or any related c/cpp libraries with FFI plugin?

kwill39 commented 2 months ago

@MarlonJD, I would recommend asking that on either StackOverflow or on the ffigen plugin github repo (https://github.com/dart-lang/native/tree/main/pkgs%2Fffigen). I think more people will know the answer there and be able to help you.

MarlonJD commented 2 months ago

I mean what if we create these required cpp importer as ffi plugin and using this in runtime