Giter Site home page Giter Site logo

Comments (5)

m-r-davari avatar m-r-davari commented on July 1, 2024

this package support loading models from URL, just pass the URL instead of static path.

from flutter_3d_controller.

zynzszyn521 avatar zynzszyn521 commented on July 1, 2024

this package support loading models from URL, just pass the URL instead of static path.

but my models in ftp server,there have no nginx or any other proxy site, so i must download it and save to local directory ,can you help me

from flutter_3d_controller.

m-r-davari avatar m-r-davari commented on July 1, 2024

In that case you have two choice, first download the model and create file from it then take it's temporary path. second download the model and save it to local storage and then take the path of saved model and pass it to package,
your use case will need more than just model viewer library, for example you can use Dio package for downloading your models.

from flutter_3d_controller.

zynzszyn521 avatar zynzszyn521 commented on July 1, 2024

在这种情况下,您有两种选择,首先下载模型并从中创建文件,然后采用其临时路径。其次下载模型并将其保存到本地存储,然后获取保存模型的路径并将其传递给包,您的用例需要的不仅仅是模型查看器库,例如您可以使用 Dio 包来下载您的模型。

my code it's below ,but it's not working

Directory appDocDir = await getApplicationDocumentsDirectory();
String  filePath = '${appDocDir.path}/local.glb';
Flutter3DViewer(
        controller: controller.three3Dcontroller,
        src: filePath,
         )

from flutter_3d_controller.

m-r-davari avatar m-r-davari commented on July 1, 2024

As your issue is not about the package and its about your use case maybe it needs more research, I have no more Idea right now, if you found way to solve share it please share, thanks.

from flutter_3d_controller.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.